src/mess/machine/sms.c
| r9963 | r9964 | |
| 862 | 862 | } |
| 863 | 863 | } |
| 864 | 864 | |
| 865 | | |
| 865 | #ifdef MESS |
| 866 | 866 | static WRITE8_HANDLER( sms_korean_zemina_banksw_w ) |
| 867 | 867 | { |
| 868 | 868 | sms_state *state = space->machine->driver_data<sms_state>(); |
| r9963 | r9964 | |
| 935 | 935 | } |
| 936 | 936 | } |
| 937 | 937 | } |
| 938 | #endif |
| 938 | 939 | |
| 939 | 940 | static READ8_HANDLER( sms_kor_nobank_r ) |
| 940 | 941 | { |
| r9963 | r9964 | |
| 1665 | 1666 | } |
| 1666 | 1667 | } |
| 1667 | 1668 | |
| 1668 | | |
| 1669 | #ifdef MESS |
| 1669 | 1670 | static void setup_banks( running_machine *machine ) |
| 1670 | 1671 | { |
| 1671 | 1672 | sms_state *state = machine->driver_data<sms_state>(); |
| r9963 | r9964 | |
| 1697 | 1698 | state->banking_bios[5] = state->BIOS + ((2 < state->bios_page_count) ? 0x8000 : 0); |
| 1698 | 1699 | } |
| 1699 | 1700 | } |
| 1701 | #endif |
| 1700 | 1702 | |
| 1701 | | |
| 1702 | 1703 | MACHINE_START( sms ) |
| 1703 | 1704 | { |
| 1704 | 1705 | sms_state *state = machine->driver_data<sms_state>(); |
| r9963 | r9964 | |
| 1722 | 1723 | timer_set(machine, attotime_zero, NULL, 0, lightgun_tick); |
| 1723 | 1724 | } |
| 1724 | 1725 | |
| 1725 | | |
| 1726 | #ifdef MESS |
| 1726 | 1727 | MACHINE_RESET( sms ) |
| 1727 | 1728 | { |
| 1728 | 1729 | address_space *space = cputag_get_address_space(machine, "maincpu", ADDRESS_SPACE_PROGRAM); |
| r9963 | r9964 | |
| 1786 | 1787 | |
| 1787 | 1788 | state->tvdraw_data = 0; |
| 1788 | 1789 | } |
| 1790 | #endif |
| 1789 | 1791 | |
| 1790 | | |
| 1791 | 1792 | READ8_HANDLER( sms_store_cart_select_r ) |
| 1792 | 1793 | { |
| 1793 | 1794 | return 0xff; |
src/mess/machine/pce.c
| r9963 | r9964 | |
| 86 | 86 | static UINT8 pce_io_port_options; |
| 87 | 87 | |
| 88 | 88 | /* system RAM */ |
| 89 | #ifdef MESS |
| 89 | 90 | unsigned char *pce_user_ram; /* scratch RAM at F8 */ |
| 91 | #else |
| 92 | extern unsigned char *pce_user_ram; /* scratch RAM at F8 */ |
| 93 | #endif |
| 90 | 94 | |
| 91 | 95 | /* CD Unit RAM */ |
| 92 | 96 | UINT8 *pce_cd_ram; /* 64KB RAM from a CD unit */ |
| r9963 | r9964 | |
| 178 | 182 | #define JOY_CLOCK 0x01 |
| 179 | 183 | #define JOY_RESET 0x02 |
| 180 | 184 | |
| 185 | #ifdef MESS |
| 181 | 186 | static int joystick_port_select; /* internal index of joystick ports */ |
| 182 | 187 | static int joystick_data_select; /* which nibble of joystick data we want */ |
| 188 | #endif |
| 183 | 189 | |
| 184 | 190 | /* prototypes */ |
| 185 | 191 | static void pce_cd_init( running_machine *machine ); |
| r9963 | r9964 | |
| 331 | 337 | } |
| 332 | 338 | return 0; |
| 333 | 339 | } |
| 334 | | |
| 340 | #ifdef MESS |
| 335 | 341 | DRIVER_INIT( pce ) |
| 336 | 342 | { |
| 337 | 343 | pce_io_port_options = PCE_JOY_SIG | CONST_SIG; |
| 338 | 344 | } |
| 339 | | |
| 345 | #endif |
| 340 | 346 | DRIVER_INIT( tg16 ) |
| 341 | 347 | { |
| 342 | 348 | pce_io_port_options = TG_16_JOY_SIG | CONST_SIG; |
| r9963 | r9964 | |
| 352 | 358 | pce_cd_init( machine ); |
| 353 | 359 | } |
| 354 | 360 | |
| 361 | #ifdef MESS |
| 355 | 362 | static UINT8 joy_6b_packet[5]; |
| 356 | 363 | |
| 357 | 364 | MACHINE_RESET( pce ) |
| r9963 | r9964 | |
| 452 | 459 | |
| 453 | 460 | return (ret); |
| 454 | 461 | } |
| 455 | | |
| 462 | #endif |
| 456 | 463 | NVRAM_HANDLER( pce ) |
| 457 | 464 | { |
| 458 | 465 | if (read_or_write) |
src/mess/drivers/ng_aes.c
| r9963 | r9964 | |
| 121 | 121 | } |
| 122 | 122 | } |
| 123 | 123 | |
| 124 | | |
| 124 | #ifdef MESS |
| 125 | 125 | void neogeo_set_display_position_interrupt_control( running_machine *machine, UINT16 data ) |
| 126 | 126 | { |
| 127 | 127 | neogeo_state *state = machine->driver_data<neogeo_state>(); |
| r9963 | r9964 | |
| 153 | 153 | adjust_display_position_interrupt_timer(space->machine); |
| 154 | 154 | } |
| 155 | 155 | } |
| 156 | #endif |
| 156 | 157 | |
| 157 | | |
| 158 | 158 | static void update_interrupts( running_machine *machine ) |
| 159 | 159 | { |
| 160 | 160 | neogeo_state *state = machine->driver_data<neogeo_state>(); |
| r9963 | r9964 | |
| 173 | 173 | } |
| 174 | 174 | } |
| 175 | 175 | |
| 176 | | |
| 176 | #ifdef MESS |
| 177 | 177 | void neogeo_acknowledge_interrupt( running_machine *machine, UINT16 data ) |
| 178 | 178 | { |
| 179 | 179 | neogeo_state *state = machine->driver_data<neogeo_state>(); |
| r9963 | r9964 | |
| 187 | 187 | |
| 188 | 188 | update_interrupts(machine); |
| 189 | 189 | } |
| 190 | #endif |
| 190 | 191 | |
| 191 | | |
| 192 | 192 | static TIMER_CALLBACK( display_position_interrupt_callback ) |
| 193 | 193 | { |
| 194 | 194 | neogeo_state *state = machine->driver_data<neogeo_state>(); |
| r9963 | r9964 | |
| 370 | 370 | * Unmapped memory access |
| 371 | 371 | * |
| 372 | 372 | *************************************/ |
| 373 | | |
| 373 | #ifdef MESS |
| 374 | 374 | READ16_HANDLER( neogeo_unmapped_r ) |
| 375 | 375 | { |
| 376 | 376 | neogeo_state *state = space->machine->driver_data<neogeo_state>(); |
| r9963 | r9964 | |
| 391 | 391 | |
| 392 | 392 | return ret; |
| 393 | 393 | } |
| 394 | #endif |
| 394 | 395 | |
| 395 | 396 | |
| 396 | 397 | |
| 397 | | |
| 398 | 398 | /************************************* |
| 399 | 399 | * |
| 400 | 400 | * uPD4990A calendar chip |
| r9963 | r9964 | |
| 640 | 640 | memory_set_bankptr(machine, NEOGEO_BANK_CARTRIDGE, &machine->region("maincpu")->base()[state->main_cpu_bank_address]); |
| 641 | 641 | } |
| 642 | 642 | |
| 643 | | |
| 643 | #ifdef MESS |
| 644 | 644 | void neogeo_set_main_cpu_bank_address( address_space *space, UINT32 bank_address ) |
| 645 | 645 | { |
| 646 | 646 | neogeo_state *state = space->machine->driver_data<neogeo_state>(); |
| r9963 | r9964 | |
| 651 | 651 | |
| 652 | 652 | _set_main_cpu_bank_address(space->machine); |
| 653 | 653 | } |
| 654 | #endif |
| 654 | 655 | |
| 655 | | |
| 656 | 656 | static WRITE16_HANDLER( main_cpu_bank_select_w ) |
| 657 | 657 | { |
| 658 | 658 | UINT32 bank_address; |