Previous 15994 Revisions Next

r8561 Wednesday 21st July, 2010 at 08:52:31 UTC by Miodrag Milanović
Missed two files
[src/mess/drivers]3do.c smc777.c

src/mess/drivers/3do.c
r8560r8561
149149
150150   _3do_slow2_init(machine);
151151   _3do_madam_init(machine);
152   _3do_clio_init(machine, downcast<screen_device *>(devtag_get_device(machine,"screen")));
152   _3do_clio_init(machine, downcast<screen_device *>(machine->device("screen")));
153153}
154154
155155
src/mess/drivers/smc777.c
r8560r8561
6464   if(offset == 0)
6565   {
6666      addr_latch = data;
67      mc6845_address_w(devtag_get_device(space->machine, "crtc"), 0,data);
67      mc6845_address_w(space->machine->device("crtc"), 0,data);
6868   }
6969   else
7070   {
r8560r8561
7474      else if(addr_latch == 0x0f)
7575         cursor_addr = (cursor_addr & 0x3f00) | (data & 0xff);
7676
77      mc6845_register_w(devtag_get_device(space->machine, "crtc"), 0,data);
77      mc6845_register_w(space->machine->device("crtc"), 0,data);
7878   }
7979}
8080
r8560r8561
8383   static UINT8 *vram = memory_region(space->machine, "vram");
8484   static UINT16 vram_index;
8585
86   vram_index = cpu_get_reg(devtag_get_device(space->machine, "maincpu"), Z80_B);
86   vram_index = cpu_get_reg(space->machine->device("maincpu"), Z80_B);
8787
8888   return vram[vram_index | offset*0x100];
8989}
r8560r8561
9393   static UINT8 *attr = memory_region(space->machine, "attr");
9494   static UINT16 vram_index;
9595
96   vram_index = cpu_get_reg(devtag_get_device(space->machine, "maincpu"), Z80_B);
96   vram_index = cpu_get_reg(space->machine->device("maincpu"), Z80_B);
9797
9898   return attr[vram_index | offset*0x100];
9999}
r8560r8561
103103   static UINT8 *pcg = memory_region(space->machine, "pcg");
104104   static UINT16 vram_index;
105105
106   vram_index = cpu_get_reg(devtag_get_device(space->machine, "maincpu"), Z80_B);
106   vram_index = cpu_get_reg(space->machine->device("maincpu"), Z80_B);
107107
108108   return pcg[vram_index | offset*0x100];
109109}
r8560r8561
113113   static UINT8 *vram = memory_region(space->machine, "vram");
114114   static UINT16 vram_index;
115115
116   vram_index = cpu_get_reg(devtag_get_device(space->machine, "maincpu"), Z80_B);
116   vram_index = cpu_get_reg(space->machine->device("maincpu"), Z80_B);
117117
118118   vram[vram_index | offset*0x100] = data;
119119}
r8560r8561
123123   static UINT8 *attr = memory_region(space->machine, "attr");
124124   static UINT16 vram_index;
125125
126   vram_index = cpu_get_reg(devtag_get_device(space->machine, "maincpu"), Z80_B);
126   vram_index = cpu_get_reg(space->machine->device("maincpu"), Z80_B);
127127
128128   attr[vram_index | offset*0x100] = data;
129129}
r8560r8561
133133   static UINT8 *pcg = memory_region(space->machine, "pcg");
134134   static UINT16 vram_index;
135135
136   vram_index = cpu_get_reg(devtag_get_device(space->machine, "maincpu"), Z80_B);
136   vram_index = cpu_get_reg(space->machine->device("maincpu"), Z80_B);
137137
138138   pcg[vram_index | offset*0x100] = data;
139139
r8560r8561
145145   static UINT8 *fbuf = memory_region(space->machine, "fbuf");
146146   static UINT16 vram_index;
147147
148   vram_index = cpu_get_reg(devtag_get_device(space->machine, "maincpu"), Z80_B);
148   vram_index = cpu_get_reg(space->machine->device("maincpu"), Z80_B);
149149
150150   return fbuf[vram_index | offset*0x100];
151151}
r8560r8561
155155   static UINT8 *fbuf = memory_region(space->machine, "fbuf");
156156   static UINT16 vram_index;
157157
158   vram_index = cpu_get_reg(devtag_get_device(space->machine, "maincpu"), Z80_B);
158   vram_index = cpu_get_reg(space->machine->device("maincpu"), Z80_B);
159159
160160   fbuf[vram_index | offset*0x100] = data;
161161}

Previous 15994 Revisions Next


© 1998-2018 The MESS Team