65 lines
1.3 KiB
Plaintext
65 lines
1.3 KiB
Plaintext
do_stuff:
|
|
CP r1, r2
|
|
JALA r0, r31, 0a
|
|
main:
|
|
ADDI64 r254, r254, -104d
|
|
ST r31, r254, 32a, 72h
|
|
ADDI64 r32, r254, 16d
|
|
JAL r31, r0, :optionala
|
|
ST r1, r254, 16a, 16h
|
|
LI8 r33, 0b
|
|
LD r34, r254, 16a, 1h
|
|
ANDI r34, r34, 255d
|
|
ANDI r33, r33, 255d
|
|
JNE r34, r33, :0
|
|
LI64 r1, 10d
|
|
JMP :1
|
|
0: LI64 r35, 0d
|
|
ST r35, r254, 24a, 8h
|
|
LD r2, r254, 24a, 8h
|
|
JAL r31, r0, :do_stuff
|
|
CP r36, r1
|
|
ADDI64 r37, r254, 0d
|
|
JAL r31, r0, :optional
|
|
ST r1, r254, 0a, 16h
|
|
LD r38, r254, 0a, 1h
|
|
ANDI r38, r38, 255d
|
|
ANDI r33, r33, 255d
|
|
JNE r38, r33, :2
|
|
LI64 r1, 20d
|
|
JMP :1
|
|
2: LI64 r39, 100d
|
|
ST r39, r254, 8a, 8h
|
|
LD r2, r254, 8a, 8h
|
|
JAL r31, r0, :do_stuff
|
|
ADD64 r1, r1, r36
|
|
1: LD r31, r254, 32a, 72h
|
|
ADDI64 r254, r254, 104d
|
|
JALA r0, r31, 0a
|
|
optional:
|
|
ADDI64 r254, r254, -16d
|
|
LI8 r4, 1b
|
|
ADDI64 r3, r254, 0d
|
|
ST r4, r254, 0a, 1h
|
|
LI64 r4, 10d
|
|
ST r4, r254, 8a, 8h
|
|
LD r1, r3, 0a, 16h
|
|
ADDI64 r254, r254, 16d
|
|
JALA r0, r31, 0a
|
|
optionala:
|
|
ADDI64 r254, r254, -24d
|
|
ADDI64 r1, r254, 0d
|
|
LI64 r3, 1d
|
|
LI8 r7, 1b
|
|
ADDI64 r6, r254, 8d
|
|
ST r3, r254, 0a, 8h
|
|
ST r7, r254, 8a, 1h
|
|
ADDI64 r11, r6, 8d
|
|
BMC r1, r11, 8h
|
|
LD r1, r6, 0a, 16h
|
|
ADDI64 r254, r254, 24d
|
|
JALA r0, r31, 0a
|
|
code size: 568
|
|
ret: 100
|
|
status: Ok(())
|