2024-10-24 06:58:58 -05:00
|
|
|
main:
|
2024-10-24 07:08:17 -05:00
|
|
|
ADDI64 r254, r254, -24d
|
|
|
|
ST r31, r254, 8a, 16h
|
2024-10-24 06:58:58 -05:00
|
|
|
LRA r1, r0, :white
|
2024-10-24 07:08:17 -05:00
|
|
|
LD r32, r1, 0a, 4h
|
|
|
|
ADDI64 r5, r254, 4d
|
|
|
|
CP r2, r32
|
2024-10-24 06:58:58 -05:00
|
|
|
JAL r31, r0, :u32_to_color
|
2024-10-24 07:08:17 -05:00
|
|
|
ST r1, r254, 4a, 4h
|
|
|
|
CP r2, r32
|
|
|
|
JAL r31, r0, :u32_to_u32
|
|
|
|
ADDI64 r12, r254, 0d
|
|
|
|
LD r11, r254, 4a, 1h
|
2024-10-24 06:58:58 -05:00
|
|
|
ST r1, r254, 0a, 4h
|
2024-10-24 07:08:17 -05:00
|
|
|
LD r4, r254, 1a, 1h
|
|
|
|
ADD8 r7, r4, r11
|
|
|
|
ANDI r1, r7, 255d
|
|
|
|
LD r31, r254, 8a, 16h
|
|
|
|
ADDI64 r254, r254, 24d
|
2024-10-24 06:58:58 -05:00
|
|
|
JALA r0, r31, 0a
|
|
|
|
u32_to_color:
|
|
|
|
ADDI64 r254, r254, -4d
|
|
|
|
ADDI64 r3, r254, 0d
|
|
|
|
ST r2, r254, 0a, 4h
|
|
|
|
LD r1, r3, 0a, 4h
|
|
|
|
ADDI64 r254, r254, 4d
|
|
|
|
JALA r0, r31, 0a
|
2024-10-24 07:08:17 -05:00
|
|
|
u32_to_u32:
|
|
|
|
CP r1, r2
|
|
|
|
JALA r0, r31, 0a
|
|
|
|
code size: 284
|
|
|
|
ret: 254
|
2024-10-24 06:58:58 -05:00
|
|
|
status: Ok(())
|