;**************************************************************** ; MARS Check Program ; SH2 Mapping ; ; Copyright SEGA ENTERPRISES,LTD. 1994 ; SEGA ENTERPRISES,LTD. ; CS Hardware R&D Dept. ; T.Okawa ;---------------------------------------------------------------* ; ;**************************************************************** CS0 .equ h'00000000 ; ブートROM、レジスタ CS1 .equ h'02000000 ; カートリッジROM CS2 .equ h'04000000 ; フレームバッファ CS3 .equ h'06000000 ; SDRAM TH .equ h'20000000 ; キャッシュスルー CS0TH .equ h'20000000 ; ブートROM、レジスタ キャッシュスルー CS1TH .equ h'22000000 ; カートリッジROM   キャッシュスルー CS2TH .equ h'24000000 ; フレームバッファ  キャッシュスルー CS3TH .equ h'26000000 ; SDRAM  キャッシュスルー _SCI .equ h'fffffe00 ; Serial mode register _SMR .equ h'00 ; " _BRR .equ h'01 ; Bit rate register _SCR .equ h'02 ; Serial control register _TDR .equ h'03 ; Transmit data register _SSR .equ h'04 ; Serial status register _RDR .equ h'05 ; receive data register _FRT .equ h'fffffe10 ; Free run timer _TIER .equ h'00 ; Timer interrup enable register _TCSR .equ h'01 ; Timer control & status register _FRC_H .equ h'02 ; free running counter High _FRC_L .equ h'03 ; free running counter Low _OCR_H .equ h'04 ; Output compare register High _OCR_L .equ h'05 ; Output compare register Low _TCR .equ h'06 ; Timer control register _TOCR .equ h'07 ; timer output compare control register _CCRREG .equ h'fffffe92 ; キャッシュコントロールレジスタ _IPRB .equ h'fffffe60 ; 割り込み優先レベル設定レジスタB _VCRA .equ h'fffffe62 ; ベクタ番号設定レジスタA _VCRB .equ h'fffffe64 ; ベクタ番号設定レジスタB _VCRC .equ h'fffffe66 ; ベクタ番号設定レジスタC _VCRD .equ h'fffffe68 ; ベクタ番号設定レジスタD _ICR .equ h'fffffee0 ; 割り込みコントロールレジスタ _IPRA .equ h'fffffee2 ; 割り込み優先レベル設定レジスタA _VDRWDT .equ h'fffffee4 ; ベクタ番号設定レジスタWDT _DMASOURCE0 .equ h'ffffff80 ; DMA source address 0 _DMADEST0 .equ h'ffffff84 ; DMA destination address 0 _DMACOUNT0 .equ h'ffffff88 ; DMA transfer count 0 _DMACHANNEL0 .equ h'ffffff8c ; DMA channel control 0 _DMASOURCE1 .equ h'ffffff90 ; DMA source address 1 _DMADEST1 .equ h'ffffff94 ; DMA destination address 1 _DMACOUNT1 .equ h'ffffff98 ; DMA transfer count 1 _DMACHANNEL1 .equ h'ffffff9c ; DMA channel control 1 _DMAVECTORN0 .equ h'ffffffa0 ; DMA vector number N0 _DMAVECTORE0 .equ h'ffffffa4 ; DMA vector number E0 _DMAVECTORN1 .equ h'ffffffa8 ; DMA vector number N1 _DMAVECTORE1 .equ h'ffffffac ; DMA vector number E1 _DMAOPERATION .equ h'ffffffb0 ; DMA operation _DMAREQACK0 .equ h'ffffffb4 ; DMA request/ack select control 0 _DMAREQACK1 .equ h'ffffffb8 ; DMA request/ack select control 1 _MCRREG .equ h'ffffffec ; バスステートコントローラーレジスタ ;---------------------------------------------------------------* ; SYSREG. ;---------------------------------------------------------------* _sysreg .equ h'00004000+TH ; SYSREG. adapter .equ h'00 ; adapter control register intmask .equ h'01 ; interrupt mask standby .equ h'02 ; スタンバイモード移行用 hcount .equ h'05 ; H Interrupt Counter register vdpfifo .equ h'06 ; Frame Buffer FIFO condition dreqctl .equ h'07 ; DREQ control dreqsource .equ h'08 ; DREQ source address dreqdest .equ h'0c ; DREQ destination address dreqlen .equ h'10 ; DREQ length fifo .equ h'12 ; FIFO vresintclr .equ h'14 ; VRES interrupt clear vintclr .equ h'16 ; V interrupt clear hintclr .equ h'18 ; H interrupt clear cmdintclr .equ h'1a ; CMD interrupt clear pwmintclr .equ h'1c ; PWM interrupt clear ; not used .equ h'1e comm0 .equ h'20 ; Communication port comm2 .equ h'22 ; comm4 .equ h'24 ; comm6 .equ h'26 ; comm8 .equ h'28 ; comm9 .equ h'29 ; comm10 .equ h'2a ; comm12 .equ h'2c ; comm14 .equ h'2e ; timerctl .equ h'30 ; PWM Timer Control pwmctl .equ h'31 ; PWM Control cycle .equ h'32 ; PWM Cycle lchwidth .equ h'34 ; PWM L ch Width rchwidth .equ h'36 ; PWM R ch Width monowidth .equ h'38 ; PWM Monaural Width ;---------------------------------------------------------------* ; VDPREG. ;---------------------------------------------------------------* _vdpreg .equ h'00004100+TH ; VDPREG. tvmode .equ h'00 ; TV mode register bitmapmd .equ h'01 ; Bitmap mode register shift .equ h'03 ; Shift Control register filllength .equ h'05 ; Auto Fill Length register fillstart .equ h'06 ; Auto Fill Start Address register filldata .equ h'08 ; Auto Fill Data register vdpsts .equ h'0a ; VDP Status register framectl .equ h'0b ; Frame Buffer Control register ;---------------------------------------------------------------* _palette .equ h'00004200+TH ; Palette RAM ;---------------------------------------------------------------* ; ROM ;---------------------------------------------------------------* _pwmdata: .equ CS1TH+h'cf750 ; PWM Data ;---------------------------------------------------------------* _framebuffer: .equ CS2TH ; Frame buffer _overwrite: .equ CS2TH+h'20000 ; Over Write Image ;---------------------------------------------------------------* ; Bit assign ;---------------------------------------------------------------* ; adapter CART .equ b'00000001 ; 0: CD /1: Cartridge ADEN .equ b'00000010 ; 0: No MARS /1: MARS FM .equ b'10000000 ; 0: MD /1: SH ; dreqctl RV .equ b'00000001 DMA .equ b'00000010 D68S .equ b'00000100 ; framectl FS .equ b'00000001 ; 0: DRAM 0 /1: DRAM 1 FEN .equ b'00000010 ; 0: アクセス可 /1: アクセス不可 ; vdpsts VBLK .equ b'10000000 HBLK .equ b'01000000 PEN .equ b'00100000 ;**************************************************************** ; end of file ;****************************************************************