holey-bytes/lang/tests/son_tests_request_page.txt

65 lines
1.2 KiB
Plaintext
Raw Normal View History

2024-10-22 00:20:08 -05:00
create_back_buffer:
2024-11-13 03:28:16 -06:00
ADDI64 r254, r254, -48d
ST r31, r254, 0a, 48h
2024-11-15 15:35:03 -06:00
CP r32, r2
LI64 r33, 255d
JGTS r32, r33, :0
CP r2, r32
2024-10-22 00:20:08 -05:00
JAL r31, r0, :request_page
2024-11-15 15:35:03 -06:00
CP r32, r1
CP r1, r32
2024-10-22 00:20:08 -05:00
JMP :1
2024-11-15 15:35:03 -06:00
0: LI8 r34, 255b
2024-10-22 00:20:08 -05:00
CP r2, r34
JAL r31, r0, :request_page
2024-11-15 15:35:03 -06:00
CP r35, r1
SUB64 r32, r32, r33
5: JGTS r32, r0, :2
CP r1, r35
2024-10-22 00:20:08 -05:00
JMP :1
2024-11-15 15:35:03 -06:00
2: JLTS r32, r33, :3
2024-10-22 00:20:08 -05:00
CP r2, r34
JAL r31, r0, :request_page
2024-11-15 15:35:03 -06:00
CP r0, r1
2024-10-22 00:20:08 -05:00
JMP :4
2024-11-15 15:35:03 -06:00
3: CP r2, r32
2024-10-22 00:20:08 -05:00
JAL r31, r0, :request_page
2024-11-15 15:35:03 -06:00
CP r0, r1
4: SUB64 r32, r32, r33
2024-10-22 00:20:08 -05:00
JMP :5
2024-11-13 03:28:16 -06:00
1: LD r31, r254, 0a, 48h
ADDI64 r254, r254, 48d
2024-10-22 00:20:08 -05:00
JALA r0, r31, 0a
main:
2024-11-15 15:35:03 -06:00
ADDI64 r254, r254, -24d
ST r31, r254, 0a, 24h
LI64 r32, 400d
CP r2, r32
2024-10-22 00:20:08 -05:00
JAL r31, r0, :create_back_buffer
2024-11-15 15:35:03 -06:00
CP r0, r1
LD r31, r254, 0a, 24h
ADDI64 r254, r254, 24d
2024-10-22 00:20:08 -05:00
JALA r0, r31, 0a
request_page:
2024-11-15 15:35:03 -06:00
ADDI64 r254, r254, -40d
ST r32, r254, 0a, 40h
CP r13, r2
LRA r14, r0, :"\0\u{1}xxxxxxxx\0"
ST r13, r14, 1a, 1h
LI64 r15, 12d
LI64 r16, 2d
LI64 r17, 3d
CP r2, r17
CP r3, r16
CP r4, r14
CP r5, r15
2024-10-22 00:20:08 -05:00
ECA
2024-11-15 15:35:03 -06:00
CP r13, r1
CP r1, r13
LD r32, r254, 0a, 40h
ADDI64 r254, r254, 40d
2024-10-22 00:20:08 -05:00
JALA r0, r31, 0a
2024-11-15 15:35:03 -06:00
code size: 408
2024-10-22 00:20:08 -05:00
ret: 42
status: Ok(())