forked from koniifer/ableos
32 lines
615 B
Plaintext
32 lines
615 B
Plaintext
main:
|
|
ADDI64 r254, r254, -16d
|
|
ST r31, r254, 0a, 16h
|
|
LI64 r2, 0d
|
|
LI64 r3, 1000d
|
|
JAL r31, r0, :integer_range
|
|
CP r32, r1
|
|
LD r31, r254, 0a, 16h
|
|
ADDI64 r254, r254, 16d
|
|
JALA r0, r31, 0a
|
|
integer_range:
|
|
ADDI64 r254, r254, -40d
|
|
ST r31, r254, 0a, 40h
|
|
CP r32, r2
|
|
CP r33, r3
|
|
LI64 r2, 3d
|
|
LI64 r3, 4d
|
|
ECA
|
|
CP r34, r1
|
|
CP r35, r32
|
|
SUB64 r33, r33, r35
|
|
ADDI64 r33, r33, 1d
|
|
DIRU64 r0, r34, r34, r33
|
|
ADD64 r34, r34, r32
|
|
CP r1, r34
|
|
LD r31, r254, 0a, 40h
|
|
ADDI64 r254, r254, 40d
|
|
JALA r0, r31, 0a
|
|
code size: 220
|
|
ret: 42
|
|
status: Ok(())
|