Merge branch 'main' into kara
This commit is contained in:
@@ -155,7 +155,7 @@ JML.l AllowStartFromExitReturn
|
|||||||
STZ.b SubSubModule
|
STZ.b SubSubModule
|
||||||
STZ.w DeathReloadFlag
|
STZ.w DeathReloadFlag
|
||||||
STZ.w RespawnFlag
|
STZ.w RespawnFlag
|
||||||
INC.w UpdateHUD
|
INC.w UpdateHUDFlag
|
||||||
|
|
||||||
JSL Equipment_SearchForEquippedItemLong
|
JSL Equipment_SearchForEquippedItemLong
|
||||||
JSL HUD_RebuildLong2
|
JSL HUD_RebuildLong2
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ JML.l ReturnFromOnDrawHud
|
|||||||
OnDungeonEntrance:
|
OnDungeonEntrance:
|
||||||
STA.l PegColor ; thing we wrote over
|
STA.l PegColor ; thing we wrote over
|
||||||
JSL MaybeFlagDungeonTotalsEntrance
|
JSL MaybeFlagDungeonTotalsEntrance
|
||||||
INC.w UpdateHUD
|
INC.w UpdateHUDFlag
|
||||||
RTL
|
RTL
|
||||||
;--------------------------------------------------------------------------------
|
;--------------------------------------------------------------------------------
|
||||||
OnDungeonBossExit:
|
OnDungeonBossExit:
|
||||||
@@ -46,7 +46,7 @@ OnDungeonExit:
|
|||||||
STA.w DungeonID : STZ.w Map16ChangeIndex ; thing we wrote over
|
STA.w DungeonID : STZ.w Map16ChangeIndex ; thing we wrote over
|
||||||
|
|
||||||
PHA : PHP
|
PHA : PHP
|
||||||
INC.w UpdateHUD
|
INC.w UpdateHUDFlag
|
||||||
JSL.l HUD_RebuildLong
|
JSL.l HUD_RebuildLong
|
||||||
JSL.l FloodGateResetInner
|
JSL.l FloodGateResetInner
|
||||||
JSL.l SetSilverBowMode
|
JSL.l SetSilverBowMode
|
||||||
@@ -226,7 +226,7 @@ OnOWTransition:
|
|||||||
PHP
|
PHP
|
||||||
SEP #$20 ; set 8-bit accumulator
|
SEP #$20 ; set 8-bit accumulator
|
||||||
LDA.b #$FF : STA.l RNGLockIn ; clear lock-in
|
LDA.b #$FF : STA.l RNGLockIn ; clear lock-in
|
||||||
INC.w UpdateHUD
|
INC.w UpdateHUDFlag
|
||||||
PLP
|
PLP
|
||||||
RTL
|
RTL
|
||||||
;--------------------------------------------------------------------------------
|
;--------------------------------------------------------------------------------
|
||||||
|
|||||||
13
hooks.asm
13
hooks.asm
@@ -1407,22 +1407,29 @@ org $8DFB29 : BRA UpdateHUDBuffer_update_item_check_arrows
|
|||||||
;--------------------------------------------------------------------------------
|
;--------------------------------------------------------------------------------
|
||||||
org $8DF1AB : JSR.w RebuildHUD_update
|
org $8DF1AB : JSR.w RebuildHUD_update
|
||||||
org $8DDFC8 : JSR.w RebuildHUD_update
|
org $8DDFC8 : JSR.w RebuildHUD_update
|
||||||
org $8DDB88 ; Don't rebuild HUD twice on icon refresh
|
org $8DDB85 : JSR.w RefreshIcon_UpdateHUD : BRA + : NOP : +
|
||||||
NOP #3 ; Not sure why this is here
|
|
||||||
;--------------------------------------------------------------------------------
|
;--------------------------------------------------------------------------------
|
||||||
org $87A205 : JSL.l RebuildHUD_update_long
|
org $87A205 : JSL.l RebuildHUD_update_long
|
||||||
org $8AEF62 : JSL.l RebuildHUD_update_long
|
|
||||||
org $87A1A4 : JSL.l RebuildHUD_update_long
|
org $87A1A4 : JSL.l RebuildHUD_update_long
|
||||||
org $87A1CF : JSL.l RebuildHUD_update_long
|
org $87A1CF : JSL.l RebuildHUD_update_long
|
||||||
|
org $87A21D : JSL.l RebuildHUD_update_long
|
||||||
org $87A235 : JSL.l RebuildHUD_update_long
|
org $87A235 : JSL.l RebuildHUD_update_long
|
||||||
|
org $8AEF62 : JSL.l RebuildHUD_update_long
|
||||||
;--------------------------------------------------------------------------------
|
;--------------------------------------------------------------------------------
|
||||||
org $8DFFE1
|
org $8DFFE1
|
||||||
RebuildHUD_update_long:
|
RebuildHUD_update_long:
|
||||||
JSR.w RebuildHUD_update : RTL
|
JSR.w RebuildHUD_update : RTL
|
||||||
|
|
||||||
|
RefreshIcon_UpdateHUD:
|
||||||
|
INC.w UpdateHUDFlag
|
||||||
|
JSR.w RebuildHUD
|
||||||
|
JSR.w UpdateEquippedItem
|
||||||
|
RTS
|
||||||
warnpc $8E8000
|
warnpc $8E8000
|
||||||
;--------------------------------------------------------------------------------
|
;--------------------------------------------------------------------------------
|
||||||
org $8DEDE8
|
org $8DEDE8
|
||||||
JSL.l DrawHeartPiecesMenu : BRA DrawEquipment_in_a_dungeon
|
JSL.l DrawHeartPiecesMenu : BRA DrawEquipment_in_a_dungeon
|
||||||
|
;--------------------------------------------------------------------------------
|
||||||
|
|
||||||
;================================================================================
|
;================================================================================
|
||||||
; 300 Rupee NPC
|
; 300 Rupee NPC
|
||||||
|
|||||||
@@ -193,15 +193,15 @@ AddInventory:
|
|||||||
JSR.w IncrementByOne
|
JSR.w IncrementByOne
|
||||||
JSR.w StampItem
|
JSR.w StampItem
|
||||||
JSR.w IncrementYAItems
|
JSR.w IncrementYAItems
|
||||||
REP #$20
|
REP #$30
|
||||||
LDA.l TotalItemCounter : INC : TAY
|
LDA.l TotalItemCounter : INC : TAY
|
||||||
LDA.l BootsEquipment : BNE +
|
LDA.l BootsEquipment : AND.w #$00FF : BNE +
|
||||||
TYA : STA.l PreBootsLocations
|
TYA : STA.l PreBootsLocations
|
||||||
+
|
+
|
||||||
LDA.l MirrorEquipment : BNE +
|
LDA.l MirrorEquipment : AND.w #$00FF : BNE +
|
||||||
TYA : STA.l PreMirrorLocations
|
TYA : STA.l PreMirrorLocations
|
||||||
+
|
+
|
||||||
LDA.l FluteEquipment : BNE +
|
LDA.l FluteEquipment : AND.w #$00FF : BNE +
|
||||||
TYA : STA.l PreFluteLocations
|
TYA : STA.l PreFluteLocations
|
||||||
+
|
+
|
||||||
TYA
|
TYA
|
||||||
@@ -409,7 +409,7 @@ Link_ReceiveItem_HUDRefresh:
|
|||||||
+
|
+
|
||||||
|
|
||||||
JSL.l HUD_RefreshIconLong ; thing we wrote over
|
JSL.l HUD_RefreshIconLong ; thing we wrote over
|
||||||
INC.w UpdateHUD
|
INC.w UpdateHUDFlag
|
||||||
JSL.l PostItemGet
|
JSL.l PostItemGet
|
||||||
RTL
|
RTL
|
||||||
;--------------------------------------------------------------------------------
|
;--------------------------------------------------------------------------------
|
||||||
@@ -424,7 +424,7 @@ HandleBombAbsorbtion:
|
|||||||
LDA.b #$04 : STA.w ItemCursor ; set selected item to bombs
|
LDA.b #$04 : STA.w ItemCursor ; set selected item to bombs
|
||||||
LDA.b #$01 : STA.w CurrentYItem ; set selected item to bombs
|
LDA.b #$01 : STA.w CurrentYItem ; set selected item to bombs
|
||||||
JSL.l HUD_RebuildLong
|
JSL.l HUD_RebuildLong
|
||||||
INC.w UpdateHUD
|
INC.w UpdateHUDFlag
|
||||||
+
|
+
|
||||||
RTL
|
RTL
|
||||||
;--------------------------------------------------------------------------------
|
;--------------------------------------------------------------------------------
|
||||||
|
|||||||
10
newhud.asm
10
newhud.asm
@@ -72,7 +72,7 @@ NewHUD_DrawArrows:
|
|||||||
;================================================================================
|
;================================================================================
|
||||||
NewHUD_DrawGoal:
|
NewHUD_DrawGoal:
|
||||||
REP #$20
|
REP #$20
|
||||||
LDA.w UpdateHUD : BEQ .no_goal
|
LDA.w UpdateHUDFlag : BEQ .no_goal
|
||||||
LDA.l GoalItemRequirement : BEQ .no_goal
|
LDA.l GoalItemRequirement : BEQ .no_goal
|
||||||
|
|
||||||
LDA.l GoalItemIcon : STA.w HUDGoalIndicator
|
LDA.l GoalItemIcon : STA.w HUDGoalIndicator
|
||||||
@@ -129,7 +129,7 @@ NewHUD_DrawKeys:
|
|||||||
|
|
||||||
;================================================================================
|
;================================================================================
|
||||||
NewHUD_DrawDungeonCounters:
|
NewHUD_DrawDungeonCounters:
|
||||||
LDA.w UpdateHUD : BEQ NewHUD_DrawPrizeIcon
|
LDA.w UpdateHUDFlag : BEQ NewHUD_DrawPrizeIcon
|
||||||
LDA.l CompassMode : ORA.l MapHUDMode : BIT.b #$03 : BEQ NewHUD_DrawPrizeIcon
|
LDA.l CompassMode : ORA.l MapHUDMode : BIT.b #$03 : BEQ NewHUD_DrawPrizeIcon
|
||||||
LDX.b IndoorsFlag : BNE +
|
LDX.b IndoorsFlag : BNE +
|
||||||
JMP.w NewHUD_DrawMagicMeter
|
JMP.w NewHUD_DrawMagicMeter
|
||||||
@@ -154,7 +154,7 @@ NewHUD_DrawPrizeIcon:
|
|||||||
LDA.b GameMode
|
LDA.b GameMode
|
||||||
CMP.b #$12 : BEQ .no_prize
|
CMP.b #$12 : BEQ .no_prize
|
||||||
CMP.b #$0E : BEQ +
|
CMP.b #$0E : BEQ +
|
||||||
LDA.w UpdateHUD : BEQ NewHUD_DrawItemCounter
|
LDA.w UpdateHUDFlag : BEQ NewHUD_DrawItemCounter
|
||||||
+
|
+
|
||||||
LDA.w DungeonID
|
LDA.w DungeonID
|
||||||
CMP.b #$1A : BCS .no_prize
|
CMP.b #$1A : BCS .no_prize
|
||||||
@@ -204,7 +204,7 @@ NewHUD_DrawPrizeIcon:
|
|||||||
;================================================================================
|
;================================================================================
|
||||||
NewHUD_DrawItemCounter:
|
NewHUD_DrawItemCounter:
|
||||||
REP #$20
|
REP #$20
|
||||||
LDA.w UpdateHUD : BEQ NewHUD_DrawMagicMeter
|
LDA.w UpdateHUDFlag : BEQ NewHUD_DrawMagicMeter
|
||||||
LDA.l ItemCounterHUD : AND.w #$00FF : BEQ NewHUD_DrawMagicMeter
|
LDA.l ItemCounterHUD : AND.w #$00FF : BEQ NewHUD_DrawMagicMeter
|
||||||
LDA.w #!SlashTile : STA.w HUDGoalIndicator+$08
|
LDA.w #!SlashTile : STA.w HUDGoalIndicator+$08
|
||||||
LDA.l TotalItemCount : CMP.w #1000 : BCS .item_four_digits
|
LDA.l TotalItemCount : CMP.w #1000 : BCS .item_four_digits
|
||||||
@@ -270,7 +270,7 @@ NewHUD_DrawMagicMeter:
|
|||||||
|
|
||||||
;================================================================================
|
;================================================================================
|
||||||
NewHUD_DoneDrawing:
|
NewHUD_DoneDrawing:
|
||||||
STZ.w UpdateHUD
|
STZ.w UpdateHUDFlag
|
||||||
PLB
|
PLB
|
||||||
RTL
|
RTL
|
||||||
|
|
||||||
|
|||||||
@@ -276,8 +276,8 @@ ItemBehavior:
|
|||||||
RTS
|
RTS
|
||||||
|
|
||||||
.silversbow
|
.silversbow
|
||||||
LDA.l SilverArrowsUseRestriction : BNE +
|
|
||||||
LDA.l BowTracking : ORA.b #$40 : STA.l BowTracking
|
LDA.l BowTracking : ORA.b #$40 : STA.l BowTracking
|
||||||
|
LDA.l SilverArrowsUseRestriction : BNE +
|
||||||
LDA.b #03 : STA.l BowEquipment ; set bow to silver
|
LDA.b #03 : STA.l BowEquipment ; set bow to silver
|
||||||
+
|
+
|
||||||
LDA.b #$01 : STA.l BowEquipment
|
LDA.b #$01 : STA.l BowEquipment
|
||||||
@@ -338,8 +338,8 @@ ItemBehavior:
|
|||||||
RTS
|
RTS
|
||||||
|
|
||||||
.silver_bow
|
.silver_bow
|
||||||
LDA.l SilverArrowsUseRestriction : BNE .noequip
|
|
||||||
LDA.b #$40 : ORA.l BowTracking : STA.l BowTracking
|
LDA.b #$40 : ORA.l BowTracking : STA.l BowTracking
|
||||||
|
LDA.l SilverArrowsUseRestriction : BNE .noequip
|
||||||
LDA.l SilverArrowsAutoEquip : AND.b #$01 : BEQ .noequip
|
LDA.l SilverArrowsAutoEquip : AND.b #$01 : BEQ .noequip
|
||||||
LDA.l CurrentArrows : BNE + ; check arrows
|
LDA.l CurrentArrows : BNE + ; check arrows
|
||||||
LDA.b #$03 : BRA ++ ; bow without arrow
|
LDA.b #$03 : BRA ++ ; bow without arrow
|
||||||
@@ -414,8 +414,8 @@ ItemBehavior:
|
|||||||
RTS
|
RTS
|
||||||
|
|
||||||
.silver_arrows
|
.silver_arrows
|
||||||
LDA.l SilverArrowsUseRestriction : BNE ++
|
|
||||||
LDA.l BowTracking : ORA.b #$40 : STA.l BowTracking
|
LDA.l BowTracking : ORA.b #$40 : STA.l BowTracking
|
||||||
|
LDA.l SilverArrowsUseRestriction : BNE ++
|
||||||
LDA.l SilverArrowsAutoEquip : AND.b #$01 : BEQ ++
|
LDA.l SilverArrowsAutoEquip : AND.b #$01 : BEQ ++
|
||||||
LDA.l BowEquipment : BEQ ++ : CMP.b #$03 : !BGE +
|
LDA.l BowEquipment : BEQ ++ : CMP.b #$03 : !BGE +
|
||||||
!ADD.b #$02 : STA.l BowEquipment ; switch to silver bow
|
!ADD.b #$02 : STA.l BowEquipment ; switch to silver bow
|
||||||
@@ -429,7 +429,7 @@ ItemBehavior:
|
|||||||
.single_arrow
|
.single_arrow
|
||||||
LDA.l ArrowMode : BEQ +
|
LDA.l ArrowMode : BEQ +
|
||||||
LDA.l CurrentArrows : INC : STA.l CurrentArrows ; Should be sole write to this address
|
LDA.l CurrentArrows : INC : STA.l CurrentArrows ; Should be sole write to this address
|
||||||
INC.w UpdateHUD ; in retro/rupee bow mode.
|
INC.w UpdateHUDFlag ; in retro/rupee bow mode.
|
||||||
+
|
+
|
||||||
RTS
|
RTS
|
||||||
|
|
||||||
|
|||||||
@@ -51,8 +51,8 @@ ItemCheck_TreeKid:
|
|||||||
RTL
|
RTL
|
||||||
|
|
||||||
ItemCheck_TreeKid2:
|
ItemCheck_TreeKid2:
|
||||||
LDA.l NpcFlags : AND.b #$08 : CMP.b #$08
|
LDA.l NpcFlags : AND.b #$08
|
||||||
TDC ; ?? TODO
|
LSR #2
|
||||||
RTL
|
RTL
|
||||||
|
|
||||||
ItemCheck_TreeKid3:
|
ItemCheck_TreeKid3:
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ RTL
|
|||||||
;================================================================================
|
;================================================================================
|
||||||
HUDRebuildIndoorHole:
|
HUDRebuildIndoorHole:
|
||||||
PHA
|
PHA
|
||||||
INC.w UpdateHUD
|
INC.w UpdateHUDFlag
|
||||||
LDA.l GenericKeys : BEQ .normal
|
LDA.l GenericKeys : BEQ .normal
|
||||||
.generic
|
.generic
|
||||||
PLA
|
PLA
|
||||||
@@ -30,7 +30,7 @@ RTL
|
|||||||
RTL
|
RTL
|
||||||
;================================================================================
|
;================================================================================
|
||||||
HUDRebuildIndoor:
|
HUDRebuildIndoor:
|
||||||
INC.w UpdateHUD
|
INC.w UpdateHUDFlag
|
||||||
LDA.l GenericKeys : BEQ .normal
|
LDA.l GenericKeys : BEQ .normal
|
||||||
.generic
|
.generic
|
||||||
LDA.b #$00 : STA.l RoomDarkness
|
LDA.b #$00 : STA.l RoomDarkness
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ QuickSwap:
|
|||||||
|
|
||||||
LDA.l QuickSwapFlag : BEQ .done
|
LDA.l QuickSwapFlag : BEQ .done
|
||||||
LDA.w ItemCursor : BEQ .done ; Skip everything if we don't have any items
|
LDA.w ItemCursor : BEQ .done ; Skip everything if we don't have any items
|
||||||
|
INC.w UpdateHUDFlag
|
||||||
LDY.b #$14
|
LDY.b #$14
|
||||||
PHX
|
PHX
|
||||||
XBA ; restore the stashed value
|
XBA ; restore the stashed value
|
||||||
|
|||||||
2
ram.asm
2
ram.asm
@@ -388,7 +388,7 @@ DelayTimer = $7E1CE9 ;
|
|||||||
;
|
;
|
||||||
TextID = $7E1CF0 ; Message ID and page. Word length.
|
TextID = $7E1CF0 ; Message ID and page. Word length.
|
||||||
;
|
;
|
||||||
UpdateHUD = $7E1E03 ; Flag used to mark HUD updates and avoid heavy code segments.
|
UpdateHUDFlag = $7E1E03 ; Flag used to mark HUD updates and avoid heavy code segments.
|
||||||
;
|
;
|
||||||
ToastBuffer = $7E1E0E ; Multiworld buffer. Word length.
|
ToastBuffer = $7E1E0E ; Multiworld buffer. Word length.
|
||||||
;
|
;
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ LoadBombCount16:
|
|||||||
RTL
|
RTL
|
||||||
StoreBombCount:
|
StoreBombCount:
|
||||||
JSL IncrementBombsPlacedCounter
|
JSL IncrementBombsPlacedCounter
|
||||||
INC.w UpdateHUD
|
INC.w UpdateHUDFlag
|
||||||
PHA : LDA.l InfiniteBombs : BEQ .finite
|
PHA : LDA.l InfiniteBombs : BEQ .finite
|
||||||
.infinite
|
.infinite
|
||||||
PLA : LDA.b #$01 : RTL
|
PLA : LDA.b #$01 : RTL
|
||||||
|
|||||||
20
sram.asm
20
sram.asm
@@ -172,23 +172,23 @@ CurrentGenericKeys: skip 1 ; Generic small keys
|
|||||||
;================================================================================
|
;================================================================================
|
||||||
; Tracking & Indicators ($7EF38C - $7EF3F0)
|
; Tracking & Indicators ($7EF38C - $7EF3F0)
|
||||||
;--------------------------------------------------------------------------------
|
;--------------------------------------------------------------------------------
|
||||||
InventoryTracking: skip 2 ; 2 - - - - - o q b r m p n s k f (bitfield)
|
InventoryTracking: skip 2 ; - - - - - - o q b r m p n s k f (bitfield)
|
||||||
; b = Blue Boomerang | r = Red Boomerang | m = Mushroom Current
|
; b = Blue Boomerang | r = Red Boomerang | m = Mushroom Current
|
||||||
; p = Magic Powder | n = Mushroom Past | s = Shovel
|
; p = Magic Powder | n = Mushroom Past | s = Shovel
|
||||||
; k = Inactive Flute | f = Active Flute | o = Any bomb acquired
|
; k = Inactive Flute | f = Active Flute | o = Any bomb acquired
|
||||||
; q = Quickswap locked | 2 = Item on B
|
; q = Quickswap locked
|
||||||
BowTracking: skip 1 ; b s p f - - - - (bitfield)
|
BowTracking: skip 2 ; - - - - - - - - b s p f - - - - (bitfield)
|
||||||
; b = Any Bow | s = Silver Arrows Upgrade | p = Second Progressive Bow
|
; b = Any Bow | s = Silver Arrows Upgrade | p = Second Progressive Bow
|
||||||
; f = First progressive bow
|
; f = First progressive bow
|
||||||
; The front end writes two distinct progressive bow items. p
|
; The front end writes two distinct progressive bow items. p
|
||||||
; indicates whether the "second" has been found independent of
|
; indicates whether the "second" has been found independent of
|
||||||
; the first
|
; the first
|
||||||
SpecialWeaponLevel: skip 1 ; Keeps track of level of weapon in bomb-only and cane-only modes
|
|
||||||
ItemLimitCounts: skip 16 ; Keeps track of limited non-progressive items such as lamp.
|
ItemLimitCounts: skip 16 ; Keeps track of limited non-progressive items such as lamp.
|
||||||
; See: ItemSubstitutionRules in tables.asm
|
; See: ItemSubstitutionRules in tables.asm
|
||||||
; Right now this is only used for three items but extra space is
|
; Right now this is only used for three items but extra space is
|
||||||
; reserved
|
; reserved
|
||||||
skip 36 ; Unused
|
skip 35 ; Unused
|
||||||
|
SpecialWeaponLevel: skip 1 ; Keeps track of level of weapon in item modes
|
||||||
ItemOnB: skip 1 ; same table as $0202; $01 = arrows .. $14 = mirror
|
ItemOnB: skip 1 ; same table as $0202; $01 = arrows .. $14 = mirror
|
||||||
ProgressIndicator: skip 1 ; $00 = Pre-Uncle | $01 = Post-Uncle item | $02 = Zelda Rescued
|
ProgressIndicator: skip 1 ; $00 = Pre-Uncle | $01 = Post-Uncle item | $02 = Zelda Rescued
|
||||||
; $03 = Agahnim 1 defeated
|
; $03 = Agahnim 1 defeated
|
||||||
@@ -413,9 +413,10 @@ BombsEquipmentSRAM: skip 31 ;
|
|||||||
DisplayRupeesSRAM: skip 21 ;
|
DisplayRupeesSRAM: skip 21 ;
|
||||||
CurrentArrowsSRAM: skip 21 ;
|
CurrentArrowsSRAM: skip 21 ;
|
||||||
InventoryTrackingSRAM: skip 2 ;
|
InventoryTrackingSRAM: skip 2 ;
|
||||||
BowTrackingSRAM: skip 1 ;
|
BowTrackingSRAM: skip 2 ;
|
||||||
|
skip 51 ;
|
||||||
SpecialWeaponLevelSRAM: skip 1 ;
|
SpecialWeaponLevelSRAM: skip 1 ;
|
||||||
skip 53 ;
|
ItemOnBSRAM: skip 1 ;
|
||||||
ProgressIndicatorSRAM: skip 1 ;
|
ProgressIndicatorSRAM: skip 1 ;
|
||||||
skip 19 ;
|
skip 19 ;
|
||||||
FileNameVanillaSRAM: skip 8 ; First four characters of file name
|
FileNameVanillaSRAM: skip 8 ; First four characters of file name
|
||||||
@@ -544,7 +545,8 @@ endmacro
|
|||||||
;--------------------------------------------------------------------------------
|
;--------------------------------------------------------------------------------
|
||||||
%assertSRAM(InventoryTracking, $7EF38C)
|
%assertSRAM(InventoryTracking, $7EF38C)
|
||||||
%assertSRAM(BowTracking, $7EF38E)
|
%assertSRAM(BowTracking, $7EF38E)
|
||||||
%assertSRAM(SpecialWeaponLevel, $7EF38F)
|
%assertSRAM(SpecialWeaponLevel, $7EF3C3)
|
||||||
|
%assertSRAM(ItemOnB, $7EF3C4)
|
||||||
%assertSRAM(ItemLimitCounts, $7EF390)
|
%assertSRAM(ItemLimitCounts, $7EF390)
|
||||||
;--------------------------------------------------------------------------------
|
;--------------------------------------------------------------------------------
|
||||||
%assertSRAM(GameCounter, $7EF3FF)
|
%assertSRAM(GameCounter, $7EF3FF)
|
||||||
@@ -676,7 +678,7 @@ endmacro
|
|||||||
%assertSRAM(CurrentArrowsSRAM, $700377)
|
%assertSRAM(CurrentArrowsSRAM, $700377)
|
||||||
%assertSRAM(InventoryTrackingSRAM, $70038C)
|
%assertSRAM(InventoryTrackingSRAM, $70038C)
|
||||||
%assertSRAM(BowTrackingSRAM, $70038E)
|
%assertSRAM(BowTrackingSRAM, $70038E)
|
||||||
%assertSRAM(SpecialWeaponLevelSRAM, $70038F)
|
%assertSRAM(SpecialWeaponLevelSRAM, $7003C3)
|
||||||
%assertSRAM(ProgressIndicatorSRAM, $7003C5)
|
%assertSRAM(ProgressIndicatorSRAM, $7003C5)
|
||||||
%assertSRAM(FileNameVanillaSRAM, $7003D9)
|
%assertSRAM(FileNameVanillaSRAM, $7003D9)
|
||||||
%assertSRAM(FileValiditySRAM, $7003E1)
|
%assertSRAM(FileValiditySRAM, $7003E1)
|
||||||
|
|||||||
@@ -83,7 +83,7 @@ IncrementSmallKeys:
|
|||||||
JSL.l UpdateKeys
|
JSL.l UpdateKeys
|
||||||
PHY : LDY.b #24 : JSL.l AddInventory : PLY
|
PHY : LDY.b #24 : JSL.l AddInventory : PLY
|
||||||
JSL.l HUD_RebuildLong
|
JSL.l HUD_RebuildLong
|
||||||
INC.w UpdateHUD
|
INC.w UpdateHUDFlag
|
||||||
PLX
|
PLX
|
||||||
RTL
|
RTL
|
||||||
;--------------------------------------------------------------------------------
|
;--------------------------------------------------------------------------------
|
||||||
@@ -106,7 +106,7 @@ IncrementSmallKeysNoPrimary:
|
|||||||
++
|
++
|
||||||
PLP
|
PLP
|
||||||
+
|
+
|
||||||
INC.w UpdateHUD
|
INC.w UpdateHUDFlag
|
||||||
JSL.l HUD_RebuildLong
|
JSL.l HUD_RebuildLong
|
||||||
PLX
|
PLX
|
||||||
RTL
|
RTL
|
||||||
|
|||||||
10
tables.asm
10
tables.asm
@@ -94,24 +94,24 @@ db $02 ; #$02 = Tempered Sword (default)
|
|||||||
;--------------------------------------------------------------------------------
|
;--------------------------------------------------------------------------------
|
||||||
; 0x18002B (Unused)
|
; 0x18002B (Unused)
|
||||||
;--------------------------------------------------------------------------------
|
;--------------------------------------------------------------------------------
|
||||||
org $30802C ; PC 0x18002C
|
org $B0802C ; PC 0x18002C
|
||||||
AllowedItemOnB:
|
AllowedItemOnB:
|
||||||
db #$00
|
db #$00
|
||||||
; $00 = None (default)
|
; $00 = None (default)
|
||||||
; $01 - $20 = Only selected item
|
; $01 - $20 = Only selected item
|
||||||
; $FF = Any valid
|
; $FF = Any valid
|
||||||
;--------------------------------------------------------------------------------
|
;--------------------------------------------------------------------------------
|
||||||
org $30802D ; PC 0x18002D
|
org $B0802D ; PC 0x18002D
|
||||||
ChallengeModes:
|
ChallengeModes:
|
||||||
; ---- ---i
|
; ---- ---i
|
||||||
; i: Permanent Ice Physics
|
; i: Permanent Ice Physics
|
||||||
db #$00 ; #$00 = Default behavior;
|
db #$00 ; #$00 = Default behavior;
|
||||||
;--------------------------------------------------------------------------------
|
;--------------------------------------------------------------------------------
|
||||||
org $30802E ; PC 0x18002E
|
org $B0802E ; PC 0x18002E
|
||||||
GanonVulnerabilityItem:
|
GanonVulnerabilityItem:
|
||||||
db #$00 ; #$00 = Default behavior (silver arrows)
|
db #$00 ; #$00 = Default behavior (silver arrows)
|
||||||
;--------------------------------------------------------------------------------
|
;--------------------------------------------------------------------------------
|
||||||
org $30802F ; PC 0x18002F
|
org $B0802F ; PC 0x18002F
|
||||||
SpecialWeapons:
|
SpecialWeapons:
|
||||||
db #$00
|
db #$00
|
||||||
; s - - - m m m m (bitfield)
|
; s - - - m m m m (bitfield)
|
||||||
@@ -127,7 +127,7 @@ db #$00
|
|||||||
; $07 = Unused
|
; $07 = Unused
|
||||||
; $08 = Bugnet mode
|
; $08 = Bugnet mode
|
||||||
;--------------------------------------------------------------------------------
|
;--------------------------------------------------------------------------------
|
||||||
org $308030 ; PC 0x180030
|
org $B08030 ; PC 0x180030
|
||||||
EnableSRAMTrace:
|
EnableSRAMTrace:
|
||||||
db #$00 ; #$00 = Off (default) - #$01 = On
|
db #$00 ; #$00 = Off (default) - #$01 = On
|
||||||
;--------------------------------------------------------------------------------
|
;--------------------------------------------------------------------------------
|
||||||
|
|||||||
@@ -180,7 +180,7 @@ CheckOHKO:
|
|||||||
RTS
|
RTS
|
||||||
.change
|
.change
|
||||||
STA.l OHKOCached
|
STA.l OHKOCached
|
||||||
INC.w UpdateHUD
|
INC.w UpdateHUDFlag
|
||||||
REP #$20
|
REP #$20
|
||||||
SEC
|
SEC
|
||||||
RTS
|
RTS
|
||||||
|
|||||||
@@ -108,7 +108,6 @@ Equipment_SearchForEquippedItemLong = $8DE395
|
|||||||
HUD_RebuildLong = $8DFA78
|
HUD_RebuildLong = $8DFA78
|
||||||
HUD_RebuildIndoor_Palace = $8DFA88
|
HUD_RebuildIndoor_Palace = $8DFA88
|
||||||
HUD_RebuildLong2 = $8DFA88
|
HUD_RebuildLong2 = $8DFA88
|
||||||
RebuildHUD_update = $8DFAA5
|
|
||||||
Messaging_Text = $8EEE10
|
Messaging_Text = $8EEE10
|
||||||
AfterDeathCounterOutput = $8E8FD
|
AfterDeathCounterOutput = $8E8FD
|
||||||
Overworld_TileAttr = $8FFD94
|
Overworld_TileAttr = $8FFD94
|
||||||
@@ -155,12 +154,16 @@ Ancilla29_MilestoneItemReceipt_skip_crystal_sfx = $88CAE5
|
|||||||
Ancilla29_MilestoneItemReceipt_no_sparkle = $88CB2E
|
Ancilla29_MilestoneItemReceipt_no_sparkle = $88CB2E
|
||||||
Ancilla_SetOAM_XY = $88F6F3
|
Ancilla_SetOAM_XY = $88F6F3
|
||||||
Ancilla_AddAncilla = $899CCE
|
Ancilla_AddAncilla = $899CCE
|
||||||
|
UpdateHUD = $8DDFA9
|
||||||
|
UpdateEquippedItem = $8DDFAF
|
||||||
DrawProgressIcons = $8DE9C8
|
DrawProgressIcons = $8DE9C8
|
||||||
ItemMenu_DrawEquippedYItem = $8DEB3A
|
ItemMenu_DrawEquippedYItem = $8DEB3A
|
||||||
ItemMenu_DrawEquippedYItem_exit = $8DECE6
|
ItemMenu_DrawEquippedYItem_exit = $8DECE6
|
||||||
ItemMenu_DrawEquipment_dungeonitems = $8DEDCC
|
ItemMenu_DrawEquipment_dungeonitems = $8DEDCC
|
||||||
DrawEquipment = $8DED29
|
DrawEquipment = $8DED29
|
||||||
DrawEquipment_in_a_dungeon = $8DEDFE
|
DrawEquipment_in_a_dungeon = $8DEDFE
|
||||||
|
RebuildHUD = $8DFA90
|
||||||
|
RebuildHUD_update = $8DFAA5
|
||||||
UpdateHUDBuffer_update_item_check_arrows = $8DFB41
|
UpdateHUDBuffer_update_item_check_arrows = $8DFB41
|
||||||
RenderText_DecompressAndDrawSingle = $8EF4FB
|
RenderText_DecompressAndDrawSingle = $8EF4FB
|
||||||
DecompressFontGFX = $8EF572
|
DecompressFontGFX = $8EF572
|
||||||
|
|||||||
Reference in New Issue
Block a user