holey-bytes/lang/tests/codegen_tests_request_page.txt

62 lines
1.2 KiB
Plaintext
Raw Normal View History

2024-09-09 15:17:54 -05:00
create_back_buffer:
ADDI64 r254, r254, -40d
ST r31, r254, 0a, 40h
2024-09-09 15:17:54 -05:00
CP r32, r2
LI64 r33, 255d
JGTS r32, r33, :0
CP r2, r32
JAL r31, r0, :request_page
JMP :1
0: LI64 r2, 255d
JAL r31, r0, :request_page
CP r33, r1
CP r34, r32
ADDI64 r34, r34, -255d
6: LI64 r35, 0d
JGTS r34, r35, :2
2024-09-09 15:17:54 -05:00
JMP :3
2: LI64 r35, 255d
JLTS r34, r35, :4
2024-09-09 15:17:54 -05:00
LI64 r2, 255d
JAL r31, r0, :request_page
CP r35, r1
2024-09-09 15:17:54 -05:00
JMP :5
4: CP r2, r34
2024-09-09 15:17:54 -05:00
JAL r31, r0, :request_page
CP r35, r1
5: ADDI64 r34, r34, -255d
2024-09-09 15:17:54 -05:00
JMP :6
3: CP r1, r33
1: LD r31, r254, 0a, 40h
ADDI64 r254, r254, 40d
2024-09-09 15:17:54 -05:00
JALA r0, r31, 0a
2024-09-19 06:40:03 -05:00
main:
ADDI64 r254, r254, -16d
ST r31, r254, 0a, 16h
LI64 r2, 400d
JAL r31, r0, :create_back_buffer
CP r32, r1
LD r31, r254, 0a, 16h
ADDI64 r254, r254, 16d
JALA r0, r31, 0a
2024-09-09 15:17:54 -05:00
request_page:
ADDI64 r254, r254, -40d
ST r31, r254, 0a, 40h
2024-09-09 15:17:54 -05:00
CP r32, r2
2024-09-13 11:23:00 -05:00
LRA r33, r0, :"\0\u{1}xxxxxxxx\0"
2024-09-12 11:42:21 -05:00
CP r34, r33
ADDI64 r34, r34, 1d
CP r35, r34
ST r32, r35, 0a, 1h
2024-09-09 15:17:54 -05:00
LI64 r2, 3d
LI64 r3, 2d
CP r4, r33
LI64 r5, 12d
ECA
LD r31, r254, 0a, 40h
ADDI64 r254, r254, 40d
2024-09-09 15:17:54 -05:00
JALA r0, r31, 0a
code size: 449
2024-09-09 15:17:54 -05:00
ret: 42
status: Ok(())