/*---------------------------------------------------------------------- * File Name: mars.equ * * Copyright (c) 1994 Sega of America, Inc. All Rights Reserved. * * Author(s): T. Okawa * Date: 4-26-94 * Description: Mars equates * * History: * Modified jef 5/11/94 * *---------------------------------------------------------------------*/ .ifndef __MARS_EQU__ .equ __MARS_EQU__, 0 .equ CS0, 0x00000000 ! Boot rom & system registers .equ CS1, 0x02000000 ! Cart rom .equ CS2, 0x04000000 ! Frame buffer .equ CS3, 0x06000000 ! SDRAM .equ TH, 0x20000000 ! Cache thru address start .equ CS0TH, 0x20000000 ! Boot rom cached thru .equ CS1TH, 0x22000000 ! Cart rom cached thru .equ CS2TH, 0x24000000 ! frame buffer cached thru .equ CS3TH, 0x26000000 ! SDRAM chaced thru !---------------------------------------------------------------* ! SYSREG. !---------------------------------------------------------------* .equ _sysreg, 0x00004000+TH ! SYSREG. !.equ _sysreg, 0x00004000 ! SYSREG. .equ adapter, 0x00 ! adapter control register .equ intmask, 0x01 ! interrupt mask .equ standby, 0x02 ! スタンバイモード移行用 .equ hcount, 0x05 ! H Interrupt Counter register .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 vresintclr, 0x14 ! VRES interrupt clear .equ vintclr, 0x16 ! V interrupt clear .equ hintclr, 0x18 ! H interrupt clear .equ cmdintclr, 0x1a ! CMD interrupt clear .equ pwmintclr, 0x1c ! PWM interrupt clear ! not used 0x1e .equ comm0, 0x20 ! Communication port .equ comm2, 0x22 ! .equ comm4, 0x24 ! .equ comm6, 0x26 ! .equ comm8, 0x28 ! .equ comm9, 0x29 ! .equ comm10, 0x2a ! .equ comm12, 0x2c ! .equ comm14, 0x2e ! .equ timertcl, 0x30 ! PWM Timer Control .equ pwmctl, 0x31 ! PWM Control .equ cycle, 0x32 ! PWM Cycle .equ lchwidth, 0x34 ! PWM L ch Width .equ rchwidth, 0x36 ! PWM R ch Width .equ monowidth, 0x38 ! PWM Monaural Width !---------------------------------------------------------------* ! VDPREG. !---------------------------------------------------------------* .equ _vdpreg, 0x00004100+TH ! VDPREG. !.equ _vdpreg, 0x00004100 ! VDPREG. .equ tvmode, 0x00 ! TV mode register .equ bitmapmd, 0x01 ! Bitmap mode register .equ shift, 0x03 ! Shift Control register .equ filllength, 0x05 ! Auto Fill Length register .equ fillstart, 0x06 ! Auto Fill Start Address register .equ filldata, 0x08 ! Auto Fill Data register .equ vdpsts, 0x0a ! VDP Status register .equ framectl, 0x0b ! Frame Buffer Control register !---------------------------------------------------------------* .equ _palette, 0x00004200+TH ! Palette RAM .equ _framebuffer, CS2TH ! Frame buffer .equ _overwrite, CS2TH+0x20000 ! Over Write Image !---------------------------------------------------------------* .equ ROMSTART, 0x02000000 .equ SDRAMSTART, 0x06000000 .equ SDRAMEND, 0x06040000 .equ MasterStart, 0x06000000 .equ SlaveStart, 0x06002000 .equ S_STACK, 0x0603f000 .equ M_STACK, 0x06040000 .endif /* __MARS_EQU__ */