Created
June 28, 2019 20:38
-
-
Save reidrac/355dcec7d807b601e5315dc481b2bfc5 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
di | |
; disable the firmware | |
im 1 | |
ld hl, #0x38 | |
ld (hl), #0xfb | |
inc hl | |
ld (hl), #0xc9 | |
; put the stack as high as we can | |
ld sp, #0xc000 | |
ei | |
; disable upper/lower roms | |
ld bc, #0x7f8c | |
out (c), c | |
; your code here |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment