forked from AbleOS/holey-bytes
39 lines
801 B
Plaintext
39 lines
801 B
Plaintext
decide:
|
|
ADDI64 r254, r254, -40d
|
|
ST r32, r254, 24a, 16h
|
|
CP r14, r2
|
|
CP r15, r1
|
|
ADDI64 r13, r254, 0d
|
|
ST r14, r254, 0a, 8h
|
|
ST r0, r254, 8a, 8h
|
|
ST r0, r254, 16a, 8h
|
|
BMC r13, r15, 24h
|
|
LD r32, r254, 24a, 16h
|
|
ADDI64 r254, r254, 40d
|
|
JALA r0, r31, 0a
|
|
main:
|
|
ADDI64 r254, r254, -128d
|
|
ST r31, r254, 72a, 56h
|
|
ADDI64 r32, r254, 48d
|
|
CP r2, r0
|
|
CP r1, r32
|
|
JAL r31, r0, :decide
|
|
ADDI64 r34, r254, 24d
|
|
BMC r32, r34, 24h
|
|
LI64 r35, 1d
|
|
CP r2, r35
|
|
CP r1, r34
|
|
JAL r31, r0, :decide
|
|
ADDI64 r36, r254, 0d
|
|
BMC r32, r36, 24h
|
|
LD r32, r254, 24a, 8h
|
|
LD r33, r254, 0a, 8h
|
|
ADD64 r32, r33, r32
|
|
CP r1, r32
|
|
LD r31, r254, 72a, 56h
|
|
ADDI64 r254, r254, 128d
|
|
JALA r0, r31, 0a
|
|
code size: 299
|
|
ret: 1
|
|
status: Ok(())
|