50 lines
1,011 B
Plaintext
50 lines
1,011 B
Plaintext
|
chars:
|
||
|
ADDI64 r254, r254, -32d
|
||
|
ST r3, r254, 16a, 16h
|
||
|
ADDI64 r3, r254, 16d
|
||
|
CP r13, r3
|
||
|
ADDI64 r14, r254, 0d
|
||
|
BMC r13, r14, 16h
|
||
|
LD r1, r14, 0a, 16h
|
||
|
ADDI64 r254, r254, 32d
|
||
|
JALA r0, r31, 0a
|
||
|
main:
|
||
|
ADDI64 r254, r254, -56d
|
||
|
ST r31, r254, 32a, 24h
|
||
|
LRA r32, r0, :Hello, World!
|
||
|
ST r32, r254, 16a, 8h
|
||
|
LI64 r32, 13d
|
||
|
ST r32, r254, 24a, 8h
|
||
|
ADDI64 r32, r254, 0d
|
||
|
LD r3, r254, 16a, 16h
|
||
|
JAL r31, r0, :chars
|
||
|
ST r1, r32, 0a, 16h
|
||
|
2: CP r2, r32
|
||
|
JAL r31, r0, :next
|
||
|
CP r33, r1
|
||
|
ANDI r33, r33, 65535d
|
||
|
JNE r33, r0, :0
|
||
|
JMP :1
|
||
|
0: JMP :2
|
||
|
1: LD r31, r254, 32a, 24h
|
||
|
ADDI64 r254, r254, 56d
|
||
|
JALA r0, r31, 0a
|
||
|
next:
|
||
|
CP r13, r2
|
||
|
LD r14, r13, 8a, 8h
|
||
|
JNE r14, r0, :0
|
||
|
CP r1, r0
|
||
|
JMP :1
|
||
|
0: LD r15, r13, 0a, 8h
|
||
|
ADDI64 r15, r15, 1d
|
||
|
ST r15, r13, 0a, 8h
|
||
|
ADDI64 r14, r14, -1d
|
||
|
LD r15, r15, 0a, 1h
|
||
|
ST r14, r13, 8a, 8h
|
||
|
ORI r13, r15, 32768d
|
||
|
CP r1, r13
|
||
|
1: JALA r0, r31, 0a
|
||
|
code size: 423
|
||
|
ret: 0
|
||
|
status: Ok(())
|