! gx.h -- symbolic constants for the gx device
!

.set    GX_BUFFER,              0x100000        !start address for gx registers

.set    GX_OPEN,                0
.set    GX_CLOSE,               1
.set    GX_COLOR,               2
.set    GX_OP,                  3
.set    GX_LINE,                4
.set    GX_FILL,                5
.set    GX_BLIT,                6
        
.set    GX_STATUS,              0
.set    GX_CMD,                 4
.set    GX_ARG,                 8
        
.set    GX_FILL_X,              8
.set    GX_FILL_Y,              12
.set    GX_FILL_W,              16
.set    GX_FILL_H,              20
        
.set    GX_LINE_X1,             8
.set    GX_LINE_Y1,             12
.set    GX_LINE_X2,             16
.set    GX_LINE_Y2,             20
        
.set    GX_BLIT_X1,             8       
.set    GX_BLIT_Y1,             12
.set    GX_BLIT_W,              16
.set    GX_BLIT_H,              20
.set    GX_BLIT_X2,             24
.set    GX_BLIT_Y2,             28

.set    GX_CLEAR,               0x0
.set    GX_AND,                 0x1
.set    GX_AND_REVERSE,         0x2
.set    GX_COPY,                0x3
.set    GX_AND_INVERTED,        0x4
.set    GX_NOOP,                0x5
.set    GX_XOR,                 0x6
.set    GX_OR,                  0x7
.set    GX_NOR,                 0x8
.set    GX_EQUIV,               0x9
.set    GX_INVERT,              0xa
.set    GX_OR_REVERSE,          0xb
.set    GX_COPY_INVERTED,       0xc
.set    GX_OR_INVERTED,         0xd
.set    GX_NAND,                0xe