Created
June 3, 2014 08:48
-
-
Save rgiot/e3022b817ea8bb39afcb to your computer and use it in GitHub Desktop.
Leave the part
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
;; | |
; Template code to use in order to jump to the demosystem at the | |
; end of your part. | |
; | |
; LIMITATIONS: | |
; - code must placed in main memory | |
; - code accessible in a memory zone different than 0x4000-0x7ffff | |
; | |
; We cut the interruption to avoid issues with the stack and interruptions | |
di | |
; Reset your interrupted code if any | |
ld hl, 0xc9fb | |
ld (0x38), hl | |
; We select the right memory configuration in order to | |
; access to the demosystem | |
ld bc, 0x7fc1 | |
out (c), c | |
; We select the Id of the menu | |
xor a | |
; We jump to the demo system which loads the menu | |
jp 0xe000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment