aboutsummaryrefslogtreecommitdiff
path: root/examples/arithmetic.asm
blob: ea2d317a4635bbb11da7b9d828b4ed7f99727f17 (plain)
1
2
3
4
5
6
7
8
9
; move imm 10 to register A
mov a, 10
; move imm 5 to register B
mov b, 5
; Add a & B
add a, 2
sub a, 2
; Halt
hlt