2024-10-21 12:57:55 -05:00
|
|
|
integer_range:
|
2024-11-15 15:35:03 -06:00
|
|
|
CP r13, r2
|
|
|
|
CP r14, r3
|
|
|
|
LI64 r15, 4d
|
|
|
|
LI64 r16, 3d
|
|
|
|
CP r2, r16
|
|
|
|
CP r3, r15
|
2024-10-21 12:57:55 -05:00
|
|
|
ECA
|
2024-11-15 15:35:03 -06:00
|
|
|
SUB64 r14, r14, r13
|
|
|
|
ADDI64 r14, r14, 1d
|
2024-12-19 03:48:05 -06:00
|
|
|
CP r15, r1
|
2024-11-15 15:35:03 -06:00
|
|
|
DIRU64 r0, r14, r15, r14
|
|
|
|
ADD64 r13, r14, r13
|
|
|
|
CP r1, r13
|
2024-10-21 12:57:55 -05:00
|
|
|
JALA r0, r31, 0a
|
|
|
|
main:
|
2024-11-17 03:06:10 -06:00
|
|
|
ADDI64 r254, r254, -16d
|
|
|
|
ST r31, r254, 0a, 16h
|
2024-11-15 15:35:03 -06:00
|
|
|
LI64 r32, 1000d
|
2024-11-13 03:28:16 -06:00
|
|
|
CP r2, r0
|
2024-11-15 15:35:03 -06:00
|
|
|
CP r3, r32
|
2024-10-21 12:57:55 -05:00
|
|
|
JAL r31, r0, :integer_range
|
2024-11-17 03:06:10 -06:00
|
|
|
LD r31, r254, 0a, 16h
|
|
|
|
ADDI64 r254, r254, 16d
|
2024-10-21 12:57:55 -05:00
|
|
|
JALA r0, r31, 0a
|
2024-11-17 03:06:10 -06:00
|
|
|
code size: 164
|
2024-10-21 12:57:55 -05:00
|
|
|
ret: 42
|
|
|
|
status: Ok(())
|