tmcpu_isa_assembler/simple_add.asm

4 lines
138 B
NASM

ldi ra, 0x01 ; set ra = 0x01
ldi rb, 0x02 ; set rb = 0x02
add rc, ra rb ; set rc = ra + rb
out 0x02, rc ; send rc to the numerical display