34 lines
644 B
Plaintext
34 lines
644 B
Plaintext
integer_range:
|
|
ADDI64 r254, r254, -32d
|
|
ST r32, r254, 0a, 32h
|
|
CP r13, r2
|
|
CP r14, r3
|
|
LI64 r15, 4d
|
|
LI64 r16, 3d
|
|
CP r2, r16
|
|
CP r3, r15
|
|
ECA
|
|
CP r15, r1
|
|
SUB64 r14, r14, r13
|
|
ADDI64 r14, r14, 1d
|
|
DIRU64 r0, r14, r15, r14
|
|
ADD64 r13, r14, r13
|
|
CP r1, r13
|
|
LD r32, r254, 0a, 32h
|
|
ADDI64 r254, r254, 32d
|
|
JALA r0, r31, 0a
|
|
main:
|
|
ADDI64 r254, r254, -24d
|
|
ST r31, r254, 0a, 24h
|
|
LI64 r32, 1000d
|
|
CP r2, r0
|
|
CP r3, r32
|
|
JAL r31, r0, :integer_range
|
|
CP r0, r1
|
|
LD r31, r254, 0a, 24h
|
|
ADDI64 r254, r254, 24d
|
|
JALA r0, r31, 0a
|
|
code size: 215
|
|
ret: 42
|
|
status: Ok(())
|