holey-bytes/lang/tests/son_tests_only_break_loop.txt

41 lines
705 B
Plaintext
Raw Normal View History

inb:
2024-11-15 15:35:03 -06:00
ADDI64 r254, r254, -8d
ST r32, r254, 0a, 8h
CP r13, r2
CP r1, r13
LD r32, r254, 0a, 8h
ADDI64 r254, r254, 8d
JALA r0, r31, 0a
main:
2024-11-15 15:35:03 -06:00
ADDI64 r254, r254, -32d
ST r31, r254, 0a, 32h
2024-11-13 03:28:16 -06:00
LI64 r32, 100d
4: CP r2, r32
JAL r31, r0, :inb
2024-11-15 15:35:03 -06:00
CP r33, r1
ANDI r33, r33, 2d
2024-11-13 03:28:16 -06:00
JNE r33, r0, :0
2024-11-15 15:35:03 -06:00
LI64 r33, 96d
CP r2, r33
2024-11-13 03:28:16 -06:00
CP r3, r0
JAL r31, r0, :outb
2024-11-13 03:28:16 -06:00
3: CP r2, r32
JAL r31, r0, :inb
2024-11-15 15:35:03 -06:00
CP r33, r1
JEQ r33, r0, :1
LI64 r32, 1d
CP r1, r32
JMP :2
1: JMP :3
0: JMP :4
2024-11-15 15:35:03 -06:00
2: LD r31, r254, 0a, 32h
ADDI64 r254, r254, 32d
JALA r0, r31, 0a
outb:
2024-11-15 15:35:03 -06:00
CP r0, r2
CP r0, r3
JALA r0, r31, 0a
2024-11-15 15:35:03 -06:00
code size: 257
ret: 1
status: Ok(())