30 lines
637 B
Plaintext
30 lines
637 B
Plaintext
main:
|
|
ADDI64 r254, r254, -36d
|
|
ST r31, r254, 4a, 32h
|
|
LRA r32, r0, :white
|
|
ADDI64 r33, r254, 0d
|
|
LD r2, r32, 0a, 4h
|
|
JAL r31, r0, :u32_to_color
|
|
ST r1, r33, 0a, 4h
|
|
LD r34, r254, 0a, 1h
|
|
ANDI r1, r34, 255d
|
|
LD r31, r254, 4a, 32h
|
|
ADDI64 r254, r254, 36d
|
|
JALA r0, r31, 0a
|
|
u32_to_color:
|
|
ADDI64 r254, r254, -20d
|
|
ST r31, r254, 4a, 16h
|
|
JAL r31, r0, :u32_to_u32
|
|
ADDI64 r32, r254, 0d
|
|
ST r1, r254, 0a, 4h
|
|
LD r1, r32, 0a, 4h
|
|
LD r31, r254, 4a, 16h
|
|
ADDI64 r254, r254, 20d
|
|
JALA r0, r31, 0a
|
|
u32_to_u32:
|
|
CP r1, r2
|
|
JALA r0, r31, 0a
|
|
code size: 263
|
|
ret: 255
|
|
status: Ok(())
|