tmcpu_isa_assembler/simple_add.asm

4 lines
138 B
NASM
Raw Permalink Normal View History

2023-05-08 21:59:54 +00:00
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