src/mess/machine/gb.c
| r6835 | r6836 | |
| 333 | 333 | gb_driver_data.divcount = 0x0004; |
| 334 | 334 | } |
| 335 | 335 | |
| 336 | |
| 337 | MACHINE_START( sgb ) |
| 338 | { |
| 339 | sgb_tile_data = auto_alloc_array_clear(machine, UINT8, 0x2000 ); |
| 340 | } |
| 341 | |
| 336 | 342 | MACHINE_RESET( sgb ) |
| 337 | 343 | { |
| 338 | 344 | gb_init(machine); |
| r6835 | r6836 | |
| 346 | 352 | /* Enable BIOS rom */ |
| 347 | 353 | memory_set_bankptr(machine, "bank5", memory_region(machine, "maincpu") ); |
| 348 | 354 | |
| 349 | | sgb_tile_data = auto_alloc_array_clear(machine, UINT8, 0x2000 ); |
| 350 | 355 | memset( sgb_tile_data, 0, 0x2000 ); |
| 351 | 356 | |
| 352 | 357 | sgb_window_mask = 0; |
src/mess/machine/advision.c
| r6835 | r6836 | |
| 28 | 28 | |
| 29 | 29 | MACHINE_START( advision ) |
| 30 | 30 | { |
| 31 | advision_state *state = machine->driver_data; |
| 31 | 32 | /* configure EA banking */ |
| 32 | 33 | memory_configure_bank(machine, "bank1", 0, 1, memory_region(machine, "bios"), 0); |
| 33 | 34 | memory_configure_bank(machine, "bank1", 1, 1, memory_region(machine, I8048_TAG), 0); |
| 34 | 35 | memory_install_readwrite_bank(cputag_get_address_space(machine, I8048_TAG, ADDRESS_SPACE_PROGRAM), 0x0000, 0x03ff, 0, 0, "bank1"); |
| 35 | 36 | memory_set_bank(machine, "bank1", 0); |
| 37 | |
| 38 | /* allocate external RAM */ |
| 39 | state->extram = auto_alloc_array(machine, UINT8, 0x400); |
| 36 | 40 | } |
| 37 | 41 | |
| 38 | 42 | MACHINE_RESET( advision ) |
| 39 | 43 | { |
| 40 | 44 | advision_state *state = machine->driver_data; |
| 41 | 45 | |
| 42 | | /* allocate external RAM */ |
| 43 | | state->extram = auto_alloc_array(machine, UINT8, 0x400); |
| 44 | | |
| 45 | 46 | /* enable internal ROM */ |
| 46 | 47 | cputag_set_input_line(machine, I8048_TAG, MCS48_INPUT_EA, CLEAR_LINE); |
| 47 | 48 | memory_set_bank(machine, "bank1", 0); |
src/mess/machine/99_usbsm.c
| r6835 | r6836 | |
| 75 | 75 | void ti99_usbsm_init(running_machine *machine) |
| 76 | 76 | { |
| 77 | 77 | ti99_usbsm_RAM = auto_alloc_array(machine, UINT16, 0x100000/2); |
| 78 | strataflash_init(machine, 0); |
| 78 | 79 | } |
| 79 | 80 | |
| 80 | 81 | /* |
| r6835 | r6836 | |
| 82 | 83 | */ |
| 83 | 84 | int ti99_usbsm_reset(running_machine *machine, int in_tms9995_mode) |
| 84 | 85 | { |
| 85 | | if (strataflash_init(machine, 0)) |
| 86 | | return 1; |
| 87 | | |
| 88 | 86 | ti99_peb_set_card_handlers(0x1600, & usbsm_handlers); |
| 89 | 87 | |
| 90 | 88 | feeprom_page = 0; |