2024-11-04 05:38:47 -06:00
|
|
|
main:
|
2024-11-15 15:35:03 -06:00
|
|
|
ADDI64 r254, r254, -130d
|
|
|
|
ST r31, r254, 58a, 72h
|
2024-11-05 07:52:30 -06:00
|
|
|
ADDI64 r32, r254, 33d
|
2024-11-15 15:35:03 -06:00
|
|
|
ADDI64 r33, r254, 34d
|
|
|
|
ADDI64 r34, r254, 1d
|
|
|
|
ADDI64 r35, r254, 17d
|
2024-11-05 07:52:30 -06:00
|
|
|
ST r32, r254, 34a, 8h
|
2024-11-15 15:35:03 -06:00
|
|
|
LI64 r36, 100d
|
|
|
|
ADDI64 r37, r254, 0d
|
|
|
|
LI8 r38, 1b
|
2024-11-13 03:28:16 -06:00
|
|
|
ST r0, r254, 1a, 8h
|
|
|
|
ST r0, r254, 17a, 8h
|
2024-11-15 15:35:03 -06:00
|
|
|
ST r36, r254, 42a, 8h
|
|
|
|
ST r38, r254, 0a, 1h
|
2024-11-13 03:28:16 -06:00
|
|
|
ST r0, r254, 9a, 8h
|
|
|
|
ST r0, r254, 25a, 8h
|
2024-11-15 15:35:03 -06:00
|
|
|
ST r36, r254, 50a, 8h
|
2024-11-13 03:28:16 -06:00
|
|
|
ST r0, r254, 33a, 1h
|
2024-11-15 15:35:03 -06:00
|
|
|
CP r2, r33
|
|
|
|
LD r3, r35, 0a, 16h
|
|
|
|
LD r5, r34, 0a, 16h
|
|
|
|
LD r7, r37, 0a, 1h
|
2024-11-04 05:38:47 -06:00
|
|
|
JAL r31, r0, :put_filled_rect
|
2024-11-15 15:35:03 -06:00
|
|
|
LD r31, r254, 58a, 72h
|
|
|
|
ADDI64 r254, r254, 130d
|
2024-11-04 05:38:47 -06:00
|
|
|
JALA r0, r31, 0a
|
|
|
|
put_filled_rect:
|
2024-11-15 15:35:03 -06:00
|
|
|
ADDI64 r254, r254, -236d
|
|
|
|
ST r32, r254, 108a, 128h
|
|
|
|
CP r14, r2
|
2024-11-04 05:38:47 -06:00
|
|
|
ST r3, r254, 92a, 16h
|
|
|
|
ADDI64 r3, r254, 92d
|
2024-11-15 15:35:03 -06:00
|
|
|
CP r15, r3
|
2024-11-04 05:38:47 -06:00
|
|
|
ST r5, r254, 76a, 16h
|
|
|
|
ADDI64 r5, r254, 76d
|
2024-11-15 15:35:03 -06:00
|
|
|
CP r13, r5
|
2024-11-04 05:38:47 -06:00
|
|
|
ST r7, r254, 75a, 1h
|
|
|
|
ADDI64 r7, r254, 75d
|
2024-11-15 15:35:03 -06:00
|
|
|
CP r16, r7
|
|
|
|
LI64 r17, 25d
|
|
|
|
LI64 r18, 2d
|
|
|
|
LI64 r19, 8d
|
|
|
|
ADDI64 r20, r254, 25d
|
|
|
|
ADDI64 r21, r254, 50d
|
|
|
|
LI8 r22, 5b
|
|
|
|
ST r22, r254, 25a, 1h
|
|
|
|
LD r23, r13, 0a, 8h
|
|
|
|
ST r23, r254, 26a, 4h
|
|
|
|
LI64 r24, 1d
|
|
|
|
ST r24, r254, 30a, 4h
|
|
|
|
ST r16, r254, 34a, 8h
|
|
|
|
ST r22, r254, 50a, 1h
|
|
|
|
ST r23, r254, 51a, 4h
|
|
|
|
ST r24, r254, 55a, 4h
|
|
|
|
ST r16, r254, 59a, 8h
|
|
|
|
LD r25, r15, 8a, 8h
|
|
|
|
LD r13, r13, 8a, 8h
|
|
|
|
ADD64 r26, r13, r25
|
|
|
|
SUB64 r26, r26, r24
|
|
|
|
LD r27, r14, 8a, 8h
|
|
|
|
MUL64 r26, r27, r26
|
|
|
|
LD r14, r14, 0a, 8h
|
|
|
|
ADD64 r26, r14, r26
|
|
|
|
LD r28, r15, 0a, 8h
|
|
|
|
ADD64 r15, r28, r26
|
|
|
|
MUL64 r25, r27, r25
|
|
|
|
ADD64 r14, r14, r25
|
|
|
|
ADD64 r14, r28, r14
|
|
|
|
3: JGTU r13, r24, :0
|
|
|
|
JNE r13, r24, :1
|
|
|
|
ADDI64 r13, r254, 0d
|
|
|
|
ST r22, r254, 0a, 1h
|
|
|
|
ST r23, r254, 1a, 4h
|
|
|
|
ST r24, r254, 5a, 4h
|
|
|
|
ST r16, r254, 9a, 8h
|
|
|
|
ST r14, r254, 17a, 8h
|
|
|
|
CP r2, r19
|
|
|
|
CP r3, r18
|
|
|
|
CP r4, r13
|
|
|
|
CP r5, r17
|
2024-11-04 05:38:47 -06:00
|
|
|
ECA
|
|
|
|
JMP :1
|
|
|
|
1: JMP :2
|
2024-11-15 15:35:03 -06:00
|
|
|
0: ST r14, r254, 67a, 8h
|
|
|
|
CP r2, r19
|
|
|
|
CP r3, r18
|
|
|
|
CP r4, r21
|
|
|
|
CP r5, r17
|
2024-11-13 03:28:16 -06:00
|
|
|
ECA
|
2024-11-15 15:35:03 -06:00
|
|
|
ST r15, r254, 42a, 8h
|
|
|
|
CP r2, r19
|
|
|
|
CP r3, r18
|
|
|
|
CP r4, r20
|
|
|
|
CP r5, r17
|
2024-11-04 05:38:47 -06:00
|
|
|
ECA
|
2024-11-15 15:35:03 -06:00
|
|
|
SUB64 r15, r15, r27
|
|
|
|
ADD64 r14, r27, r14
|
|
|
|
SUB64 r13, r13, r18
|
2024-11-04 05:38:47 -06:00
|
|
|
JMP :3
|
2024-11-15 15:35:03 -06:00
|
|
|
2: LD r32, r254, 108a, 128h
|
|
|
|
ADDI64 r254, r254, 236d
|
2024-11-04 05:38:47 -06:00
|
|
|
JALA r0, r31, 0a
|
2024-11-15 15:35:03 -06:00
|
|
|
code size: 901
|
2024-11-04 05:38:47 -06:00
|
|
|
ret: 0
|
|
|
|
status: Ok(())
|