diff options
| author | luckytyphlosion <alan.rj.huang@gmail.com> | 2015-06-20 12:33:36 -0400 |
|---|---|---|
| committer | luckytyphlosion <alan.rj.huang@gmail.com> | 2015-06-20 12:33:36 -0400 |
| commit | 9847dc5686dc4aa89bd1ad1c17cce7385b99e15a (patch) | |
| tree | 27c3ac58161bf312d17ad6f793d5075144c07de3 /home | |
| parent | Merge remote-tracking branch 'origin/master' (diff) | |
| download | pokeyellow-9847dc5686dc4aa89bd1ad1c17cce7385b99e15a.tar.gz pokeyellow-9847dc5686dc4aa89bd1ad1c17cce7385b99e15a.tar.xz pokeyellow-9847dc5686dc4aa89bd1ad1c17cce7385b99e15a.zip | |
Complete documentation of home.asm for pokeyellow.
Note: Some functions may not exist, as they aren't documented.
Diffstat (limited to 'home')
| -rw-r--r-- | home/predef.asm | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/home/predef.asm b/home/predef.asm index 8efe3000..07188019 100644 --- a/home/predef.asm +++ b/home/predef.asm @@ -1,4 +1,4 @@ -Predef:: +Predef:: ; 3eb4 (0:3eb4) ; Call predefined function a. ; To preserve other registers, have the ; destination call GetPredefRegisters. @@ -19,8 +19,7 @@ Predef:: call GetPredefPointer ld a, [wPredefBank] - ld [H_LOADEDROMBANK], a - ld [$2000], a + call BankswitchCommon ld de, .done push de @@ -28,11 +27,10 @@ Predef:: .done pop af - ld [H_LOADEDROMBANK], a - ld [$2000], a + call BankswitchCommon ret -GetPredefRegisters:: +GetPredefRegisters:: ; 3ed7 (0:3ed7) ; Restore the contents of register pairs ; when GetPredefPointer was called. ld a, [wPredefRegisters + 0] |
