Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding bank14, good chunk of text transcribed and labelled in bank0d, renaming farcall to callab, and much more #112

Merged
merged 13 commits into from
Jan 16, 2025
Merged
Prev Previous commit
Next Next commit
Identify more stuff
  • Loading branch information
vulcandth committed Jan 12, 2025
commit 939affd505acea788ca22e42e860a5a3b85a7e62
2 changes: 2 additions & 0 deletions constants/gfx_constants.asm
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,5 @@ DEF DOUBLESPRITEBUFFERSIZE EQU 2 * SPRITEBUFFERSIZE
const SPRITEOAMSTRUCT_ATTRIBUTES ; 3
DEF SPRITEOAMSTRUCT_LENGTH EQU const_value
DEF NUM_SPRITE_OAM_STRUCTS EQU 40 ; see wShadowOAM

DEF OAM_YCOORD_HIDDEN EQU 160 ; hides an OAM offscreen
30 changes: 30 additions & 0 deletions constants/pokemon_constants.asm
Original file line number Diff line number Diff line change
Expand Up @@ -192,3 +192,33 @@
const MON_BELLSPROUT ; bc
const MON_WEEPINBELL ; bd
const MON_VICTREEBEL ; be

; Unown forms
const_def 1
const UNOWN_A ; 1
const UNOWN_B ; 2
const UNOWN_C ; 3
const UNOWN_D ; 4
const UNOWN_E ; 5
const UNOWN_F ; 6
const UNOWN_G ; 7
const UNOWN_H ; 8
const UNOWN_I ; 9
const UNOWN_J ; 10
const UNOWN_K ; 11
const UNOWN_L ; 12
const UNOWN_M ; 13
const UNOWN_N ; 14
const UNOWN_O ; 15
const UNOWN_P ; 16
const UNOWN_Q ; 17
const UNOWN_R ; 18
const UNOWN_S ; 19
const UNOWN_T ; 20
const UNOWN_U ; 21
const UNOWN_V ; 22
const UNOWN_W ; 23
const UNOWN_X ; 24
const UNOWN_Y ; 25
const UNOWN_Z ; 26
DEF NUM_UNOWN EQU const_value - 1 ; 26
4 changes: 2 additions & 2 deletions data/predef_pointers.inc
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ GiveItemPredef::
add_predef Function40ac7
add_predef Function40000
add_predef Function40b5c ; 30
add_predef Function50000
add_predef CopyMonToTempMon
add_predef Function50bfe
add_predef Function50bcd
add_predef Function50b92
Expand All @@ -77,7 +77,7 @@ GiveItemPredef::
add_predef GetTypeName
add_predef PrintMoveType
add_predef PrintMonTypes ; 40
add_predef Function50ed9
add_predef GetUnownLetter
add_predef Functioncb6ff
add_predef Functioncb710
add_predef Functioncb733
Expand Down
2 changes: 1 addition & 1 deletion engine/debug/debug_menu.asm
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ DebugMenuOptionSubGames::
jp DebugMenu

DebugMenuOptionMonsterTest::
ld hl, wPokedexOwned
ld hl, wPokedexCaught
ld de, wPokedexSeen
ld b, NUM_POKEMON / 8
ld a, %11111111
Expand Down
2 changes: 1 addition & 1 deletion engine/debug/field/item_test.inc
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ FieldDebug_ItemTest:
push hl
callfar _CheckTossableItem
pop hl
ld a, [wItemAttributeParamBuffer]
ld a, [wItemAttributeValue]
and a
jr nz, .not_tossable
call .tossable
Expand Down
4 changes: 2 additions & 2 deletions engine/debug/field/pokemart_menu.inc
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ DebugMart_Sell:

.DoBagFunctions:
callfar CheckItemMenu
ld a, [wItemAttributeParamBuffer]
ld a, [wItemAttributeValue]
ld hl, .BagJumptable
call CallJumptable
ret
Expand Down Expand Up @@ -230,7 +230,7 @@ DebugMart_Sell:

.CheckSellableItem:
callfar _CheckTossableItem
ld a, [wItemAttributeParamBuffer]
ld a, [wItemAttributeValue]
and a
jr nz, .not_sellable
jp .ItemQuantityPrompt
Expand Down
2 changes: 1 addition & 1 deletion engine/debug/field/unused_flag_menu.inc
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ ENDM
Functionfd91e: ; unused?
call .asm_fd930
ld a, [wNumSetBits]
ld [wMonDexIndex], a
ld [wCurPartySpecies], a
callfar Pokepic
ret

Expand Down
2 changes: 1 addition & 1 deletion engine/debug/field/vram_viewer.inc
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ FieldDebug_DoVRAMViewer:
.LoadPokemon:
ld a, 3
ld [wce37], a
ld [wMonDexIndex], a
ld [wCurPartySpecies], a
call GetBaseData
call LoadMonFrontSprite
ret
Expand Down
10 changes: 5 additions & 5 deletions engine/dumps/bank01.asm
Original file line number Diff line number Diff line change
Expand Up @@ -3020,7 +3020,7 @@ LoadFonts_NoOAMUpdate:

Function6445:
call BackUpTilesToBuffer
ld a, [wWhichPokemon]
ld a, [wCurPartyMon]
ld hl, wPartyMonNicknames
call GetNick
ld hl, wStringBuffer1
Expand All @@ -3030,7 +3030,7 @@ Function6445:
.sub_645d
ld hl, wPartyMon1Moves
ld bc, $0030
ld a, [wWhichPokemon]
ld a, [wCurPartyMon]
call AddNTimes
ld d, h
ld e, l
Expand Down Expand Up @@ -3073,7 +3073,7 @@ Function6445:
ld a, [wBattleMode]
and a
jp z, .sub_64eb
ld a, [wWhichPokemon]
ld a, [wCurPartyMon]
ld b, a
ld a, [wCurBattleMon]
cp b
Expand Down Expand Up @@ -3359,7 +3359,7 @@ Function6713:
ld b, $04
ld c, $0a
call z, ClearBox
ld a, [wMonDexIndex]
ld a, [wCurPartySpecies]
ld [wce37], a
call GetPokemonName
ld a, [wDebugFlags]
Expand Down Expand Up @@ -3428,7 +3428,7 @@ Function679d:
jr z, .sub_67d3
ld hl, wPartyMonNicknames
ld bc, $0006
ld a, [wWhichPokemon]
ld a, [wCurPartyMon]
call AddNTimes
ld e, l
ld d, h
Expand Down
Loading