;************************************************************************
;*	SFX PPU register definition		INCLUDE/RP5C77	   *
;************************************************************************
;---------------------------------------------------------------------- 
PPU_control		EQU	2100H
blanking		EQU	010000000B
brightness		EQU	1
PPU_option		EQU	2133H
external_sync	EQU	010000000B
external_input	EQU	001000000B
h512		EQU	000001000B
v239		EQU	000000100B
sprite_vertical	EQU	000000010B
interlace		EQU	000000001B
;---------------------------------------------------------------------- 
Through_screen	EQU	212CH
Through_window	EQU	212EH
;---------------------------------------------------------------------- 
Window_control	EQU	2123H		;6digits
Window_range		EQU	2126H		;4bytes 
Window_pile		EQU	212AH		;6*2bits
Window_logic		EQU	Window_pile
Window_switch	EQU	2132H		;****..-- 
;---------------------------------------------------------------------- 
Color_address	EQU	2121H		;8bits
Color_write		EQU	2122H		;11bits duplicate 
Color_read		EQU	213BH		;11bits duplicate 
Color_control	EQU	2130H		;----..** 
direct_color		EQU	000000001B 
brend_color		EQU	000000010B 
Color_brend		EQU	2131H		;SH****** 
dark_color		EQU	000000000B 
light_color		EQU	010000000B 
half_color		EQU	001000000B 
Color_bias		EQU	2132H		;BGR***** 
blue_bias		EQU	010000000B 
green_bias		EQU	001000000B 
red_bias		EQU	000100000B 
;---------------------------------------------------------------------- 
Sprite_size		EQU	2101H		;***----- 
sprite_0816		EQU	000000000B 
sprite_0832		EQU	000100000B 
sprite_0864		EQU	001000000B 
sprite_1632		EQU	001100000B 
sprite_1664		EQU	010000000B 
sprite_3264		EQU	010100000B 
Sprite_segment	EQU	2101H		;---22211 
segment_1		EQU	01 
segment_2		EQU	8 
Sprite_address	EQU	2102H		;9bits
sprite_rotation 	EQU	010000000B 
Sprite_write		EQU	2104H		;8bits or 16bits duplicate
Sprite_read		EQU	2138H		;8bits or 16bits duplicate
sprite_color		EQU	2 
sprite_priority 	EQU	16
sprite_mirror	EQU	001000000B 
sprite_over		EQU	010000000B 
;---------------------------------------------------------------------- 
Screen_size		EQU	2105H		;SSSS.--- 
Screen_mode		EQU	2105H		;----.MMM 
Screen_mosaic	EQU	2106H
mosaic_size		EQU	16
mosaic_control	EQU	1 
Mode7_flip		EQU	211AH		;***
screen_mirror	EQU	000000001B 
screen_over		EQU	000000010B 
screen_cycle		EQU	010000000B 
Screen_bank		EQU	02107H		;4bytes 
screen_single	EQU	0 
screen_horizon	EQU	1 
screen_vertex	EQU	2 
screen_full		EQU	3 
Character_bank	EQU	0210BH		;4digits
;---------------------------------------------------------------------- 
Screen_step		EQU	02115H
step_1		EQU	000000000B 
step_32		EQU	000000001B 
step_64		EQU	000000010B 
step_128		EQU	000000011B 
step_28		EQU	000000100B 
step_48		EQU	000001000B 
step_88		EQU	000001100B 
step_low		EQU	000000000B 
step_high		EQU	010000000B 
Screen_address	EQU	2116H		;16bits 
Screen_write		EQU	2118H		;16bits 
Screen_read		EQU	2139H		;16bits 
;---------------------------------------------------------------------- 
Scroll_BG1H		EQU	210DH
Scroll_BG1V		EQU	210EH
Scroll_BG2H		EQU	210FH
Scroll_BG2V		EQU	2110H
Scroll_BG3H		EQU	2111H
Scroll_BG3V		EQU	2112H
Scroll_BG4H		EQU	2113H
Scroll_BG4V		EQU	2114H
Scroll_		EQU	210DH
Scroll_H		EQU	210DH		;4plane step2 10bits duplicate
Scroll_V		EQU	210EH		;4plane step2 10bits duplicate
Rotation_A		EQU	211BH
Rotation_B		EQU	211CH
Rotation_C		EQU	211DH
Rotation_D		EQU	211EH
Rotation_X		EQU	211FH
Rotation_Y		EQU	2120H
Rotation_matrix 	EQU	211BH		;4byte
Rotation_center 	EQU	211FH		;2byte
;---------------------------------------------------------------------- 
Location_strobe 	EQU	2137H		;read 
Location_H		EQU	213CH		;8bits
Location_V		EQU	213DH		;8bits
;---------------------------------------------------------------------- 
multiply		EQU	2134H		;24bits
;---------------------------------------------------------------------- 
PPU_test		EQU	2135H		;2bytes write 1byte read
;;PPU_status		EQU	213EH
;;field_select	EQU	010000000B 
;;external_strobe 	EQU	001000000B 
;;sprite_out		EQU	000000011B 
PPU_sense		EQU	213FH
;;sense_PAL		EQU	010000000B 
;;sense_other	EQU	001111000B 
;;sense_test		EQU	000000010B 
;;sense_multi	EQU	000000001B 
;---------------------------------------------------------------------- 
Sound0		EQU	2140H
Sound1		EQU	2141H
Sound2		EQU	2142H
Sound3		EQU	2143H
;---------------------------------------------------------------------- 
