2024-11-04 05:38:47 -06:00
|
|
|
main:
|
2024-11-13 03:28:16 -06:00
|
|
|
ADDI64 r254, r254, -90d
|
|
|
|
ST r31, r254, 58a, 32h
|
2024-11-05 07:52:30 -06:00
|
|
|
ADDI64 r32, r254, 33d
|
2024-11-04 05:38:47 -06:00
|
|
|
ADDI64 r2, r254, 34d
|
|
|
|
ADDI64 r6, r254, 1d
|
|
|
|
ADDI64 r4, r254, 17d
|
2024-11-05 07:52:30 -06:00
|
|
|
ST r32, r254, 34a, 8h
|
2024-11-13 03:28:16 -06:00
|
|
|
LI64 r33, 100d
|
2024-11-04 05:38:47 -06:00
|
|
|
ADDI64 r7, r254, 0d
|
2024-11-13 03:28:16 -06:00
|
|
|
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
|
2024-11-04 05:38:47 -06:00
|
|
|
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
|
2024-11-13 03:28:16 -06:00
|
|
|
LD r31, r254, 58a, 32h
|
|
|
|
ADDI64 r254, r254, 90d
|
2024-11-04 05:38:47 -06:00
|
|
|
JALA r0, r31, 0a
|
|
|
|
put_filled_rect:
|
|
|
|
ADDI64 r254, r254, -212d
|
|
|
|
ST r32, r254, 108a, 104h
|
|
|
|
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
|
2024-11-13 03:28:16 -06:00
|
|
|
LI64 r6, 2d
|
|
|
|
LI64 r9, 8d
|
|
|
|
ADDI64 r32, r254, 25d
|
|
|
|
ADDI64 r33, r254, 50d
|
|
|
|
LI8 r34, 5b
|
|
|
|
ST r34, r254, 25a, 1h
|
|
|
|
LD r35, r5, 0a, 8h
|
|
|
|
ST r35, r254, 26a, 4h
|
|
|
|
LI64 r36, 1d
|
|
|
|
ST r36, r254, 30a, 4h
|
2024-11-04 05:38:47 -06:00
|
|
|
ST r7, r254, 34a, 8h
|
2024-11-13 03:28:16 -06:00
|
|
|
ST r34, r254, 50a, 1h
|
|
|
|
ST r35, r254, 51a, 4h
|
|
|
|
ST r36, r254, 55a, 4h
|
2024-11-04 05:38:47 -06:00
|
|
|
ST r7, r254, 59a, 8h
|
2024-11-13 03:28:16 -06:00
|
|
|
CP r37, r7
|
|
|
|
LD r4, r3, 8a, 8h
|
|
|
|
LD r38, r5, 8a, 8h
|
|
|
|
ADD64 r1, r38, r4
|
|
|
|
SUB64 r5, r1, r36
|
|
|
|
LD r39, r2, 8a, 8h
|
|
|
|
MUL64 r7, r39, r5
|
|
|
|
LD r10, r2, 0a, 8h
|
|
|
|
ADD64 r11, r10, r7
|
|
|
|
LD r5, r3, 0a, 8h
|
|
|
|
ADD64 r40, r5, r11
|
|
|
|
MUL64 r4, r39, r4
|
|
|
|
ADD64 r7, r10, r4
|
|
|
|
ADD64 r41, r5, r7
|
|
|
|
3: JGTU r38, r36, :0
|
|
|
|
JNE r38, r36, :1
|
2024-11-04 05:38:47 -06:00
|
|
|
ADDI64 r4, r254, 0d
|
2024-11-13 03:28:16 -06:00
|
|
|
ST r34, r254, 0a, 1h
|
|
|
|
ST r35, r254, 1a, 4h
|
|
|
|
ST r36, r254, 5a, 4h
|
|
|
|
ST r37, r254, 9a, 8h
|
|
|
|
ST r41, r254, 17a, 8h
|
|
|
|
CP r2, r9
|
|
|
|
CP r3, r6
|
2024-11-04 05:38:47 -06:00
|
|
|
CP r5, r8
|
|
|
|
ECA
|
|
|
|
JMP :1
|
|
|
|
1: JMP :2
|
2024-11-13 03:28:16 -06:00
|
|
|
0: CP r3, r6
|
|
|
|
CP r42, r9
|
|
|
|
CP r43, r8
|
|
|
|
ST r41, r254, 67a, 8h
|
|
|
|
CP r44, r3
|
|
|
|
CP r2, r42
|
2024-11-04 05:38:47 -06:00
|
|
|
CP r4, r33
|
2024-11-13 03:28:16 -06:00
|
|
|
CP r5, r43
|
|
|
|
ECA
|
|
|
|
ST r40, r254, 42a, 8h
|
|
|
|
CP r2, r42
|
|
|
|
CP r3, r44
|
|
|
|
CP r4, r32
|
|
|
|
CP r5, r43
|
2024-11-04 05:38:47 -06:00
|
|
|
ECA
|
2024-11-13 03:28:16 -06:00
|
|
|
SUB64 r40, r40, r39
|
|
|
|
ADD64 r41, r39, r41
|
|
|
|
SUB64 r38, r38, r44
|
|
|
|
CP r6, r44
|
|
|
|
CP r8, r43
|
|
|
|
CP r9, r42
|
2024-11-04 05:38:47 -06:00
|
|
|
JMP :3
|
|
|
|
2: LD r32, r254, 108a, 104h
|
|
|
|
ADDI64 r254, r254, 212d
|
|
|
|
JALA r0, r31, 0a
|
2024-11-13 03:28:16 -06:00
|
|
|
code size: 910
|
2024-11-04 05:38:47 -06:00
|
|
|
ret: 0
|
|
|
|
status: Ok(())
|