Created
May 2, 2018 21:37
-
-
Save pixel-stuck/721b092686772150ab8e23c9f1e80da7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.n64 ; Set the architecture to N64 | |
.open "00200f70.sta",0x807C0000 | |
start: | |
lui $v0, 0xF82E | |
ori $v0, $v0, 0xD0AE | |
lui $t0, 0xA430 | |
ori $t0, $t0, 0x0014 | |
lw $t1, 0($t0) | |
nop | |
bgez $zero, usermode_code | |
.org 0x807C0068 | |
.word 0x807C006C | |
lui $t1, 0x9FC0 | |
ori $t1, $t1, 0xF348 | |
lw $t0, 0($t1) ; read allowed SKC bitmask | |
nop | |
ori $t0, $t0, 0x7FF ; set all SKCs allowed | |
sw $t0, 0($t1) ; store back | |
jr $ra ; jump back to SKC handler | |
nop | |
usermode_code: | |
infloop: | |
bgez $zero, infloop | |
nop | |
.org 0x807C7FFC | |
.word 0 | |
.close | |
; make sure to leave an empty line at the end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment