2024-11-08 13:40:18 -06:00
|
|
|
main:
|
2024-11-17 03:06:10 -06:00
|
|
|
ADDI64 r254, r254, -30d
|
|
|
|
ST r31, r254, 6a, 24h
|
2024-11-13 03:28:16 -06:00
|
|
|
ADDI64 r32, r254, 0d
|
2024-11-16 03:16:35 -06:00
|
|
|
2: JAL r31, r0, :return_fn
|
2024-11-14 13:25:52 -06:00
|
|
|
ST r1, r32, 0a, 6h
|
2024-11-13 03:28:16 -06:00
|
|
|
LD r33, r254, 0a, 1h
|
|
|
|
ANDI r33, r33, 255d
|
|
|
|
JEQ r33, r0, :0
|
2024-11-15 15:35:03 -06:00
|
|
|
LI64 r32, 1d
|
|
|
|
CP r1, r32
|
2024-11-08 13:40:18 -06:00
|
|
|
JMP :1
|
|
|
|
0: JMP :2
|
2024-11-17 03:06:10 -06:00
|
|
|
1: LD r31, r254, 6a, 24h
|
|
|
|
ADDI64 r254, r254, 30d
|
2024-11-08 13:40:18 -06:00
|
|
|
JALA r0, r31, 0a
|
|
|
|
return_fn:
|
2024-11-17 03:06:10 -06:00
|
|
|
ADDI64 r254, r254, -6d
|
2024-11-15 15:35:03 -06:00
|
|
|
LI8 r13, 1b
|
|
|
|
ST r13, r254, 0a, 1h
|
2024-11-13 03:28:16 -06:00
|
|
|
ST r0, r254, 1a, 1h
|
|
|
|
ST r0, r254, 2a, 1h
|
|
|
|
ST r0, r254, 3a, 1h
|
|
|
|
ST r0, r254, 4a, 1h
|
|
|
|
ST r0, r254, 5a, 1h
|
2024-12-15 10:57:22 -06:00
|
|
|
LD r1, r254, 0a, 6h
|
2024-11-17 03:06:10 -06:00
|
|
|
ADDI64 r254, r254, 6d
|
2024-11-08 13:40:18 -06:00
|
|
|
JALA r0, r31, 0a
|
2024-12-15 10:57:22 -06:00
|
|
|
code size: 277
|
2024-11-08 13:40:18 -06:00
|
|
|
ret: 1
|
|
|
|
status: Ok(())
|