*---------------------------------------------------------------------* * File Name: marshdr.h * * Copyright (c) 1994 Sega of America, Inc. All Rights Reserved. * * Author(s): Unni Pillai * Date: 6-03-94 * Description: * MARS HEADER FILE * * History: * *---------------------------------------------------------------------* * include "constant.h" *---------------------------------------------------------------* * Genesis / Genisis ID ($000100) *---------------------------------------------------------------* _system_id: dc.b 'SEGA MEGA DRIVE ' ; Hardware system ID dc.b '(C)SEGA 1994.???' ; Company code, Release date *; ; Game name for Japan dc.b 'MARS SAMPLE PROGRAM ' *; ; Game name for other country dc.b 'MARS SAMPLE PROGRAM ' dc.b 'ROM Version1.2' ; dc.w CHECKSUM ; Cartrigde check sum dc.b 'J ' ; I/O support dc.l $000000,$01ffff ; ROM Start address, end address dc.l $ff0000,$ffffff ; Fix data dc.b 'MR',0,0 ; Ext RAM report dc.l $000000,$000000 ; Ext RAM Start address, end address dc.b ' ' ; MODEM information dc.b ' ' dc.b ' ' dc.b ' ' dc.b 'JU ' ; COUNTRY *---------------------------------------------------------------; * MARS vector ($000200) * MODS * *name date comments *---- ----- ------------------------------------------ *UP 06/02/94The following is a JUMP table to the users * exception routines. Upon switching to MARS * mode (done in ICD block), the CART is relocated * to 880000, and an internal ROM is mapped to * address 0. The internal ROM has a hardwired * vector table which is as follows: * * 0 ; Stack Pointer * 880200 ; PC * 880206 ; Bus Error * 88020C ; Address Error * * * etc ... * * When an exception occurs, the jump instruction * is fetched from the jump table and the exception * routine is executed. *---------------------------------------------------------------; mars_vector: jmp ENTRY ;StartSystem jmp dummy ;EX_BusError jmp dummy ;EX_AddressError jmp dummy ;EX_IllegalInstruction jmp dummy ;EX_DivideBy0 jmp dummy ;EX_CHK jmp dummy ;EX_TrapV jmp dummy ;EX_Priviledge jmp dummy ;EX_Trace jmp dummy ;EX_LineA jmp dummy ;EX_LineF * Reserved by motorola dcb.w 36,0 ;EX_Motorola * Hardware interrupts jmp dummy ;EX_Spurious jmp dummy ;EX_Level1 jmp dummy ;EX_Level2 jmp dummy ;EX_Level3 dc.w 0 ;this is needed to allign the ints jmp hbl_int ;EX_Level4 jmp dummy ;EX_Level5 jmp vbl_int ;EX_Level6 jmp dummy ;EX_Level7 jmp dummy ;EX_Trap0 jmp dummy ;EX_Trap1 jmp dummy ;EX_Trap2 jmp dummy ;EX_Trap3 jmp dummy ;EX_Trap4 jmp dummy ;EX_Trap5 jmp dummy ;EX_Trap6 jmp dummy ;EX_Trap7 jmp dummy ;EX_Trap8 jmp dummy ;EX_Trap9 jmp dummy ;EX_TrapA jmp dummy ;EX_TrapB jmp dummy ;EX_TrapC jmp dummy ;EX_TrapD jmp dummy ;EX_TrapE dc.w 0 dc.w 0 * jmp dummy ;EX_TrapF * Reserved by motorola dcb.w $54,$4e75 ;nop code *---------------------------------------------------------------; * MARS User Header ($0003c0) *---------------------------------------------------------------; MarsInitHeader: dc.b 'MARS CHECK MODE ' ; module name dc.l $00000000 ; version dc.l $00080000 ; SH2 Program start address dc.l $00000000 ; SH2 Program write address dc.l $00040000 ; SH2 Program length dc.l $0200c81a ; Master SH2 initial PC dc.l $0200c800 ; Slave SH2 initial PC dc.l $0200c000 ; Master SH2 initial VBR address dc.l $0200c400 ; Slave SH2 intitial VBR address * dcb.b $10,0 MarsInitHeaderEnd: