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:
|
2024-11-15 07:36:33 -06:00
|
|
|
ADDI64 r254, r254, -220d
|
|
|
|
ST r32, r254, 108a, 112h
|
2024-11-04 05:38:47 -06:00
|
|
|
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-15 07:36:33 -06:00
|
|
|
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
|
2024-11-04 05:38:47 -06:00
|
|
|
ST r7, r254, 34a, 8h
|
2024-11-15 07:36:33 -06:00
|
|
|
ST r35, r254, 50a, 1h
|
|
|
|
ST r36, r254, 51a, 4h
|
|
|
|
ST r37, r254, 55a, 4h
|
2024-11-04 05:38:47 -06:00
|
|
|
ST r7, r254, 59a, 8h
|
2024-11-15 07:36:33 -06:00
|
|
|
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
|
2024-11-13 03:28:16 -06:00
|
|
|
LD r10, r2, 0a, 8h
|
2024-11-15 07:36:33 -06:00
|
|
|
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
|
2024-11-04 05:38:47 -06:00
|
|
|
ADDI64 r4, r254, 0d
|
2024-11-15 07:36:33 -06:00
|
|
|
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
|
2024-11-04 05:38:47 -06:00
|
|
|
CP r5, r8
|
|
|
|
ECA
|
|
|
|
JMP :1
|
|
|
|
1: JMP :2
|
2024-11-15 07:36:33 -06:00
|
|
|
0: CP r3, r32
|
|
|
|
CP r44, r6
|
|
|
|
CP r45, r8
|
|
|
|
ST r9, r254, 67a, 8h
|
|
|
|
CP r2, r44
|
|
|
|
CP r4, r34
|
|
|
|
CP r5, r45
|
2024-11-13 03:28:16 -06:00
|
|
|
ECA
|
2024-11-15 07:36:33 -06:00
|
|
|
ST r42, r254, 42a, 8h
|
|
|
|
CP r2, r44
|
|
|
|
CP r3, r32
|
|
|
|
CP r4, r33
|
|
|
|
CP r5, r45
|
2024-11-04 05:38:47 -06:00
|
|
|
ECA
|
2024-11-15 07:36:33 -06:00
|
|
|
SUB64 r42, r42, r40
|
|
|
|
SUB64 r39, r39, r32
|
|
|
|
CP r10, r41
|
|
|
|
CP r41, r40
|
|
|
|
CP r8, r45
|
2024-11-13 03:28:16 -06:00
|
|
|
CP r6, r44
|
2024-11-04 05:38:47 -06:00
|
|
|
JMP :3
|
2024-11-15 07:36:33 -06:00
|
|
|
2: LD r32, r254, 108a, 112h
|
|
|
|
ADDI64 r254, r254, 220d
|
2024-11-04 05:38:47 -06:00
|
|
|
JALA r0, r31, 0a
|
2024-11-15 07:36:33 -06:00
|
|
|
code size: 906
|
2024-11-04 05:38:47 -06:00
|
|
|
ret: 0
|
|
|
|
status: Ok(())
|