diff options
Diffstat (limited to 'src/home/start.asm')
-rw-r--r-- | src/home/start.asm | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/home/start.asm b/src/home/start.asm new file mode 100644 index 0000000..6a02660 --- /dev/null +++ b/src/home/start.asm @@ -0,0 +1,32 @@ +SECTION "start", ROM0 +Start: + di + ld sp, $fffe + push af + xor a + ldh [rIF], a + ldh [rIE], a + call ZeroRAM + ld a, $1 + call BankswitchROM + xor a + call BankswitchSRAM + call BankswitchVRAM0 + call DisableLCD + pop af + ld [wInitialA], a + call DetectConsole + ld a, $20 + ld [wTileMapFill], a + call SetupVRAM + call SetupRegisters + call SetupPalettes + call SetupSound + call SetupTimer + call ResetSerial + call CopyDMAFunction + call ValidateSRAM + ld a, BANK(GameLoop) + call BankswitchROM + ld sp, $e000 + jp GameLoop |