2024-10-20 05:22:28 -05:00
|
|
|
main:
|
|
|
|
ADDI64 r254, r254, -16d
|
|
|
|
ST r31, r254, 0a, 16h
|
|
|
|
LRA r2, r0, :"abඞ\n\r\t56789\0"
|
|
|
|
JAL r31, r0, :str_len
|
|
|
|
CP r32, r1
|
|
|
|
LRA r2, r0, :"fff\0"
|
|
|
|
JAL r31, r0, :str_len
|
2024-11-05 07:52:30 -06:00
|
|
|
ADD64 r1, r1, r32
|
2024-10-20 05:22:28 -05:00
|
|
|
LD r31, r254, 0a, 16h
|
|
|
|
ADDI64 r254, r254, 16d
|
|
|
|
JALA r0, r31, 0a
|
|
|
|
str_len:
|
2024-11-13 03:28:16 -06:00
|
|
|
CP r5, r0
|
|
|
|
CP r1, r5
|
|
|
|
2: LD r9, r2, 0a, 1h
|
|
|
|
ANDI r11, r9, 255d
|
|
|
|
JNE r11, r5, :0
|
2024-10-20 05:22:28 -05:00
|
|
|
JMP :1
|
|
|
|
0: ADDI64 r2, r2, 1d
|
|
|
|
ADDI64 r1, r1, 1d
|
|
|
|
JMP :2
|
|
|
|
1: JALA r0, r31, 0a
|
2024-11-13 03:28:16 -06:00
|
|
|
code size: 198
|
2024-10-20 05:22:28 -05:00
|
|
|
ret: 16
|
|
|
|
status: Ok(())
|