kep-hack/home/header.asm
Martha Schilling 2c02483f01 Small polishing of the previous commit + Item Sorting
- Fixes a few bugs from the last commit, namely:
     - The guy who gives you the Pocket Lapras having bugged text
     - Being able to use it where you shouldn't (Cycling Road, Seafoam before the boulder puzzle)
     - Pocket Lapras not having an item description

- As well as this, automatic item sorting has been added. Just press Start in the bag menu and all your items will get assorted into a convenient list.

- Changed a few item descriptions since some of them didn't terminate properly

- Freed up some space in the Home bank
2024-05-14 21:17:36 +01:00

91 lines
1.5 KiB
NASM

; rst vectors (unused)
SECTION "rst0", ROM0[$0000]
_Bankswitch::
jp Bankswitch
ds $08 - @, 0 ; unused
SECTION "rst8", ROM0[$0008]
rst $38
ds $10 - @, 0 ; unused
SECTION "rst10", ROM0[$0010]
rst $38
ds $18 - @, 0 ; unused
SECTION "rst18", ROM0[$0018]
rst $38
ds $20 - @, 0 ; unused
SECTION "rst20", ROM0[$0020]
_CopyData::
jp CopyData
; PureRGBnote: MOVED: 5 extra bytes of space left here, may as well move something here that puts the space to some use
PokemonFaintedText::
text_far _PokemonFaintedText
text_end
SECTION "rst28", ROM0[$0028]
_PrintText::
jp PrintText
; PureRGBnote: MOVED: 5 extra bytes of space left here, may as well move something here that puts the space to some use
PlayerBlackedOutText::
text_far _PlayerBlackedOutText
text_end
SECTION "rst30", ROM0[$0030]
rst $38
ds $38 - @, 0 ; unused
SECTION "rst38", ROM0[$0038]
rst $38
ds $40 - @, 0 ; unused
; Game Boy hardware interrupts
SECTION "vblank", ROM0[$0040]
jp VBlank
ds $48 - @, 0 ; unused
SECTION "lcd", ROM0[$0048]
rst $38
ds $50 - @, 0 ; unused
SECTION "timer", ROM0[$0050]
jp Timer
ds $58 - @, 0 ; unused
SECTION "serial", ROM0[$0058]
jp Serial
ds $60 - @, 0 ; unused
SECTION "joypad", ROM0[$0060]
reti
SECTION "Header", ROM0[$0100]
Start::
; Nintendo requires all Game Boy ROMs to begin with a nop ($00) and a jp ($C3)
; to the starting address.
nop
jp _Start
; The Game Boy cartridge header data is patched over by rgbfix.
; This makes sure it doesn't get used for anything else.
ds $0150 - @