mirror of
https://github.com/thornAvery/kep-hack.git
synced 2025-09-16 18:30:50 +12:00

Short tests showed positive results. Revert if it fucks up anything. PureRGB enhances Gen 1 AI in various ways, fixing notorious glitches and making it not do completely stupid things. I would use shin pokered's, but it may be too difficult for unfamiliar players, and has a bunch of outdated markers I'd have to spruce up. Relevant changes: - Burn effect calls have been replaced with Fire Blast's effect, replicating the burn spread use-case of Fire Blast - Teleport references removed because pureRGB uses a unique version - Any straggler references to effects not used in pureRGB - Mist properly referred to as we only have one move that provides stat drop immunity. Updated the sprite gallery too!!
90 lines
1.5 KiB
NASM
90 lines
1.5 KiB
NASM
; rst vectors (unused)
|
|
|
|
SECTION "rst0", ROM0[$0000]
|
|
rst $38
|
|
|
|
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 - @
|