2024-09-19 06:40:03 -05:00
|
|
|
drop:
|
|
|
|
ADDI64 r254, r254, -16d
|
|
|
|
ST r31, r254, 0a, 16h
|
|
|
|
CP r32, r2
|
|
|
|
LD r31, r254, 0a, 16h
|
|
|
|
ADDI64 r254, r254, 16d
|
|
|
|
JALA r0, r31, 0a
|
2024-09-03 15:34:17 -05:00
|
|
|
main:
|
2024-10-13 13:01:18 -05:00
|
|
|
ADDI64 r254, r254, -48d
|
|
|
|
ST r31, r254, 8a, 40h
|
2024-09-03 15:34:17 -05:00
|
|
|
LI64 r32, 1d
|
|
|
|
ST r32, r254, 0a, 8h
|
|
|
|
ADDI64 r32, r254, 0d
|
2024-10-13 13:01:18 -05:00
|
|
|
LI64 r33, 1000d
|
|
|
|
CP r34, r32
|
|
|
|
CP r35, r33
|
|
|
|
MULI64 r35, r35, 8d
|
|
|
|
ADD64 r34, r34, r35
|
|
|
|
ADDI64 r32, r34, -16d
|
|
|
|
CP r34, r33
|
|
|
|
ADDI64 r34, r34, -2d
|
|
|
|
CP r35, r34
|
|
|
|
MULI64 r35, r35, 8d
|
|
|
|
SUB64 r32, r32, r35
|
2024-09-03 15:34:17 -05:00
|
|
|
CP r2, r32
|
|
|
|
JAL r31, r0, :modify
|
|
|
|
LD r2, r254, 0a, 8h
|
|
|
|
JAL r31, r0, :drop
|
2024-10-13 13:01:18 -05:00
|
|
|
CP r34, r32
|
|
|
|
LD r35, r34, 0a, 8h
|
|
|
|
ADDI64 r1, r35, -2d
|
|
|
|
LD r31, r254, 8a, 40h
|
|
|
|
ADDI64 r254, r254, 48d
|
2024-09-03 15:34:17 -05:00
|
|
|
JALA r0, r31, 0a
|
|
|
|
modify:
|
2024-09-20 05:03:24 -05:00
|
|
|
ADDI64 r254, r254, -32d
|
|
|
|
ST r31, r254, 0a, 32h
|
2024-09-03 15:34:17 -05:00
|
|
|
CP r32, r2
|
2024-09-20 05:03:24 -05:00
|
|
|
CP r33, r32
|
|
|
|
LI64 r34, 2d
|
|
|
|
ST r34, r33, 0a, 8h
|
|
|
|
LD r31, r254, 0a, 32h
|
|
|
|
ADDI64 r254, r254, 32d
|
2024-09-03 15:34:17 -05:00
|
|
|
JALA r0, r31, 0a
|
2024-10-13 13:01:18 -05:00
|
|
|
code size: 382
|
2024-05-11 09:04:13 -05:00
|
|
|
ret: 0
|
|
|
|
status: Ok(())
|