diff options
| author | ISSOtm <eldredhabert0@gmail.com> | 2018-05-29 16:43:04 +0200 |
|---|---|---|
| committer | ISSOtm <eldredhabert0@gmail.com> | 2018-05-29 16:43:04 +0200 |
| commit | e6c75f2d8487311914abb327a67e183a188df3d7 (patch) | |
| tree | 1d44142b3879d1736f4c87c1f2e9b6817fd1b2a3 /home.asm | |
| parent | cc4a3e7fe52b043900d7b2f9789cfe3cf1154f77 (diff) | |
Fix disassembling mistakes
Diffstat (limited to 'home.asm')
| -rw-r--r-- | home.asm | 64 |
1 files changed, 48 insertions, 16 deletions
@@ -1,22 +1,54 @@ INCLUDE "constants.asm" -SECTION "Entry point", ROM0[$100] - nop - jp Init - -SECTION "Global check value", ROM0[$14E] -; The ROM has an incorrect global check, so set it here -; It is not corrected by RGBFIX - db $21, $C6 - +INCLUDE "home/rst.asm" +INCLUDE "home/interrupts.asm" +INCLUDE "home/init.asm" +INCLUDE "home/vblank.asm" +INCLUDE "home/lcd.asm" +INCLUDE "home/serial.asm" -SECTION "VBlank handler", ROM0[$150] - ; TODO +SECTION "Empty function", ROM0[$2F97] - -SECTION "Init", ROM0[$52F] - -Init: - di +InexplicablyEmptyFunction:: ; 2f97 +REPT 16 + nop +ENDR + ret + +INCLUDE "home/farcall.asm" +INCLUDE "home/predef.asm" +INCLUDE "home/sram.asm" +INCLUDE "home/bankswitch.asm" +INCLUDE "home/clear_sprites.asm" +INCLUDE "home/copy.asm" +INCLUDE "home/copy_tilemap.asm" +INCLUDE "home/audio.asm" +INCLUDE "home/oam_dma.asm" + + +; TODO: +; 1. Figure out what these are. Might be related to RTC, like ClearRTCStatus and the ilk. +; 2. Give them proper names. +; 3. Move them to their own file(s). + +SECTION "Unknown functions", ROM0[$1FF4] + +_1FF4:: ; 1ff4 + ld a, BANK(s0_a600) + call OpenSRAM + ld hl, s0_a600 ; TODO: label this. + ld bc, 7 xor a + call ByteFill + call CloseSRAM + ret + +_2007:: ; 2007 + ld a, BANK(s0_a600) + call OpenSRAM + ld a, [s0_a600] + and 8 + ld [wce5f], a + call CloseSRAM + ret |
