;************************************************************************
;*	SFX CPU register definition		INCLUDE/RP5A22	   *
;************************************************************************
;----------------------------------------------------------------------
NMI_control		EQU	4200H		;1--**--* 
enable_NMI		EQU	010000000B 
disable_NMI		EQU	001111111B 
NMI_status		EQU	4210H		;1------- 
status_NMI		EQU	010000000B 
Blank_status		EQU	4212H		;11-----* 
blank_H		EQU	001000000B 
blank_V		EQU	010000000B 
;---------------------------------------------------------------------- 
Timer_H		EQU	4207H		;9bits
Timer_V		EQU	4209H		;9bits
Timer_trigger	EQU	4200H		;*-11---* 
trigger_H		EQU	000010000B 
trigger_V		EQU	000100000B 
IRQ_status		EQU	4211H		;1------- 
Timer_status		EQU	4211H		;1------- 
;---------------------------------------------------------------------- 
Out_expansive	EQU	4016H		;3bits
In_expansive1	EQU	4016H		;3bits
In_expansive2	EQU	4017H		;5bits
Out_auxilary		EQU	4201H		;8bits
In_auxilary		EQU	4213H		;8bits
;-----------------------------------------------------------------------
Button_scan		EQU	4200H		;*-**---1 
scan_button		EQU	000000001B 
Button_status	EQU	4212H		;**-----1 
status_button	EQU	000000001B 
Button		EQU	4218H		;8bits*8
;- - - - - - - - - - - - - - - - - - - - - - 
button_B		EQU	8000h
button_Y		EQU	4000h
button_select	EQU	2000h
button_start		EQU	1000h
button_up		EQU	0800h
button_down		EQU	0400h
button_left		EQU	0200h
button_right		EQU	0100h
button_A		EQU	0080h
button_X		EQU	0040h
button_L		EQU	0020h
button_R		EQU	0010h
;---------------------------------------------------------------------- 
M1		EQU	4202H
Multiplicand		EQU	4202H		;unsigned 8bits 
M2		EQU	4203H
Multiplier		EQU	4203H		;unsigned 8bits 
M_ANS		EQU	4216H
Product		EQU	4216H		;unsigned 16bits
;---------------------------------------------------------------------- 
D1		EQU	4204H
Dividend		EQU	4204H		;unsigned 16bits
D2		EQU	4206H
Divisor		EQU	4206H		;unsigned 8bits 
D_ANS		EQU	4214H
Quotient		EQU	4214H		;unsigned 16bits
D_RES		EQU	4216H	
Residue		EQU	4216H		;unsigned 16bits
;---------------------------------------------------------------------- 
DMA_burst		EQU	420BH
DMA_synchronic	EQU	420CH
DMA_syncro		EQU	DMA_synchronic
start_0		EQU	000000001B 
start_1		EQU	000000010B 
start_2		EQU	000000100B 
start_3		EQU	000001000B 
start_4		EQU	000010000B 
start_5		EQU	000100000B 
start_6		EQU	001000000B 
start_7		EQU	010000000B 
DMA_0		EQU	4300H
DMA_1		EQU	4310H
DMA_2		EQU	4320H
DMA_3		EQU	4330H
DMA_4		EQU	4340H
DMA_5		EQU	4350H
DMA_6		EQU	4360H
DMA_7		EQU	4370H
DMA_high		EQU	43H
dma_write		EQU	000000000B 
dma_read		EQU	010000000B 
dma_direct		EQU	000000000B 
dma_indirect		EQU	001000000B 
dma_increase		EQU	000000000B 
dma_decrease		EQU	000010000B 
dma_stay		EQU	000001000B 
dma_offset_0		EQU	000000000B 
dma_offset_01	EQU	000000001B 
dma_offset_00	EQU	000000010B 
dma_offset_0011	EQU	000000011B 
dma_offset_0123	EQU	000000100B 
DMA_control		EQU	0
DMA_register		EQU	1		;8bits 021XXH 
DMA_address		EQU	2		;24bits 
DMA_count		EQU	5		;16bits 
DMA_databank		EQU	7		;24bits 
DMA_table		EQU	8
DMA_line		EQU	10 
;---------------------------------------------------------------------- 
