2024-10-20 05:22:28 -05:00
|
|
|
main:
|
2024-11-17 03:06:10 -06:00
|
|
|
ADDI64 r254, r254, -24d
|
|
|
|
ST r31, r254, 0a, 24h
|
2024-11-15 15:35:03 -06:00
|
|
|
LRA r32, r0, :"abඞ\n\r\t56789\0"
|
|
|
|
CP r2, r32
|
2024-10-20 05:22:28 -05:00
|
|
|
JAL r31, r0, :str_len
|
|
|
|
CP r32, r1
|
2024-11-15 15:35:03 -06:00
|
|
|
LRA r33, r0, :"fff\0"
|
|
|
|
CP r2, r33
|
2024-10-20 05:22:28 -05:00
|
|
|
JAL r31, r0, :str_len
|
2024-11-15 15:35:03 -06:00
|
|
|
CP r33, r1
|
|
|
|
ADD64 r32, r33, r32
|
|
|
|
CP r1, r32
|
2024-11-17 03:06:10 -06:00
|
|
|
LD r31, r254, 0a, 24h
|
|
|
|
ADDI64 r254, r254, 24d
|
2024-10-20 05:22:28 -05:00
|
|
|
JALA r0, r31, 0a
|
|
|
|
str_len:
|
2024-11-30 11:57:29 -06:00
|
|
|
CP r13, r2
|
|
|
|
CP r15, r0
|
|
|
|
CP r14, r15
|
|
|
|
2: LD r16, r13, 0a, 1h
|
2024-11-15 15:35:03 -06:00
|
|
|
ANDI r16, r16, 255d
|
2024-11-30 11:57:29 -06:00
|
|
|
JNE r16, r15, :0
|
|
|
|
CP r1, r14
|
2024-10-20 05:22:28 -05:00
|
|
|
JMP :1
|
2024-11-30 11:57:29 -06:00
|
|
|
0: ADDI64 r13, r13, 1d
|
|
|
|
ADDI64 r14, r14, 1d
|
2024-10-20 05:22:28 -05:00
|
|
|
JMP :2
|
2024-11-17 03:06:10 -06:00
|
|
|
1: JALA r0, r31, 0a
|
|
|
|
code size: 216
|
2024-10-20 05:22:28 -05:00
|
|
|
ret: 16
|
|
|
|
status: Ok(())
|