2024-09-03 15:34:17 -05:00
|
|
|
main:
|
2024-09-20 05:03:24 -05:00
|
|
|
ADDI64 r254, r254, -40d
|
|
|
|
ST r31, r254, 0a, 40h
|
2024-09-13 11:23:00 -05:00
|
|
|
LRA r32, r0, :"abඞ\n\r\t56789\0"
|
2024-09-03 15:34:17 -05:00
|
|
|
CP r2, r32
|
|
|
|
JAL r31, r0, :str_len
|
|
|
|
CP r33, r1
|
2024-09-20 05:03:24 -05:00
|
|
|
LRA r34, r0, :"fff\0"
|
|
|
|
CP r2, r34
|
|
|
|
JAL r31, r0, :str_len
|
|
|
|
CP r35, r1
|
|
|
|
ADD64 r1, r35, r33
|
|
|
|
LD r31, r254, 0a, 40h
|
|
|
|
ADDI64 r254, r254, 40d
|
2024-09-03 15:34:17 -05:00
|
|
|
JALA r0, r31, 0a
|
|
|
|
str_len:
|
2024-09-09 12:36:53 -05:00
|
|
|
ADDI64 r254, r254, -48d
|
|
|
|
ST r31, r254, 0a, 48h
|
2024-09-03 15:34:17 -05:00
|
|
|
CP r32, r2
|
|
|
|
LI64 r33, 0d
|
|
|
|
2: CP r34, r32
|
|
|
|
CP r35, r0
|
|
|
|
LD r35, r34, 0a, 1h
|
2024-09-09 12:36:53 -05:00
|
|
|
LI64 r36, 0d
|
|
|
|
JNE r35, r36, :0
|
2024-09-03 15:34:17 -05:00
|
|
|
JMP :1
|
2024-09-09 18:15:18 -05:00
|
|
|
0: ADDI64 r33, r33, 1d
|
|
|
|
ADDI64 r32, r32, 1d
|
2024-09-03 15:34:17 -05:00
|
|
|
JMP :2
|
|
|
|
1: CP r1, r33
|
2024-09-09 12:36:53 -05:00
|
|
|
LD r31, r254, 0a, 48h
|
|
|
|
ADDI64 r254, r254, 48d
|
2024-09-03 15:34:17 -05:00
|
|
|
JALA r0, r31, 0a
|
2024-09-09 18:15:18 -05:00
|
|
|
code size: 270
|
2024-07-07 06:42:48 -05:00
|
|
|
ret: 16
|
2024-07-06 16:02:04 -05:00
|
|
|
status: Ok(())
|