Previous 199869 Revisions Next

r20469 Friday 25th January, 2013 at 19:28:41 UTC by Curt Coder
(MESS) radio86 et al: Tagmap cleanup. (nw)
[src/mess/includes]radio86.h
[src/mess/video]radio86.c

trunk/src/mess/includes/radio86.h
r20468r20469
1717   radio86_state(const machine_config &mconfig, device_type type, const char *tag)
1818      : driver_device(mconfig, type, tag) { }
1919
20   virtual void video_start();
21
2022   UINT8 m_tape_value;
2123   UINT8 m_mikrosha_font_page;
2224   int m_keyboard_mask;
r20468r20469
2426   UINT8 m_romdisk_lsb;
2527   UINT8 m_romdisk_msb;
2628   UINT8 m_disk_sel;
29   const UINT8 *m_charmap;
2730   DECLARE_READ8_MEMBER(radio_cpu_state_r);
2831   DECLARE_READ8_MEMBER(radio_io_r);
2932   DECLARE_WRITE8_MEMBER(radio_io_w);
trunk/src/mess/video/radio86.c
r20468r20469
1616   radio86_state *state = device->machine().driver_data<radio86_state>();
1717   int i;
1818   const rgb_t *palette = palette_entry_list_raw(bitmap.palette());
19   UINT8 *charmap = state->memregion("gfx1")->base();
19   const UINT8 *charmap = state->m_charmap;
2020   UINT8 pixels = charmap[(linecount & 7) + (charcode << 3)] ^ 0xff;
2121   if (vsp) {
2222      pixels = 0;
r20468r20469
3838   radio86_state *state = device->machine().driver_data<radio86_state>();
3939   int i;
4040   const rgb_t *palette = palette_entry_list_raw(bitmap.palette());
41   UINT8 *charmap = state->memregion("gfx1")->base() + (state->m_mikrosha_font_page & 1) * 0x400;
41   const UINT8 *charmap = state->m_charmap + (state->m_mikrosha_font_page & 1) * 0x400;
4242   UINT8 pixels = charmap[(linecount & 7) + (charcode << 3)] ^ 0xff;
4343   if (vsp) {
4444      pixels = 0;
r20468r20469
5959   radio86_state *state = device->machine().driver_data<radio86_state>();
6060   int i;
6161   const rgb_t *palette = palette_entry_list_raw(bitmap.palette());
62   UINT8 *charmap = state->memregion("gfx1")->base() + (gpa & 1) * 0x400;
62   const UINT8 *charmap = state->m_charmap + (gpa & 1) * 0x400;
6363   UINT8 pixels = charmap[(linecount & 7) + (charcode << 3)] ^ 0xff;
6464   if (vsp) {
6565      pixels = 0;
r20468r20469
8080   radio86_state *state = device->machine().driver_data<radio86_state>();
8181   int i;
8282   const rgb_t *palette = palette_entry_list_raw(bitmap.palette());
83   UINT8 *charmap = state->memregion("gfx1")->base() + 0x400 * (gpa * 2 + hlgt);
83   const UINT8 *charmap = state->m_charmap + 0x400 * (gpa * 2 + hlgt);
8484   UINT8 pixels = charmap[(linecount & 7) + (charcode << 3)] ^ 0xff;
8585   if (vsp) {
8686      pixels = 0;
r20468r20469
106106{
107107   palette_set_colors(machine(), 0, radio86_palette, ARRAY_LENGTH(radio86_palette));
108108}
109
110void radio86_state::video_start()
111{
112   m_charmap = memregion("gfx1")->base();
113}

Previous 199869 Revisions Next


© 1997-2024 The MAME Team