Skip to content

Instantly share code, notes, and snippets.

@itsfarseen
Created January 23, 2019 08:18
Show Gist options
  • Save itsfarseen/c40b5aa77e7d16cbfda931df001ee684 to your computer and use it in GitHub Desktop.
Save itsfarseen/c40b5aa77e7d16cbfda931df001ee684 to your computer and use it in GitHub Desktop.
.text
# S0 = 0xb8000
lui $s0, 0xb;
ori $s0, $s0, 0x8000
# S1 = 3937, ASCII codepoint: 'a', FG: white, BG: black, Blink: 0
ori $s1, $zero, 3937
# RAM[0xb8000] = 3937
sw $s1, 0($s0)
# infinite loop
loop:
nop
j loop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment