int (*PicoScanEnd) (unsigned int num) = NULL;\r
\r
static unsigned char DefHighCol[8+320+8];\r
-static unsigned char *HighColBase = DefHighCol;\r
+unsigned char *HighColBase = DefHighCol;\r
static int HighColIncrement;\r
\r
static unsigned int DefOutBuff[320*2/2];\r
.macro TileEndCode
xori $t8, $t9, 0xff
beqz $t8, tile11111111 # common case
- lui $v1, %hi(HighCol)
+ lui $v1, %hi(HighColBase)
lui $t8, %hi(TileTable)
ins $t8, $t9, 2, 8
lw $t8, %lo(TileTable)($t8)
- lw $v1, %lo(HighCol)($v1)
+ lw $v1, %lo(HighColBase)($v1)
jr $t8
addu $a0, $v1
.endm
SingleColor:
- lui $t9, %hi(HighCol)
- lw $t9, %lo(HighCol)($t9)
+ lui $t9, %hi(HighColBase)
+ lw $t9, %lo(HighColBase)($t9)
andi $t0, $a1, 0xf
or $t0, $t0, $a2
addu $a0, $t9
or $v0, $0, 1 # empty tile
tile11111111:
- lw $v1, %lo(HighCol)($v1)
+ lw $v1, %lo(HighColBase)($v1)
or $t0, $t0, $a2
addu $a0, $v1
sb $t0, 0($a0)