#if 0
TVMD   = 0x8001
EXTEN  = 0x0000
TVSTAT = 0x0002
VRSIZE = 0x0000
HCNT   = 0x0000
VCNT   = 0x0000
RAMCTL = 0x1000
CYCA0L = 0x1F56
CYCA0U = 0xFFFF
CYCA1L = 0xFFFF
CYCA1U = 0xFFFF
CYCB0L = 0xF2FF
CYCB0U = 0x4EFF
CYCB1L = 0xFFFF
CYCB1U = 0xFFFF
BGON   = 0x0207
MZCTL  = 0x0000
SFSEL  = 0x0000
SFCODE = 0x0000
CHCTLA = 0x0C02
CHCTLB = 0x0000
BMPNA  = 0x0000
BMPNB  = 0x0000
PNCN0  = 0x3FFF
PNCN1  = 0x3FFF
PNCN2  = 0x3FFF
PNCN3  = 0x0000
PNCR   = 0x0000
PLSZ   = 0x0000
MPOFN  = 0x0002
MPOFR  = 0x0000
MPABN0 = 0x1F3B
MPCDN0 = 0x1F13
MPABN1 = 0x0008
MPCDN1 = 0x0032
MPABN2 = 0x0018
MPCDN2 = 0x0032
MPABN3 = 0x0000
MPCDN3 = 0x0000
MPABRA = 0x0000
MPCDRA = 0x0000
MPEFRA = 0x0000
MPGHRA = 0x0000
MPIJRA = 0x0000
MPKLRA = 0x0000
MPMNRA = 0x0000
MPOPRA = 0x0000
MPABRB = 0x0000
MPCDRB = 0x0000
MPEFRB = 0x0000
MPGHRB = 0x0000
MPIJRB = 0x0000
MPKLRB = 0x0000
MPMNRB = 0x0000
MPOPRB = 0x0000
SCXIN0 = 0x0000
SCXDN0 = 0x0000
SCYIN0 = 0x0000
SCYDN0 = 0x0000
ZMXN0  = 0x00010000
ZMYN0  = 0x00010000
SCXIN1 = 0x0000
SCXDN1 = 0x0000
SCYIN1 = 0x0010
SCYDN1 = 0x0000
ZMXN1  = 0x00010000
ZMYN1  = 0x00010000
SCXN2  = 0x0000
SCYN2  = 0x0010
SCXN3  = 0x0000
SCYN3  = 0x0000
ZMCTL  = 0x0000
SCRCTL = 0x0000
VCSTA  = 0x00000000
LSTA0  = 0x00000000
LSTA1  = 0x00000000
LCTA   = 0x00000000
BKTAU  = 0x0000
BKTAL  = 0x0000
RPMD   = 0x0000
RPRCTL = 0x0000
KTCTL  = 0x0000
KTAOF  = 0x0000
OVPNRA = 0x0000
OVPNRB = 0x0000
RPTA   = 0x00000000
WPSX0  = 0x0000
WPSY0  = 0x0000
WPEX0  = 0x0000
WPEY0  = 0x0000
WPSX1  = 0x0000
WPSY1  = 0x0000
WPEX1  = 0x0000
WPEY1  = 0x0000
WCTLA  = 0x0000
WCTLB  = 0x0000
WCTLC  = 0x0000
WCTLD  = 0x0000
LWTA0  = 0x00000000
LWTA1  = 0x00000000
SPCTL  = 0x0000
SDCTL  = 0x0000
CRAOFA = 0x0654
CRAOFB = 0x0010
LNCLEN = 0x0000
SFPRMD = 0x0000
CCCTL  = 0x0000
SFCCMD = 0x0000
PRISA  = 0x0005
PRISB  = 0x0000
PRISC  = 0x0000
PRISD  = 0x0000
PRINA  = 0x0407
PRINB  = 0x0005
PRIR   = 0x0000
CCRSA  = 0x0000
CCRSB  = 0x0000
CCRSC  = 0x0000
CCRSD  = 0x0000
CCRNA  = 0x0000
CCRNB  = 0x0000
CCRR   = 0x0000
CCRLB  = 0x0000
CLOFEN = 0x0000
CLOFSL = 0x0000
COAR   = 0x0000
COAG   = 0x0000
COAB   = 0x0000
COBR   = 0x0000
COBG   = 0x0000
COBB   = 0x0000
#endif

// VDP2 register set STT
(*(volatile unsigned short *)(0x25F80000)) = 0x8001; // TVMD
(*(volatile unsigned short *)(0x25F80004)) = 0x0002; // TVSTAT
(*(volatile unsigned short *)(0x25F8000E)) = 0x1000; // RAMCTL
(*(volatile unsigned short *)(0x25F80010)) = 0x1F56; // CYCA0L
(*(volatile unsigned short *)(0x25F80018)) = 0xF2FF; // CYCB0L
(*(volatile unsigned short *)(0x25F8001A)) = 0x4EFF; // CYCB0U
(*(volatile unsigned short *)(0x25F80020)) = 0x0207; // BGON
(*(volatile unsigned short *)(0x25F80028)) = 0x0C02; // CHCTLA
(*(volatile unsigned short *)(0x25F80030)) = 0x3FFF; // PNCN0
(*(volatile unsigned short *)(0x25F80032)) = 0x3FFF; // PNCN1
(*(volatile unsigned short *)(0x25F80034)) = 0x3FFF; // PNCN2
(*(volatile unsigned short *)(0x25F8003C)) = 0x0002; // MPOFN
(*(volatile unsigned short *)(0x25F80040)) = 0x1F3B; // MPABN0
(*(volatile unsigned short *)(0x25F80042)) = 0x1F13; // MPCDN0
(*(volatile unsigned short *)(0x25F80044)) = 0x0008; // MPABN1
(*(volatile unsigned short *)(0x25F80046)) = 0x0032; // MPCDN1
(*(volatile unsigned short *)(0x25F80048)) = 0x0018; // MPABN2
(*(volatile unsigned short *)(0x25F8004A)) = 0x0032; // MPCDN2
(*(volatile unsigned short *)(0x25F80084)) = 0x0010; // SCYIN1
(*(volatile unsigned short *)(0x25F80092)) = 0x0010; // SCYN2
(*(volatile unsigned short *)(0x25F800AE)) = 0x0000; // BKTAL
(*(volatile unsigned short *)(0x25F800E0)) = 0x0000; // SPCTL
(*(volatile unsigned short *)(0x25F800E4)) = 0x0654; // CRAOFA
(*(volatile unsigned short *)(0x25F800E6)) = 0x0010; // CRAOFB
(*(volatile unsigned short *)(0x25F800F0)) = 0x0005; // PRISA
(*(volatile unsigned short *)(0x25F800F8)) = 0x0407; // PRINA
(*(volatile unsigned short *)(0x25F800FA)) = 0x0005; // PRINB
(*(volatile unsigned short *)(0x25F80110)) = 0x0000; // CLOFEN
(*(volatile unsigned short *)(0x25F80114)) = 0x0000; // COAR
(*(volatile unsigned short *)(0x25F80116)) = 0x0000; // COAG
(*(volatile unsigned short *)(0x25F80118)) = 0x0000; // COAB
// VDP2 register set END

// VDP2 dump information:
#define VDP2_D1_FIL "D0000384.BIN"
#define VDP2_D1_STT (0x05E00000)
#define VDP2_D1_LEN (0x00100000)
#define VDP2_D2_FIL "D1000384.BIN"
#define VDP2_D2_STT (0x05F00000)
#define VDP2_D2_LEN (0x00001000)

