/**************************************************************** * MARS Initial Program (SH‡U) * SH Map * Copyright(c) 1994 SEGA * *---------------------------------------------------------------* * Written by T.Okawa 2/19/94~~4/19/94 *---------------------------------------------------------------* * Modified by Jonathan Flamm 5/9/94 *****************************************************************/ .equ CS0, 0x00000000 .equ CS1, 0x02000000 .equ CS2, 0x04000000 .equ CS3, 0x06000000 .equ TH, 0x20000000 .equ CS0TH, 0x20000000 .equ CS1TH, 0x22000000 .equ CS2TH, 0x24000000 .equ CS3TH, 0x26000000 .equ _CACHEPARGE, 0x40000000 ! cache parge .equ _ADDRESSARAY, 0x60000000 ! Address aray .equ SDMRBASE, 0xffff8000 ! SDRAM mode register base addr .equ _SERIALMODE, 0xfffffe00 ! Serial mode register .equ _STBYREG, 0xfffffe91 ! Standby control register .equ _CCRREG, 0xfffffe92 ! .equ _BSCREG, 0xffffffe0 /*---------------------------------------------------------------* * SYSREG * *---------------------------------------------------------------*/ ! .equ _sysreg, 0x20004000 ! SYSREG. .equ _sysreg, 0x00004000 ! SYSREG. .equ adapter, 0x00 ! adapter control register .equ intmask, 0x01 ! interrupt mask .equ standby, 0x02 ! .equ dreqctl, 0x06 ! DREQ control .equ dreqsource, 0x08 ! DREQ source address .equ dreqdest, 0x0c ! DREQ destination address .equ dreqlen, 0x10 ! DREQ length .equ fifo, 0x12 ! FIFO .equ vintclr, 0x14 ! V interrupt clear .equ hintclr, 0x16 ! H interrupt clear .equ cmdintclr, 0x18 ! CMD interrupt clear .equ vresintclr, 0x1a ! VRES interrupt clear .equ comm0, 0x20 ! Communication port .equ comm1, 0x21 ! .equ comm2, 0x22 ! .equ comm4, 0x24 ! .equ comm6, 0x26 ! .equ comm8, 0x28 ! .equ comm10, 0x2a ! .equ comm12, 0x2c ! .equ comm14, 0x2e ! /*---------------------------------------------------------------* * ROM *---------------------------------------------------------------*/ .equ _SHPROGRAMST, 0x220003d4 ! SH2 Program start address .equ _SHPROGRAMLD, 0x220003d8 ! SH2 Program write address .equ _SHPROGRAMSZ, 0x220003dc ! SH2 Program length .equ _SHMASTERST, 0x220003e0 ! SH2 Master initial PC .equ _SHSLAVEST, 0x220003e4 ! SH2 Slave initial PC .equ _ICDMARSPRG, 0x22000400 ! Security Program Start address /*---------------------------------------------------------------* * Bit assign * *---------------------------------------------------------------*/ ! _adapterreg .equ CART, 0x01 ! 0: CD 1: Cartridge .equ ADEN, 0x02 ! 0: No MARS 1: MARS