tmcpu_isa_assembler/hello_world.asm

15 lines
296 B
NASM
Raw Normal View History

2023-05-08 16:19:10 +00:00
ldi ra, 0x01
ldi rb, 0x02
add rc, ra rb ; should be 3
out 0x02, rc ; displays 03 on the numeric display
ldi ra, 0b10100000 ; load the num for red and blue into ra
mrm ra, 0x001
mrm ra, 0x003
mrm ra, 0x01e
mrm ra, 0x02e
mrm ra, 0x02f
mrm ra, 0x030
mrm ra, 0x031
mrm ra, 0x023
; Draw a smiley face