tmcpu_isa_assembler/smiley.asm

11 lines
329 B
NASM
Raw Normal View History

2023-05-08 21:59:54 +00:00
ldi ra, 0b10100000 ; load the num for red and blue into ra
mrm 0x001, ra
mrm 0x003, ra
mrm 0x01e, ra
mrm 0x02e, ra
mrm 0x02f, ra
mrm 0x030, ra
mrm 0x031, ra
mrm 0x023, ra
; Draw a teal smiley face in the top left corner of the framebuffer
; See the spreadsheet (Memory Mapped Framebuffer) for the chart I used to get these values