2024-10-24 06:58:58 -05:00
|
|
|
main:
|
2024-11-05 07:52:30 -06:00
|
|
|
ADDI64 r254, r254, -36d
|
|
|
|
ST r31, r254, 4a, 32h
|
|
|
|
LRA r32, r0, :white
|
|
|
|
ADDI64 r33, r254, 0d
|
2024-11-15 15:35:03 -06:00
|
|
|
LD r32, r32, 0a, 4h
|
|
|
|
CP r2, r32
|
|
|
|
CP r1, r33
|
2024-10-24 06:58:58 -05:00
|
|
|
JAL r31, r0, :u32_to_color
|
2024-11-14 13:25:52 -06:00
|
|
|
ST r1, r33, 0a, 4h
|
2024-11-15 15:35:03 -06:00
|
|
|
LD r32, r254, 0a, 1h
|
|
|
|
ANDI r32, r32, 255d
|
|
|
|
CP r1, r32
|
2024-11-05 07:52:30 -06:00
|
|
|
LD r31, r254, 4a, 32h
|
|
|
|
ADDI64 r254, r254, 36d
|
2024-10-24 06:58:58 -05:00
|
|
|
JALA r0, r31, 0a
|
|
|
|
u32_to_color:
|
2024-11-15 15:35:03 -06:00
|
|
|
ADDI64 r254, r254, -36d
|
|
|
|
ST r31, r254, 4a, 32h
|
|
|
|
CP r32, r2
|
|
|
|
CP r2, r32
|
2024-10-24 08:39:38 -05:00
|
|
|
JAL r31, r0, :u32_to_u32
|
2024-11-15 15:35:03 -06:00
|
|
|
CP r32, r1
|
|
|
|
ADDI64 r33, r254, 0d
|
|
|
|
ST r32, r254, 0a, 4h
|
|
|
|
LD r1, r33, 0a, 4h
|
|
|
|
LD r31, r254, 4a, 32h
|
|
|
|
ADDI64 r254, r254, 36d
|
2024-10-24 06:58:58 -05:00
|
|
|
JALA r0, r31, 0a
|
2024-10-24 07:08:17 -05:00
|
|
|
u32_to_u32:
|
2024-11-15 15:35:03 -06:00
|
|
|
ADDI64 r254, r254, -8d
|
|
|
|
ST r32, r254, 0a, 8h
|
|
|
|
CP r13, r2
|
|
|
|
CP r1, r13
|
|
|
|
LD r32, r254, 0a, 8h
|
|
|
|
ADDI64 r254, r254, 8d
|
2024-10-24 07:08:17 -05:00
|
|
|
JALA r0, r31, 0a
|
2024-11-15 15:35:03 -06:00
|
|
|
code size: 332
|
2024-10-24 08:39:38 -05:00
|
|
|
ret: 255
|
2024-10-24 06:58:58 -05:00
|
|
|
status: Ok(())
|