© 1985 ASCII CORP. / NIPPON GAKKI CO.
Page 23 of 108
© 2010-2015 Eugeny Brychkov
2.2. Status registers #0 to #9
The following status registers are read-only registers for VDP status reporting. Let’s
consider each register.
MSB
7 6 5 4 3 2 1 0
LSB
S#0
F
5S
C
5SN
Status register 0
7 F
Vertical scan interrupt flag.
When S#0 is read, this flag is reset
6 5S
Flag for 5
th
sprite.
Five (or nine in G3…G7 modes) sprites are aligned on
the same horizontal line
5 C
Collision flag.
Two sprites have collided
4…0 5SN
The number of 5
th
(or 9
th
in G3…G7 modes) sprite
MSB
7 6 5 4 3 2 1 0
LSB
S#1
FL
LPS
ID #
FH
Status register 1
7 FL
Light pen.
Is set if light pen detects light. If IE2 is set, interrupt is
generated. Reset when S#1 is read.
Mouse 2.
Is set if second button of mouse was pressed. This flag is not
reset when reading status register S#1
6 LPS
Light pen button.
Is set when light pen button is pressed
Mouse 1.
Is set if first button of mouse was pressed
This flag is not reset when reading status register S#1 in both set-ups
5…1 ID
# The
identification number of the VDP chip
0 FH
Horizontal scan interrupt flag.
Is set if VDP scans line specified in register
R#19. If IE1 is set, interrupt is generated. FH is reset when S#1 is read
MSB
7 6 5 4 3 2 1 0
LSB
S#2
TR VR HR BD 1 1 EO CE Status
register
2
7 TR
Transfer ready flag.
If set to 1, indicates to the CPU that VDP is ready for
next transfer. Value of 0 means that VDP is not ready
6 VR
Vertical retrace flag.
Is set during scanning of VBLANK area of the screen,
i.e. during vertical retrace plus while lower and upper borders of the
screen is drawn
5 HR
Horizontal retrace flag.
Is set during scanning of HBLANK area of the
screen, i.e. when right and left borders of the screen are drawn
4 BD
Color detect flag.
When the search command is executed, this flag is set if
specified color was detected
1 EO
Display field flag.
If set to 0, indicates the first field. If set to 1, indicated
the second field
0 CE
Command execution flag.
If set to 1, indicates that VDP is busy executing
a command