59 lines
1.1 KiB
Plaintext
59 lines
1.1 KiB
Plaintext
main:
|
|
ADDI64 r254, r254, -104d
|
|
ST r31, r254, 0a, 104h
|
|
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
|
|
JAL r31, r0, :set_pixel
|
|
CP r41, r4
|
|
ADDI64 r42, r3, 1d
|
|
CP r43, r3
|
|
JMP :1
|
|
0: JAL r31, r0, :set_pixel
|
|
CP r41, r4
|
|
CP r42, r32
|
|
ADDI64 r43, r3, 1d
|
|
1: JNE r43, r41, :2
|
|
JMP :3
|
|
2: CP r2, r42
|
|
CP r35, r34
|
|
CP r4, r36
|
|
CP r3, r43
|
|
CP r4, r41
|
|
JMP :4
|
|
3: LD r31, r254, 0a, 104h
|
|
ADDI64 r254, r254, 104d
|
|
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
|
|
code size: 422
|
|
ret: 0
|
|
status: Ok(())
|