src/mess/drivers/tutor.c
| r4103 | r4104 | |
| 70 | 70 | seem to be used: triggering these seems to cause a soft reset. XOPs are |
| 71 | 71 | not used at all: the ROM area where these vectors should be defined is used |
| 72 | 72 | by a ROM branch table. |
| 73 | |
| 74 | **** Added by Robbbert, Jan 2009 **** |
| 75 | |
| 76 | Memory Map found at http://www.floodgap.com/retrobits/tomy/mmap.html |
| 77 | |
| 78 | *** $0000-$7FFF is the 32K BIOS *** |
| 79 | it is also possible to replace the BIOS with an external ROM (see $E000 range) |
| 80 | |
| 81 | 0000 |
| 82 | reset vector (level 0) |
| 83 | 0000-0001: WP 0002-0003: PC (%) |
| 84 | 0004 |
| 85 | level 1 and 2 IRQ vectors (%) |
| 86 | idem. These just seem to reset the system. |
| 87 | 000C |
| 88 | additional vectors |
| 89 | 0040 |
| 90 | XOP vectors (%) |
| 91 | The BIOS doesn't seem to use these for XOPs. |
| 92 | Instead, this is a branch table. |
| 93 | 0080 |
| 94 | BIOS code |
| 95 | (CRU only: $1EE0-FE: 9995 flag register; |
| 96 | $1FDA: MID flag) |
| 97 | 4000 |
| 98 | GBASIC |
| 99 | (on the American v2.3 firmware, the GPL |
| 100 | interpreter and VDP RAMLUT co-exist |
| 101 | with GBASIC in this range) |
| 102 | |
| 103 | *** $8000-$BFFF is the 16K option ROM area *** |
| 104 | |
| 105 | 8000 |
| 106 | BASIC (Tutor only) and/or cartridge ROM |
| 107 | (controlled by $E100) |
| 108 | To be recognized, a cartridge must have a |
| 109 | $55, $66 or $aa header sequence. |
| 110 | |
| 111 | *** end ROM *** |
| 112 | C000 |
| 113 | unmapped (possible use in 24K cartridges) |
| 114 | E000 |
| 115 | I/O range |
| 116 | --------- |
| 117 | 9918A VDP data/register ports: $E000, E002 |
| 118 | "MMU" banking controls: $E100-E1FF |
| 119 | $E100 write: enable cartridge, disable |
| 120 | BIOS at $0000 (???) -- magic |
| 121 | required at $E110 for this |
| 122 | $E108 write: enable BASIC ROM, disable |
| 123 | cartridge at $8000 |
| 124 | $E10C write: enable cartridge, disable |
| 125 | BASIC ROM at $8000 |
| 126 | $E110 must be $42 to enable $E100 |
| 127 | and to replace the BIOS with |
| 128 | an installed cartridge ROM. |
| 129 | BLWP assumed at $0000 (??). |
| 130 | SN76489AN sound data port: $E200 |
| 131 | Device handshaking: $E600 |
| 132 | Unknown purpose, disk drive maybe? |
| 133 | Printer handshaking: $E800 |
| 134 | This is a standard Centronics port. |
| 135 | $E810 write: parallel data bus |
| 136 | $E820 read: parallel port busy |
| 137 | $E840 write: port handshake output |
| 138 | Keyboard lines: $EC00-$EC7E (*CRU*) |
| 139 | (CRU physical address $7600-$763F) |
| 140 | Cassette lines: $ED00-$EEFF |
| 141 | $ED00 (*CRU*): input level |
| 142 | (physical address $7680) |
| 143 | $EE00 write: tape output zero |
| 144 | $EE20 write: tape output one |
| 145 | $EE40 write: tape IRQ on |
| 146 | $EE60 write: tape IRQ off |
| 147 | $EE80, A0, C0, E0: ??? |
| 148 | |
| 149 | F000 |
| 150 | TMS9995 RAM (*) |
| 151 | F0FC |
| 152 | ?? |
| 153 | FFFA |
| 154 | decrementer (*) |
| 155 | FFFC |
| 156 | NMI vector (*) |
| 157 | FFFF |
| 158 | |
| 73 | 159 | */ |
| 74 | 160 | |
| 75 | 161 | #include "driver.h" |
| r4103 | r4104 | |
| 417 | 503 | static ADDRESS_MAP_START(tutor_memmap, ADDRESS_SPACE_PROGRAM, 8) |
| 418 | 504 | |
| 419 | 505 | AM_RANGE(0x0000, 0x7fff) AM_ROM /*system ROM*/ |
| 420 | | AM_RANGE(0x8000, 0xbfff) AM_ROMBANK(1) /*BASIC ROM & cartridge ROM*/ |
| 506 | AM_RANGE(0x8000, 0xbfff) AM_ROMBANK(1) AM_WRITENOP/*BASIC ROM & cartridge ROM*/ |
| 421 | 507 | AM_RANGE(0xc000, 0xdfff) AM_NOP /*free for expansion, or cartridge ROM?*/ |
| 422 | 508 | |
| 423 | 509 | AM_RANGE(0xe000, 0xe000) AM_READWRITE(TMS9928A_vram_r, TMS9928A_vram_w) /*VDP data*/ |