參考資訊:
http://www.hacking-cult.org/?r/18/21
https://github.com/ekeeke/Genesis-Plus-GX
Offset | Description |
---|---|
0x00 | Stack pointer |
0x04 | Code start |
0x08 | Bus error |
0x0C | Address error |
0x10 | Illegal instruction |
0x14 | Divistion by zero |
0x18 | CHK exception |
0x1C | TRAPV exception |
0x20 | Privilege violation |
0x24 | TRACE exeption |
0x28 | LINE 1010 EMULATOR |
0x2C | LINE 1111 EMULATOR |
0x30-0x5F | Reserved by Motorola |
0x60 | Spurious exception |
0x64 | Interrupt request level 1 |
0x68 | Interrupt request level 2 |
0x6C | Interrupt request level 3 |
0x70 | Interrupt request level 4 (VDP interrupt / Horizontal blank) |
0x74 | Interrupt request level 5 |
0x78 | Interrupt request level 6 (Vertical blank) |
0x7C | Interrupt request level 7 |
0x80 | TRAP #00 exception |
0x84 | TRAP #01 exception |
0x88 | TRAP #02 exception |
0x8C | TRAP #03 exception |
0x90 | TRAP #04 exception |
0x94 | TRAP #05 exception |
0x98 | TRAP #06 exception |
0x9C | TRAP #07 exception |
0xA0 | TRAP #08 exception |
0xA4 | TRAP #09 exception |
0xA8 | TRAP #10 exception |
0xAC | TRAP #11 exception |
0xB0 | TRAP #12 exception |
0xB4 | TRAP #13 exception |
0xB8 | TRAP #14 exception |
0xBC | TRAP #15 exception |
0xC0-0xFF | Reserved by Motorola |
0x100-0x10F | Console name (usually 'SEGA MEGA DRIVE ' or 'SEGA GENESIS ') |
0x110-0x11F | Release date (usually '(C)XXXX YYYY.MMM' where XXXX is the company code, YYYY is the year and MMM is the month) |
0x120-0x14F | Domestic name |
0x150-0x17F | International name |
0x180-0x18D | Version ('XX YYYYYYYYYYYY' where XX is the game type and YY the game code) |
0x18E-0x18F | Checksum (for info how to calculate checksum go HERE) |
0x190-0x19F | I/O support |
0x1A0-0x1A3 | ROM start |
0x1A4-0x1A7 | ROM end |
0x1A8-0x1AB | RAM start (usually 0x00FF0000) |
0x1AC-0x1AF | RAM end (usually 0x00FFFFFF) |
0x1B0-0x1B2 | 'RA' and 0xF8 enables SRAM. |
0x1B3 | unused (0x20) |
0x1B4-0x1B7 | SRAM start (default 0x00200000) |
0x1B8-0x1BB | SRAM end (default 0x0020FFFF) |
0x1BC-0x1FF | Notes (unused) |