forked from koniifer/ableos
43 lines
788 B
Plaintext
43 lines
788 B
Plaintext
main:
|
|
ADDI64 r254, r254, -24d
|
|
ST r31, r254, 0a, 24h
|
|
LRA r32, r0, :abඞ
|
|
|
|
56789
|
|
CP r2, r32
|
|
JAL r31, r0, :str_len
|
|
CP r32, r1
|
|
LRA r33, r0, :fff
|
|
CP r2, r33
|
|
JAL r31, r0, :str_len
|
|
CP r33, r1
|
|
ADD64 r33, r33, r32
|
|
CP r1, r33
|
|
LD r31, r254, 0a, 24h
|
|
ADDI64 r254, r254, 24d
|
|
JALA r0, r31, 0a
|
|
str_len:
|
|
ADDI64 r254, r254, -48d
|
|
ST r31, r254, 0a, 48h
|
|
CP r32, r2
|
|
LI64 r33, 0d
|
|
2: CP r34, r32
|
|
CP r35, r0
|
|
LD r35, r34, 0a, 1h
|
|
LI64 r36, 0d
|
|
JNE r35, r36, :0
|
|
JMP :1
|
|
0: CP r36, r33
|
|
ADDI64 r36, r36, 1d
|
|
CP r33, r36
|
|
CP r36, r32
|
|
ADDI64 r36, r36, 1d
|
|
CP r32, r36
|
|
JMP :2
|
|
1: CP r1, r33
|
|
LD r31, r254, 0a, 48h
|
|
ADDI64 r254, r254, 48d
|
|
JALA r0, r31, 0a
|
|
code size: 285
|
|
ret: 16
|
|
status: Ok(())
|