1
0
Fork 0
forked from koniifer/ableos
ableos-framebuffer/hbasm/assets/add.hbasm

12 lines
122 B
Plaintext
Raw Normal View History

2023-09-12 01:38:32 -05:00
-- 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