32 lines
562 B
Plaintext
32 lines
562 B
Plaintext
main:
|
|
ADDI64 r254, r254, -1d
|
|
LI64 r7, 0d
|
|
LI64 r5, 255d
|
|
LI8 r4, 1b
|
|
LI8 r6, 0b
|
|
ST r6, r254, 0a, 1h
|
|
2: LD r9, r254, 0a, 1h
|
|
AND r12, r9, r5
|
|
CMPU r2, r12, r5
|
|
CMPUI r2, r2, 0d
|
|
NOT r2, r2
|
|
CMPU r6, r12, r7
|
|
CMPUI r6, r6, 0d
|
|
NOT r6, r6
|
|
AND r8, r2, r5
|
|
AND r10, r6, r5
|
|
OR r11, r10, r8
|
|
ANDI r11, r11, 255d
|
|
JNE r11, r0, :0
|
|
JMP :1
|
|
0: SUB8 r4, r0, r4
|
|
1: ADD8 r8, r9, r4
|
|
ST r8, r254, 0a, 1h
|
|
JMP :2
|
|
ADDI64 r254, r254, 1d
|
|
JALA r0, r31, 0a
|
|
timed out
|
|
code size: 192
|
|
ret: 0
|
|
status: Ok(())
|