2024-11-04 05:38:47 -06:00
|
|
|
main:
|
2024-12-15 10:17:41 -06:00
|
|
|
ADDI64 r254, r254, -98d
|
|
|
|
ST r31, r254, 58a, 40h
|
2024-11-05 07:52:30 -06:00
|
|
|
ADDI64 r32, r254, 33d
|
2024-11-15 15:35:03 -06:00
|
|
|
ADDI64 r33, r254, 34d
|
2024-11-05 07:52:30 -06:00
|
|
|
ST r32, r254, 34a, 8h
|
2024-12-15 10:17:41 -06:00
|
|
|
LI64 r34, 100d
|
|
|
|
LI8 r35, 1b
|
2024-11-13 03:28:16 -06:00
|
|
|
ST r0, r254, 1a, 8h
|
|
|
|
ST r0, r254, 17a, 8h
|
2024-12-15 10:17:41 -06:00
|
|
|
ST r34, r254, 42a, 8h
|
|
|
|
ST r35, r254, 0a, 1h
|
2024-11-13 03:28:16 -06:00
|
|
|
ST r0, r254, 9a, 8h
|
|
|
|
ST r0, r254, 25a, 8h
|
2024-12-15 10:17:41 -06:00
|
|
|
ST r34, 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
|
2024-12-15 10:17:41 -06:00
|
|
|
LD r3, r254, 17a, 16h
|
|
|
|
LD r5, r254, 1a, 16h
|
|
|
|
LD r7, r254, 0a, 1h
|
2024-11-04 05:38:47 -06:00
|
|
|
JAL r31, r0, :put_filled_rect
|
2024-12-15 10:17:41 -06:00
|
|
|
LD r31, r254, 58a, 40h
|
|
|
|
ADDI64 r254, r254, 98d
|
2024-11-04 05:38:47 -06:00
|
|
|
JALA r0, r31, 0a
|
|
|
|
put_filled_rect:
|
2024-11-17 03:06:10 -06:00
|
|
|
ADDI64 r254, r254, -108d
|
2024-11-15 15:35:03 -06:00
|
|
|
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
|
2024-11-23 12:47:17 -06:00
|
|
|
ADDI64 r17, r254, 25d
|
|
|
|
LI8 r18, 5b
|
|
|
|
ST r18, r254, 25a, 1h
|
|
|
|
LD r19, r13, 0a, 8h
|
|
|
|
ST r19, r254, 26a, 4h
|
|
|
|
LI64 r20, 1d
|
|
|
|
ST r20, r254, 30a, 4h
|
2024-11-15 15:35:03 -06:00
|
|
|
ST r16, r254, 34a, 8h
|
2024-11-23 12:47:17 -06:00
|
|
|
LI64 r21, 25d
|
|
|
|
ADDI64 r22, r254, 50d
|
|
|
|
ST r18, r254, 50a, 1h
|
|
|
|
ST r19, r254, 51a, 4h
|
|
|
|
ST r20, r254, 55a, 4h
|
2024-11-15 15:35:03 -06:00
|
|
|
ST r16, r254, 59a, 8h
|
2024-11-23 12:47:17 -06:00
|
|
|
LI64 r23, 2d
|
|
|
|
LI64 r24, 8d
|
2024-11-15 15:35:03 -06:00
|
|
|
LD r25, r15, 8a, 8h
|
|
|
|
LD r13, r13, 8a, 8h
|
|
|
|
ADD64 r26, r13, r25
|
2024-11-23 12:47:17 -06:00
|
|
|
SUB64 r26, r26, r20
|
2024-11-15 15:35:03 -06:00
|
|
|
LD r27, r14, 8a, 8h
|
|
|
|
MUL64 r26, r27, r26
|
|
|
|
LD r14, r14, 0a, 8h
|
|
|
|
ADD64 r26, r14, r26
|
|
|
|
LD r28, r15, 0a, 8h
|
2024-12-19 04:00:19 -06:00
|
|
|
MUL64 r15, r27, r25
|
|
|
|
ADD64 r14, r14, r15
|
2024-11-15 15:35:03 -06:00
|
|
|
ADD64 r15, r28, r26
|
|
|
|
ADD64 r14, r28, r14
|
2024-11-23 12:47:17 -06:00
|
|
|
3: JGTU r13, r20, :0
|
|
|
|
JNE r13, r20, :1
|
2024-11-15 15:35:03 -06:00
|
|
|
ADDI64 r13, r254, 0d
|
2024-11-23 12:47:17 -06:00
|
|
|
ST r18, r254, 0a, 1h
|
|
|
|
ST r19, r254, 1a, 4h
|
|
|
|
ST r20, r254, 5a, 4h
|
2024-11-15 15:35:03 -06:00
|
|
|
ST r16, r254, 9a, 8h
|
|
|
|
ST r14, r254, 17a, 8h
|
2024-11-23 12:47:17 -06:00
|
|
|
CP r2, r24
|
|
|
|
CP r3, r23
|
2024-11-15 15:35:03 -06:00
|
|
|
CP r4, r13
|
2024-11-23 12:47:17 -06:00
|
|
|
CP r5, r21
|
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
|
2024-11-23 12:47:17 -06:00
|
|
|
CP r2, r24
|
|
|
|
CP r3, r23
|
|
|
|
CP r4, r22
|
|
|
|
CP r5, r21
|
2024-11-13 03:28:16 -06:00
|
|
|
ECA
|
2024-11-15 15:35:03 -06:00
|
|
|
ST r15, r254, 42a, 8h
|
2024-11-23 12:47:17 -06:00
|
|
|
CP r2, r24
|
|
|
|
CP r3, r23
|
|
|
|
CP r4, r17
|
|
|
|
CP r5, r21
|
2024-11-04 05:38:47 -06:00
|
|
|
ECA
|
2024-11-23 12:47:17 -06:00
|
|
|
SUB64 r13, r13, r23
|
2024-11-15 15:35:03 -06:00
|
|
|
SUB64 r15, r15, r27
|
|
|
|
ADD64 r14, r27, r14
|
2024-11-04 05:38:47 -06:00
|
|
|
JMP :3
|
2024-11-17 03:06:10 -06:00
|
|
|
2: ADDI64 r254, r254, 108d
|
2024-11-04 05:38:47 -06:00
|
|
|
JALA r0, r31, 0a
|
2024-12-15 10:17:41 -06:00
|
|
|
code size: 842
|
2024-11-04 05:38:47 -06:00
|
|
|
ret: 0
|
|
|
|
status: Ok(())
|