Previous 199869 Revisions Next

r19058 Tuesday 20th November, 2012 at 01:38:13 UTC by Angelo Salese
Fixed a bunch of attribute bits
[src/mess/drivers]apc.c

trunk/src/mess/drivers/apc.c
r19057r19058
5757#include "machine/pit8253.h"
5858#include "machine/am9517a.h"
5959#include "machine/upd765.h"
60#include "machine/nvram.h"
6061#include "video/upd7220.h"
6162#include "imagedev/flopdrv.h"
6263#include "formats/mfi_dsk.h"
6364#include "formats/d88_dsk.h"
6465#include "formats/imd_dsk.h"
66
6567//#include "sound/ay8910.h"
6668
6769class apc_state : public driver_device
r19057r19058
227229            if(reverse) { tile_data^=0xff; }
228230            if(u_line && yi == lr-1) { tile_data = 0xff; }
229231            if(o_line && yi == 0) { tile_data = 0xff; }
230            if(v_line)  { tile_data|=8; }
231            if(blink && device->machine().primary_screen->frame_number() & 0x10) { tile_data = 0; } // TODO: rate & correct behaviour
232            if(v_line)  { tile_data|=1; }
233            if(blink && device->machine().primary_screen->frame_number() & 0x20) { tile_data = 0; } // TODO: rate & correct behaviour
232234
233235            if(cursor_on && cursor_addr == tile_addr && device->machine().primary_screen->frame_number() & 0x10)
234236               tile_data^=0xff;
r19057r19058
405407
406408static ADDRESS_MAP_START( apc_map, AS_PROGRAM, 16, apc_state )
407409   AM_RANGE(0x00000, 0x9ffff) AM_RAM
408//  AM_RANGE(0xa0000, 0xa0fff) CMOS
410   AM_RANGE(0xa0000, 0xa0fff) AM_RAM AM_SHARE("cmos")
409411//   AM_RANGE(0xc0000, 0xcffff) standard character ROM
410//   AM_RANGE(0xde000, 0xdffff) AUX character RAM
412   AM_RANGE(0xd8000, 0xdffff) AM_RAM // AUX character RAM
411413//   AM_RANGE(0xe0000, 0xeffff) Special Character RAM
412414   AM_RANGE(0xfe000, 0xfffff) AM_ROM AM_REGION("ipl", 0)
413415ADDRESS_MAP_END
r19057r19058
910912   MCFG_PIC8259_ADD( "pic8259_slave", pic8259_slave_config )
911913   MCFG_I8237_ADD("i8237", MAIN_CLOCK, dmac_intf)
912914
915   MCFG_NVRAM_ADD_1FILL("cmos")
916
913917   MCFG_UPD765A_ADD("upd765", true, true)
914918   MCFG_FLOPPY_DRIVE_ADD("upd765:0", apc_floppies, "8", 0, apc_floppy_formats)
915919   MCFG_FLOPPY_DRIVE_ADD("upd765:1", apc_floppies, "8", 0, apc_floppy_formats)

Previous 199869 Revisions Next


© 1997-2024 The MAME Team