65 lines
1.2 KiB
Plaintext
65 lines
1.2 KiB
Plaintext
main:
|
|
ADDI64 r254, r254, -96d
|
|
ST r31, r254, 0a, 96h
|
|
JAL r31, r0, :check_platform
|
|
LI64 r32, 0d
|
|
CP r33, r32
|
|
LI64 r34, 30d
|
|
CP r35, r34
|
|
LI64 r36, 100d
|
|
CP r37, r36
|
|
CP r38, r33
|
|
CP r39, r37
|
|
4: ADDI64 r40, r35, 1d
|
|
JGTS r33, r40, :0
|
|
CP r2, r33
|
|
CP r3, r33
|
|
CP r4, r37
|
|
JAL r31, r0, :set_pixel
|
|
CP r41, r37
|
|
ADDI64 r33, r33, 1d
|
|
CP r42, r33
|
|
JMP :1
|
|
0: CP r2, r33
|
|
CP r3, r38
|
|
CP r4, r39
|
|
JAL r31, r0, :set_pixel
|
|
CP r41, r39
|
|
CP r33, r32
|
|
ADDI64 r42, r38, 1d
|
|
1: JNE r42, r41, :2
|
|
JMP :3
|
|
2: CP r35, r34
|
|
CP r37, r36
|
|
CP r38, r42
|
|
CP r39, r41
|
|
JMP :4
|
|
3: LD r31, r254, 0a, 96h
|
|
ADDI64 r254, r254, 96d
|
|
JALA r0, r31, 0a
|
|
set_pixel:
|
|
ADDI64 r254, r254, -8d
|
|
ST r31, r254, 0a, 8h
|
|
LI64 r1, 0d
|
|
LD r31, r254, 0a, 8h
|
|
ADDI64 r254, r254, 8d
|
|
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
|
|
timed out
|
|
code size: 437
|
|
ret: 0
|
|
status: Ok(())
|