		NLIST

;************************************************************************
;*	  SFX CPU register definition	 (include file)	 RP5A22:	*
;************************************************************************
NMI_control	EQU	04200H		;1--**--*
enable_NMI	EQU	10000000B
disable_NMI	EQU	01111111B
NMI_status	EQU	04210H		;1-------
status_NMI	EQU	10000000B
Blank_status	EQU	04212H		;11-----*
blank_H		EQU	01000000B
blank_V		EQU	10000000B
;----------------------------------------------------------------------
Timer_H		EQU	04207H		;9bits
Timer_V		EQU	04208H		;9bits
Timer_trigger	EQU	04200H		;*-11---*
trigger_H	EQU	00010000B
trigger_V	EQU	00100000B
Timer_status	EQU	04211H		;1-------
;----------------------------------------------------------------------
Out_expansive	EQU	04016H		;3bits
In_expansive1	EQU	04016H		;3bits
In_expansive2	EQU	04017H		;5bits
Out_auxilary	EQU	04201H		;8bits
In_auxilary	EQU	04213H		;8bits
;-----------------------------------------------------------------------
Button_scan	EQU	04200H		;*-**---1
scan_button	EQU	00000001B
Button_status	EQU	04212H		;**-----1
status_button	EQU	00000001B
Button		EQU	04218H		;8bits*8
button_C	EQU	0000100000000000B
button_D	EQU	0000010000000000B
button_E	EQU	0000001000000000B
button_F	EQU	0000000100000000B
button_A	EQU	0000000010000000B
button_B	EQU	0000000001000000B
button_select	EQU	0000000000100000B
button_start	EQU	0000000000010000B
button_up	EQU	0000000000001000B
button_down	EQU	0000000000000100B
button_left	EQU	0000000000000010B
button_right	EQU	0000000000000001B
;----------------------------------------------------------------------
Multiplicand	EQU	04202H		;unsigned 8bits
Multiplier	EQU	04203H		;unsigned 8bits
Product		EQU	04216H		;unsigned 16bits
Multiply	EQU	Product
Dividend	EQU	04204H		;unsigned 16bits
Divisor		EQU	04206H		;unsigned 8bits
Quotient	EQU	04214H		;unsigned 16bits
Divide		EQU	Quotient
Residue		EQU	04216H		;unsigned 16bits
Rest		EQU	Residue
;----------------------------------------------------------------------
DMA_burst	EQU	0420BH
DMA_syncro	EQU	0420CH
start_0		EQU	00000001B
start_1		EQU	00000010B
start_2		EQU	00000100B
start_3		EQU	00001000B
start_4		EQU	00010000B
start_5		EQU	00100000B
start_6		EQU	01000000B
start_7		EQU	10000000B
DMA_0		EQU	04300H
DMA_1		EQU	04310H
DMA_2		EQU	04320H
DMA_3		EQU	04330H
DMA_4		EQU	04340H
DMA_5		EQU	04350H
DMA_6		EQU	04360H
DMA_7		EQU	04370H
dma_control	EQU	0
reverse		EQU	10000000B
indirect	EQU	01000000B
negative	EQU	00010000B
fix		EQU	00001000B
;byte		EQU	00000000B
;word		EQU	00000001B
double		EQU	00000100B
duplicate	EQU	00000010B
dma_register	EQU	1	  ;8bits 021XXH
dma_address	EQU	2	  ;24bits
dma_count	EQU	5	  ;16bits
dma_table	EQU	8
dma_line	EQU	10

		LIST
