holey-bytes/lang/tests/son_tests_request_page.txt

51 lines
1,004 B
Plaintext
Raw Normal View History

2024-10-22 00:20:08 -05:00
create_back_buffer:
2024-10-24 02:43:07 -05:00
ADDI64 r254, r254, -48d
ST r31, r254, 0a, 48h
2024-10-22 00:20:08 -05:00
LI64 r32, 255d
JGTS r2, r32, :0
AND r2, r2, r32
JAL r31, r0, :request_page
JMP :1
0: CP r33, r2
LI8 r34, 255b
2024-10-22 00:20:08 -05:00
CP r2, r34
JAL r31, r0, :request_page
2024-10-24 02:43:07 -05:00
CP r35, r1
LI64 r36, 0d
2024-10-22 00:20:08 -05:00
CP r2, r33
2024-10-24 02:43:07 -05:00
SUB64 r33, r2, r32
5: JGTS r33, r36, :2
CP r1, r35
2024-10-22 00:20:08 -05:00
JMP :1
2024-10-24 02:43:07 -05:00
2: JLTS r33, r32, :3
2024-10-22 00:20:08 -05:00
CP r2, r34
JAL r31, r0, :request_page
JMP :4
2024-10-24 02:43:07 -05:00
3: AND r2, r33, r32
2024-10-22 00:20:08 -05:00
JAL r31, r0, :request_page
2024-10-24 02:43:07 -05:00
4: SUB64 r33, r33, r32
2024-10-22 00:20:08 -05:00
JMP :5
2024-10-24 02:43:07 -05:00
1: LD r31, r254, 0a, 48h
ADDI64 r254, r254, 48d
2024-10-22 00:20:08 -05:00
JALA r0, r31, 0a
main:
ADDI64 r254, r254, -8d
ST r31, r254, 0a, 8h
LI64 r2, 400d
JAL r31, r0, :create_back_buffer
LD r31, r254, 0a, 8h
ADDI64 r254, r254, 8d
JALA r0, r31, 0a
request_page:
CP r12, r2
LI64 r5, 12d
LI64 r3, 2d
LI64 r2, 3d
LRA r4, r0, :"\0\u{1}xxxxxxxx\0"
ST r12, r4, 1a, 1h
ECA
JALA r0, r31, 0a
code size: 339
2024-10-22 00:20:08 -05:00
ret: 42
status: Ok(())