Cleanup Asar warnings with deprecated #$ format in tables

This commit is contained in:
scawful
2024-09-29 22:01:34 -04:00
parent 76d08711f0
commit 42ce2c4ee2
9 changed files with 153 additions and 181 deletions

View File

@@ -1,33 +1,30 @@
; =========================================================
; Wolf Mask
;
; Talk to animals
; Wolf Mask
; Dig for treasure ability (shovel)
;
; =========================================================
UpdateWolfPalette:
{
REP #$30 ; change 16bit mode
LDX #$001E
REP #$30 ; change 16bit mode
LDX #$001E
.loop
LDA.l WolfPalette, X : STA $7EC6E0, X
DEX : DEX : BPL .loop
SEP #$30 ; go back to 8 bit mode
INC $15 ; update the palette
RTL ; or RTS depending on where you need it
SEP #$30 ; go back to 8 bit mode
INC $15 ; update the palette
RTL ; or RTS depending on where you need it
}
; =========================================================
WolfPalette:
dw #$7BDE, #$7FFF, #$2F7D, #$19B5, #$3A9C, #$14A5, #$1A3D, #$14B6
dw #$4650, #$362A, #$3F4E, #$162B, #$318A, #$39CC, #$1CE7, #$76D1
dw #$6565, #$7271, #$14B5, #$459B, #$3D95, #$22D0, #$567C, #$1890
dw #$7616, #$0000
dw $7BDE, $7FFF, $2F7D, $19B5, $3A9C, $14A5, $1A3D, $14B6
dw $4650, $362A, $3F4E, $162B, $318A, $39CC, $1CE7, $76D1
dw $6565, $7271, $14B5, $459B, $3D95, $22D0, $567C, $1890
dw $7616, $0000
; =========================================================
org $07A3DB
@@ -51,10 +48,9 @@ LinkItem_ShovelAndFlute:
{
; Play flute or use the Wolf Mask
LDA $0202 : CMP.b #$0D : BNE .use_wolf_mask
BRL LinkItem_Flute
.use_wolf_mask
BRL LinkItem_Flute
.use_wolf_mask
JMP LinkItem_WolfMask
}
; assert pc() <= $07A31F
@@ -65,16 +61,15 @@ pullpc
LinkItem_WolfMask:
{
LDA $02B2 : CMP #$03 : BNE .equip
JSR LinkItem_Shovel
LDA $02B2 : CMP #$03 : BNE .equip
JSR LinkItem_Shovel
.equip
LDA.b #$03
JSL Link_TransformMask
LDA.b #$03
JSL Link_TransformMask
.return
RTS
RTS
}
print "End of Masks/wolf_mask.asm ", pc
pushpc
pushpc