src/mess/drivers/super80.c
| r1987 | r1988 | |
| 529 | 529 | |
| 530 | 530 | /**************************** MEMORY AND I/O MAPPINGS *****************************************************************/ |
| 531 | 531 | |
| 532 | | static READ8_HANDLER( super80_read_ff ) { return 0xff; } /* returns the true state of unmapped memory */ |
| 532 | /* A read_byte or write_byte to unmapped memory crashes MESS, and UNMAP doesnt fix it */ |
| 533 | static READ8_HANDLER( super80_read_ff ) { return 0xff; } |
| 533 | 534 | |
| 534 | 535 | static ADDRESS_MAP_START( super80_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 535 | 536 | AM_RANGE(0x0000, 0x3fff) AM_RAMBANK(1) |
| r1987 | r1988 | |
| 554 | 555 | ADDRESS_MAP_END |
| 555 | 556 | |
| 556 | 557 | static ADDRESS_MAP_START( super80_io, ADDRESS_SPACE_IO, 8 ) |
| 557 | | ADDRESS_MAP_FLAGS( AMEF_ABITS(8) ) |
| 558 | | AM_RANGE(0x00, 0xdf) AM_READWRITE(super80_read_ff, MWA8_NOP) |
| 559 | | AM_RANGE(0xe0, 0xe0) AM_MIRROR(0x14) AM_READWRITE(super80_read_ff, super80_f0_w) |
| 560 | | AM_RANGE(0xe1, 0xe1) AM_MIRROR(0x14) AM_READWRITE(super80_read_ff, super80_f1_w) |
| 561 | | AM_RANGE(0xe2, 0xe2) AM_MIRROR(0x14) AM_READWRITE(super80_f2_r, MWA8_NOP) |
| 562 | | AM_RANGE(0xe3, 0xe3) AM_MIRROR(0x14) AM_READWRITE(super80_read_ff, MWA8_NOP) /* decoded but not connected to anything */ |
| 563 | | AM_RANGE(0xe8, 0xef) AM_READWRITE(super80_read_ff, MWA8_NOP) |
| 558 | ADDRESS_MAP_FLAGS( AMEF_ABITS(8) | ( AMEF_UNMAP(1) )) |
| 559 | AM_RANGE(0xe0, 0xe0) AM_MIRROR(0x14) AM_WRITE(super80_f0_w) |
| 560 | AM_RANGE(0xe1, 0xe1) AM_MIRROR(0x14) AM_WRITE(super80_f1_w) |
| 561 | AM_RANGE(0xe2, 0xe2) AM_MIRROR(0x14) AM_READ(super80_f2_r) |
| 564 | 562 | AM_RANGE(0xf8, 0xf8) AM_MIRROR(0x04) AM_READWRITE(super80_f8_r,super80_f8_w) |
| 565 | 563 | AM_RANGE(0xf9, 0xf9) AM_MIRROR(0x04) AM_READWRITE(super80_f9_r,super80_f9_w) |
| 566 | 564 | AM_RANGE(0xfa, 0xfa) AM_MIRROR(0x04) AM_READWRITE(super80_fa_r,super80_fa_w) |
| r1987 | r1988 | |
| 568 | 566 | ADDRESS_MAP_END |
| 569 | 567 | |
| 570 | 568 | static ADDRESS_MAP_START( super80v_io, ADDRESS_SPACE_IO, 8 ) |
| 571 | | ADDRESS_MAP_FLAGS( AMEF_ABITS(8) ) |
| 572 | | AM_RANGE(0x00, 0x0f) AM_READWRITE(super80_read_ff, MWA8_NOP) |
| 573 | | AM_RANGE(0x10, 0x10) AM_READWRITE(super80_read_ff, super80v_10_w) |
| 569 | ADDRESS_MAP_FLAGS( AMEF_ABITS(8) | ( AMEF_UNMAP(1) )) |
| 570 | AM_RANGE(0x10, 0x10) AM_WRITE(super80v_10_w) |
| 574 | 571 | AM_RANGE(0x11, 0x11) AM_READWRITE(super80v_11_r, super80v_11_w) |
| 575 | | AM_RANGE(0x12, 0xdf) AM_READWRITE(super80_read_ff, MWA8_NOP) |
| 576 | | AM_RANGE(0xe0, 0xe0) AM_MIRROR(0x14) AM_READWRITE(super80_read_ff, super80v_f0_w) |
| 577 | | AM_RANGE(0xe1, 0xe1) AM_MIRROR(0x14) AM_READWRITE(super80_read_ff, MWA8_NOP) /* decoded but not connected to anything */ |
| 578 | | AM_RANGE(0xe2, 0xe2) AM_MIRROR(0x14) AM_READWRITE(super80_f2_r, MWA8_NOP) |
| 579 | | AM_RANGE(0xe3, 0xe3) AM_MIRROR(0x14) AM_READWRITE(super80_read_ff, MWA8_NOP) /* decoded but not connected to anything */ |
| 580 | | AM_RANGE(0xe8, 0xef) AM_READWRITE(super80_read_ff, MWA8_NOP) |
| 572 | AM_RANGE(0xe0, 0xe0) AM_MIRROR(0x14) AM_WRITE(super80v_f0_w) |
| 573 | AM_RANGE(0xe2, 0xe2) AM_MIRROR(0x14) AM_READ(super80_f2_r) |
| 581 | 574 | AM_RANGE(0xf8, 0xf8) AM_MIRROR(0x04) AM_READWRITE(super80_f8_r,super80_f8_w) |
| 582 | 575 | AM_RANGE(0xf9, 0xf9) AM_MIRROR(0x04) AM_READWRITE(super80_f9_r,super80_f9_w) |
| 583 | 576 | AM_RANGE(0xfa, 0xfa) AM_MIRROR(0x04) AM_READWRITE(super80_fa_r,super80_fa_w) |
| r1987 | r1988 | |
| 989 | 982 | { |
| 990 | 983 | UINT8 sw = readinputportbytag("CONFIG") & 1; /* reading the dipswitch: 1 = autorun */ |
| 991 | 984 | UINT16 exec_addr; |
| 992 | | UINT64 return_info = z80bin_load_file( image, file_type ); /* load file */ |
| 985 | UINT64 return_info = z80bin_load_file( machine, image, file_type ); /* load file */ |
| 993 | 986 | |
| 994 | 987 | if (return_info == INIT_FAIL) return INIT_FAIL; /* failure */ |
| 995 | 988 | |