Remove all address comments
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
MagnetTrain: ; 8cc04
|
||||
MagnetTrain:
|
||||
ld a, [wScriptVar]
|
||||
and a
|
||||
jr nz, .ToGoldenrod
|
||||
@@ -81,9 +81,8 @@ MagnetTrain: ; 8cc04
|
||||
pop af
|
||||
ld [rSVBK], a
|
||||
ret
|
||||
; 8cc99
|
||||
|
||||
MagnetTrain_UpdateLYOverrides: ; 8cc99
|
||||
MagnetTrain_UpdateLYOverrides:
|
||||
ld hl, wLYOverridesBackup
|
||||
ld c, $2f
|
||||
ld a, [wMagnetTrainOffset]
|
||||
@@ -111,9 +110,8 @@ MagnetTrain_UpdateLYOverrides: ; 8cc99
|
||||
dec c
|
||||
jr nz, .loadloop
|
||||
ret
|
||||
; 8ccc9
|
||||
|
||||
MagntTrain_LoadGFX_PlayMusic: ; 8ccc9
|
||||
MagntTrain_LoadGFX_PlayMusic:
|
||||
call ClearBGPalettes
|
||||
call ClearSprites
|
||||
call DisableLCD
|
||||
@@ -155,9 +153,8 @@ MagntTrain_LoadGFX_PlayMusic: ; 8ccc9
|
||||
ld de, MUSIC_MAGNET_TRAIN
|
||||
call PlayMusic2
|
||||
ret
|
||||
; 8cd27
|
||||
|
||||
DrawMagnetTrain: ; 8cd27
|
||||
DrawMagnetTrain:
|
||||
hlbgcoord 0, 0
|
||||
xor a
|
||||
.loop
|
||||
@@ -184,18 +181,16 @@ DrawMagnetTrain: ; 8cd27
|
||||
ld c, 20
|
||||
call .FillLine
|
||||
ret
|
||||
; 8cd65
|
||||
|
||||
.FillLine: ; 8cd65
|
||||
.FillLine:
|
||||
ld a, [de]
|
||||
inc de
|
||||
ld [hli], a
|
||||
dec c
|
||||
jr nz, .FillLine
|
||||
ret
|
||||
; 8cd6c
|
||||
|
||||
.FillAlt: ; 8cd6c
|
||||
.FillAlt:
|
||||
ld [hl], e
|
||||
inc hl
|
||||
ld [hl], d
|
||||
@@ -203,9 +198,8 @@ DrawMagnetTrain: ; 8cd27
|
||||
dec b
|
||||
jr nz, .FillAlt
|
||||
ret
|
||||
; 8cd74
|
||||
|
||||
GetMagnetTrainBGTiles: ; 8cd74
|
||||
GetMagnetTrainBGTiles:
|
||||
push hl
|
||||
ld e, a
|
||||
ld d, 0
|
||||
@@ -217,9 +211,8 @@ GetMagnetTrainBGTiles: ; 8cd74
|
||||
ld d, [hl]
|
||||
pop hl
|
||||
ret
|
||||
; 8cd82
|
||||
|
||||
MagnetTrainBGTiles: ; 8cd82
|
||||
MagnetTrainBGTiles:
|
||||
; Alternating tiles for each line of the Magnet Train tilemap.
|
||||
db $4c, $4d ; bush
|
||||
db $5c, $5d ; bush
|
||||
@@ -239,9 +232,8 @@ MagnetTrainBGTiles: ; 8cd82
|
||||
db $5c, $5d ; bush
|
||||
db $4c, $4d ; bush
|
||||
db $5c, $5d ; bush
|
||||
; 8cda6
|
||||
|
||||
MagnetTrain_InitLYOverrides: ; 8cda6
|
||||
MagnetTrain_InitLYOverrides:
|
||||
ld hl, wLYOverrides
|
||||
ld bc, wLYOverridesEnd - wLYOverrides
|
||||
ld a, [wMagnetTrainInitPosition]
|
||||
@@ -253,9 +245,8 @@ MagnetTrain_InitLYOverrides: ; 8cda6
|
||||
ld a, rSCX - $ff00
|
||||
ld [hLCDCPointer], a
|
||||
ret
|
||||
; 8cdc3
|
||||
|
||||
SetMagnetTrainPals: ; 8cdc3
|
||||
SetMagnetTrainPals:
|
||||
ld a, $1
|
||||
ld [rVBK], a
|
||||
|
||||
@@ -286,9 +277,8 @@ SetMagnetTrainPals: ; 8cdc3
|
||||
ld a, $0
|
||||
ld [rVBK], a
|
||||
ret
|
||||
; 8cdf7
|
||||
|
||||
MagnetTrain_Jumptable: ; 8cdf7
|
||||
MagnetTrain_Jumptable:
|
||||
ld a, [wJumptableIndex]
|
||||
ld e, a
|
||||
ld d, 0
|
||||
@@ -299,9 +289,8 @@ MagnetTrain_Jumptable: ; 8cdf7
|
||||
ld h, [hl]
|
||||
ld l, a
|
||||
jp hl
|
||||
; 8ce06
|
||||
|
||||
.Jumptable: ; 8ce06
|
||||
.Jumptable:
|
||||
dw .InitPlayerSpriteAnim
|
||||
dw .WaitScene
|
||||
dw .MoveTrain1
|
||||
@@ -309,15 +298,13 @@ MagnetTrain_Jumptable: ; 8cdf7
|
||||
dw .MoveTrain2
|
||||
dw .WaitScene
|
||||
dw .TrainArrived
|
||||
; 8ce14
|
||||
|
||||
.Next: ; 8ce14
|
||||
.Next:
|
||||
ld hl, wJumptableIndex
|
||||
inc [hl]
|
||||
ret
|
||||
; 8ce19
|
||||
|
||||
.InitPlayerSpriteAnim: ; 8ce19
|
||||
.InitPlayerSpriteAnim:
|
||||
ld d, 10 * 8 + 5
|
||||
ld a, [wMagnetTrainPlayerSpriteInitX]
|
||||
ld e, a
|
||||
@@ -343,9 +330,8 @@ MagnetTrain_Jumptable: ; 8cdf7
|
||||
ld a, $80
|
||||
ld [wMagnetTrainWaitCounter], a
|
||||
ret
|
||||
; 8ce47
|
||||
|
||||
.MoveTrain1: ; 8ce47
|
||||
.MoveTrain1:
|
||||
ld hl, wMagnetTrainHoldPosition
|
||||
ld a, [wMagnetTrainPosition]
|
||||
cp [hl]
|
||||
@@ -367,9 +353,8 @@ MagnetTrain_Jumptable: ; 8cdf7
|
||||
ld a, $80
|
||||
ld [wMagnetTrainWaitCounter], a
|
||||
ret
|
||||
; 8ce6d
|
||||
|
||||
.WaitScene: ; 8ce6d
|
||||
.WaitScene:
|
||||
ld hl, wMagnetTrainWaitCounter
|
||||
ld a, [hl]
|
||||
and a
|
||||
@@ -380,9 +365,8 @@ MagnetTrain_Jumptable: ; 8cdf7
|
||||
.DoneWaiting:
|
||||
call .Next
|
||||
ret
|
||||
; 8ce7a
|
||||
|
||||
.MoveTrain2: ; 8ce7a
|
||||
.MoveTrain2:
|
||||
ld hl, wMagnetTrainFinalPosition
|
||||
ld a, [wMagnetTrainPosition]
|
||||
cp [hl]
|
||||
@@ -410,17 +394,15 @@ MagnetTrain_Jumptable: ; 8cdf7
|
||||
.PrepareToFinishAnim:
|
||||
call .Next
|
||||
ret
|
||||
; 8cea2
|
||||
|
||||
.TrainArrived: ; 8cea2
|
||||
.TrainArrived:
|
||||
ld a, $80
|
||||
ld [wJumptableIndex], a
|
||||
ld de, SFX_TRAIN_ARRIVED
|
||||
call PlaySFX
|
||||
ret
|
||||
; 8ceae
|
||||
|
||||
MagnetTrain_Jumptable_FirstRunThrough: ; 8ceae
|
||||
MagnetTrain_Jumptable_FirstRunThrough:
|
||||
farcall PlaySpriteAnimations
|
||||
call MagnetTrain_Jumptable
|
||||
call MagnetTrain_UpdateLYOverrides
|
||||
@@ -455,7 +437,6 @@ MagnetTrain_Jumptable_FirstRunThrough: ; 8ceae
|
||||
pop af
|
||||
ld [rSVBK], a
|
||||
ret
|
||||
; 8ceff
|
||||
|
||||
MagnetTrainTilemap1:
|
||||
db $1f, $05, $06, $0a, $0a, $0a, $09, $0a, $0a, $0a, $0a, $0a, $0a, $09, $0a, $0a, $0a, $0b, $0c, $1f
|
||||
@@ -465,4 +446,3 @@ MagnetTrainTilemap3:
|
||||
db $24, $25, $26, $27, $07, $2f, $29, $28, $28, $28, $28, $28, $28, $29, $07, $2f, $2a, $2b, $2c, $2d
|
||||
MagnetTrainTilemap4:
|
||||
db $20, $1f, $2e, $1f, $17, $00, $2e, $1f, $1f, $1f, $1f, $1f, $1f, $2e, $17, $00, $1f, $2e, $1f, $0f
|
||||
; 8cf4f
|
||||
|
Reference in New Issue
Block a user