HARDWARE ManualVDP1 User's ManualChapter 7 Commands
BackForward
VDP1 User's Manual / Chapter 7 Commands

■ 7.9 Line drawing command

The line drawing command draws a rectangle in the framebuffer. The inside of the rectangle is not filled.
This is a line drawing command when the end bit is 0B and the command selection bit is 0110B.
The contents of the command table are as follows:

 bit
 15
 14
 13
 12
 11
 Ten
 9
 8
 7
 6
 5
 4
 3
 2
 1
 0
CMDCTRL
+00
0 JP 0 0 0 0 0 0 0 0 0 1 1 0
CMDLINK
+02
LINK designation / 8H 0 0
CMDPMOD
+04
MO 0 0 0 Pc Cl Cm Me 1 1 0 0 0 Color calculation
CMDCOLR
+06
Non-texture color
+08
+ 0A
CMDXA
+ 0C
Sign extension Vertex (A), X coordinate (XA)
CMDYA
+ 0E
Sign extension Vertex (A), Y coordinate (YA)
CMDXB
+10
Sign extension Vertex (B), X coordinate (XB)
CMDYB
+12
Sign extension Vertex (B), Y coordinate (YB)
+14
+16
+18
+ 1A
CMDGRDA
+ 1C
Gouraud shading table / 8H
【note】
Is ignored (don't care)

The line drawing command is defined as follows.


BackForward
HARDWARE ManualVDP1 User's ManualChapter 7 Commands
Copyright SEGA ENTERPRISES, LTD., 1997