forked from koniifer/ableos
12 lines
122 B
Plaintext
12 lines
122 B
Plaintext
|
-- Add two numbers
|
||
|
-- A + B = C
|
||
|
|
||
|
-- r1 A
|
||
|
li r1, 2
|
||
|
-- r2 Result
|
||
|
li r2, 0
|
||
|
-- B = 4
|
||
|
addi r2, r1, 4
|
||
|
|
||
|
-- terminate execution
|
||
|
tx
|