1
0
Fork 0
forked from koniifer/ableos
ableos-framebuffer/hblang/tests/son_tests_fb_driver.txt

61 lines
1.2 KiB
Plaintext
Raw Permalink Normal View History

2024-09-06 09:11:57 -05:00
main:
2024-09-15 13:14:56 -05:00
ADDI64 r254, r254, -88d
ST r31, r254, 0a, 88h
2024-09-06 09:11:57 -05:00
JAL r31, r0, :check_platform
2024-09-15 13:14:56 -05:00
CP r32, r1
LI64 r33, 0d
2024-09-06 15:00:23 -05:00
LI64 r34, 30d
2024-09-15 13:14:56 -05:00
LI64 r35, 100d
CP r36, r33
CP r37, r33
2024-09-06 15:00:23 -05:00
CP r38, r33
2024-09-15 13:14:56 -05:00
5: JLTU r37, r34, :0
ADDI64 r36, r36, 1d
2024-09-08 05:00:07 -05:00
CP r2, r33
2024-09-15 13:14:56 -05:00
CP r3, r36
CP r4, r34
2024-09-06 09:11:57 -05:00
JAL r31, r0, :set_pixel
2024-09-15 13:14:56 -05:00
CP r39, r1
JEQ r39, r38, :1
CP r1, r33
JMP :2
1: JNE r36, r35, :3
CP r1, r38
JMP :2
3: CP r37, r33
CP r40, r38
2024-09-06 09:11:57 -05:00
JMP :4
2024-09-15 13:14:56 -05:00
0: ADDI64 r40, r38, 1d
ADDI64 r41, r37, 1d
CP r37, r41
4: CP r38, r40
JMP :5
2: LD r31, r254, 0a, 88h
ADDI64 r254, r254, 88d
2024-09-06 09:11:57 -05:00
JALA r0, r31, 0a
set_pixel:
2024-09-15 13:14:56 -05:00
ADDI64 r254, r254, -16d
ST r31, r254, 0a, 16h
MUL64 r32, r4, r3
ADD64 r1, r32, r2
LD r31, r254, 0a, 16h
ADDI64 r254, r254, 16d
2024-09-06 09:11:57 -05:00
JALA r0, r31, 0a
check_platform:
ADDI64 r254, r254, -8d
ST r31, r254, 0a, 8h
JAL r31, r0, :x86_fb_ptr
LD r31, r254, 0a, 8h
ADDI64 r254, r254, 8d
JALA r0, r31, 0a
x86_fb_ptr:
ADDI64 r254, r254, -8d
ST r31, r254, 0a, 8h
LI64 r1, 100d
LD r31, r254, 0a, 8h
ADDI64 r254, r254, 8d
JALA r0, r31, 0a
2024-09-15 13:14:56 -05:00
code size: 423
ret: 3000
2024-09-06 09:11:57 -05:00
status: Ok(())