forked from AbleOS/holey-bytes
109 lines
2.2 KiB
Plaintext
109 lines
2.2 KiB
Plaintext
main:
|
|
ADDI64 r254, r254, -90d
|
|
ST r31, r254, 58a, 32h
|
|
ADDI64 r32, r254, 33d
|
|
ADDI64 r2, r254, 34d
|
|
ADDI64 r6, r254, 1d
|
|
ADDI64 r4, r254, 17d
|
|
ST r32, r254, 34a, 8h
|
|
LI64 r33, 100d
|
|
ADDI64 r7, r254, 0d
|
|
LI8 r34, 1b
|
|
ST r0, r254, 1a, 8h
|
|
ST r0, r254, 17a, 8h
|
|
ST r33, r254, 42a, 8h
|
|
ST r34, r254, 0a, 1h
|
|
ST r0, r254, 9a, 8h
|
|
ST r0, r254, 25a, 8h
|
|
ST r33, r254, 50a, 8h
|
|
ST r0, r254, 33a, 1h
|
|
CP r3, r4
|
|
CP r5, r6
|
|
LD r3, r3, 0a, 16h
|
|
LD r5, r5, 0a, 16h
|
|
LD r7, r7, 0a, 1h
|
|
JAL r31, r0, :put_filled_rect
|
|
LD r31, r254, 58a, 32h
|
|
ADDI64 r254, r254, 90d
|
|
JALA r0, r31, 0a
|
|
put_filled_rect:
|
|
ADDI64 r254, r254, -220d
|
|
ST r32, r254, 108a, 112h
|
|
ST r3, r254, 92a, 16h
|
|
ADDI64 r3, r254, 92d
|
|
ST r5, r254, 76a, 16h
|
|
ADDI64 r5, r254, 76d
|
|
ST r7, r254, 75a, 1h
|
|
ADDI64 r7, r254, 75d
|
|
LI64 r8, 25d
|
|
LI64 r32, 2d
|
|
LI64 r6, 8d
|
|
ADDI64 r33, r254, 25d
|
|
ADDI64 r34, r254, 50d
|
|
LI8 r35, 5b
|
|
ST r35, r254, 25a, 1h
|
|
LD r36, r5, 0a, 8h
|
|
ST r36, r254, 26a, 4h
|
|
LI64 r37, 1d
|
|
ST r37, r254, 30a, 4h
|
|
ST r7, r254, 34a, 8h
|
|
ST r35, r254, 50a, 1h
|
|
ST r36, r254, 51a, 4h
|
|
ST r37, r254, 55a, 4h
|
|
ST r7, r254, 59a, 8h
|
|
CP r38, r7
|
|
LD r7, r3, 8a, 8h
|
|
LD r39, r5, 8a, 8h
|
|
ADD64 r11, r39, r7
|
|
SUB64 r4, r11, r37
|
|
LD r40, r2, 8a, 8h
|
|
MUL64 r5, r40, r4
|
|
LD r10, r2, 0a, 8h
|
|
ADD64 r9, r10, r5
|
|
LD r41, r3, 0a, 8h
|
|
ADD64 r42, r41, r9
|
|
MUL64 r43, r40, r7
|
|
3: ADD64 r43, r43, r10
|
|
ADD64 r9, r43, r41
|
|
JGTU r39, r37, :0
|
|
JNE r39, r37, :1
|
|
ADDI64 r4, r254, 0d
|
|
ST r35, r254, 0a, 1h
|
|
ST r36, r254, 1a, 4h
|
|
ST r37, r254, 5a, 4h
|
|
ST r38, r254, 9a, 8h
|
|
ST r9, r254, 17a, 8h
|
|
CP r2, r6
|
|
CP r3, r32
|
|
CP r5, r8
|
|
ECA
|
|
JMP :1
|
|
1: JMP :2
|
|
0: CP r3, r32
|
|
CP r44, r6
|
|
CP r45, r8
|
|
ST r9, r254, 67a, 8h
|
|
CP r2, r44
|
|
CP r4, r34
|
|
CP r5, r45
|
|
ECA
|
|
ST r42, r254, 42a, 8h
|
|
CP r2, r44
|
|
CP r3, r32
|
|
CP r4, r33
|
|
CP r5, r45
|
|
ECA
|
|
SUB64 r42, r42, r40
|
|
SUB64 r39, r39, r32
|
|
CP r10, r41
|
|
CP r41, r40
|
|
CP r8, r45
|
|
CP r6, r44
|
|
JMP :3
|
|
2: LD r32, r254, 108a, 112h
|
|
ADDI64 r254, r254, 220d
|
|
JALA r0, r31, 0a
|
|
code size: 906
|
|
ret: 0
|
|
status: Ok(())
|