17 sw zero, REG_GP1(a0) # GP1 0: reset
19 li t0, 0x03000000 # GP1 3: display enable
21 li t0, 0x08000009 # GP1 8: display mode (320x240 15bpp PAL)
23 li t0, 0x06c60260 # GP1 6: horiz. display range (608-3168)
25 li t0, 0x07049c1f # GP1 7: vert. display range (31-295)
28 li t0, 0xe1000600 # GP0 e1: draw mode (draw allowed & dither enable)
30 li t0, 0xe3000000 # draw area top left (0, 0)
32 li t0, 0xe4041d3f # draw area bottom right (319,263)
34 li t0, 0xe5000000 # draw offset (0, 0)
38 li t0, 0x02302010 # cmd 2: fill area (BBGGRR)
40 sw zero, REG_GP0(a0) # ... top left 0,0 (YYYYXXXX)
41 li t0, 0x00ef013f # ... size 319x239 (HHHHWWWW)
44 # draw gouraud triangle
45 li t0, 0x30ff0000 # cmd 30: draw gouraud triangle (+BBGGRR vert0)
47 li t0, 160 | (16 << 16) # ... vertex(160, 16)
50 li t0, 0x0000ff00 # ... color vert1
52 li t0, 32 | (180 << 16) # ... vertex(32, 180)
55 li t0, 0x000000ff # ... color vert2
57 li t0, 280 | (220 << 16) # ... vertex(220, 280)
66 # vi:ts=8 sts=8 sw=8 ft=mips: