forked from AbleOS/holey-bytes
37 lines
747 B
Plaintext
37 lines
747 B
Plaintext
main:
|
|
ADDI64 r254, r254, -40d
|
|
ST r31, r254, 8a, 32h
|
|
LI64 r32, 1d
|
|
ST r32, r254, 0a, 8h
|
|
ADDI64 r32, r254, 0d
|
|
CP r2, r32
|
|
JAL r31, r0, :modify
|
|
LD r2, r254, 0a, 8h
|
|
JAL r31, r0, :drop
|
|
LI64 r33, 0d
|
|
LD r34, r32, 0a, 8h
|
|
ADDI64 r34, r34, -2d
|
|
CP r1, r34
|
|
LD r31, r254, 8a, 32h
|
|
ADDI64 r254, r254, 40d
|
|
JALA r0, r31, 0a
|
|
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
|
|
modify:
|
|
ADDI64 r254, r254, -24d
|
|
ST r31, r254, 0a, 24h
|
|
CP r32, r2
|
|
LI64 r33, 2d
|
|
ST r33, r32, 0a, 8h
|
|
LD r31, r254, 0a, 24h
|
|
ADDI64 r254, r254, 24d
|
|
JALA r0, r31, 0a
|
|
code size: 315
|
|
ret: 0
|
|
status: Ok(())
|