tmcpu_isa_assembler/hello_world.asm

15 lines
296 B
NASM

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