Previous 15994 Revisions Next

r8555 Tuesday 20th July, 2010 at 23:33:40 UTC by Angelo Salese
[SMC-777]: Improved vram write catching
[src/mess/drivers]smc777.c

src/mess/drivers/smc777.c
r8554r8555
99      guesses ...
1010    - video emulation is just hacked up together to show something simple,
1111      dunno yet how it really works.
12    - Drop M6845 support and write custom code in place of it.
1213
1314****************************************************************************/
1415
r8554r8555
8081static WRITE8_HANDLER( smc777_vram_w )
8182{
8283   static UINT8 *vram = memory_region(space->machine, "vram");
84   static UINT16 vram_index;
8385
84   vram[cursor_addr] = data;
86   vram_index = cpu_get_reg(devtag_get_device(space->machine, "maincpu"), Z80_B);
87
88   vram[vram_index | offset*0x100] = data;
8589}
8690
8791static WRITE8_HANDLER( smc777_attr_w )
8892{
8993   static UINT8 *attr = memory_region(space->machine, "attr");
94   static UINT16 vram_index;
9095
91   attr[cursor_addr] = data;
96   vram_index = cpu_get_reg(devtag_get_device(space->machine, "maincpu"), Z80_B);
97
98   attr[vram_index | offset*0x100] = data;
9299}
93100
94101static ADDRESS_MAP_START(smc777_mem, ADDRESS_SPACE_PROGRAM, 8)
r8554r8555
167174    MDRV_SCREEN_REFRESH_RATE(50)
168175    MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */
169176    MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16)
170    MDRV_SCREEN_SIZE(640, 480)
171    MDRV_SCREEN_VISIBLE_AREA(0, 640-1, 0, 480-1)
177    MDRV_SCREEN_SIZE(640, 200)
178    MDRV_SCREEN_VISIBLE_AREA(0, 320-1, 0, 200-1)
172179    MDRV_PALETTE_LENGTH(2)
173180    MDRV_PALETTE_INIT(black_and_white)
174181   MDRV_GFXDECODE(smc777)

Previous 15994 Revisions Next


© 1998-2018 The MESS Team