diff options
| author | Clownacy <Clownacy@users.noreply.github.com> | 2022-03-22 18:05:54 +0000 |
|---|---|---|
| committer | Clownacy <Clownacy@users.noreply.github.com> | 2022-03-22 18:57:37 +0000 |
| commit | 0a126ee4dd15e3f5cfbd4a11fb0ba2c6f0a41ed3 (patch) | |
| tree | a26cac294c0ad357b2e230b5660fbaaa857bf4fe /_inc | |
| parent | 7c4f417cd733efb92c0dd1c72a2341b452213450 (diff) | |
Correct size-less index registers
Without an explicit size, the reader is left to guess what it's meant
to be. asm68k uses a word-size in this case, which is correct to the
original ROM, but making it explicit makes it clearer for the reader.
Diffstat (limited to '_inc')
| -rw-r--r-- | _inc/DeformLayers (JP1).asm | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/_inc/DeformLayers (JP1).asm b/_inc/DeformLayers (JP1).asm index 10de64c..d614a33 100644 --- a/_inc/DeformLayers (JP1).asm +++ b/_inc/DeformLayers (JP1).asm @@ -199,11 +199,11 @@ Deform_LZ: rts ; apply water deformation when underwater @underwaterLoop: - move.b (a3,d3),d4 + move.b (a3,d3.w),d4 ext.w d4 add.w d6,d4 move.w d4,(a1)+ - move.b (a2,d2),d4 + move.b (a2,d2.w),d4 ext.w d4 add.w d0,d4 move.w d4,(a1)+ @@ -336,7 +336,7 @@ Deform_MZ: @limitY: andi.w #$1F0,d0 lsr.w #3,d0 - lea (a2,d0),a2 + lea (a2,d0.w),a2 bra.w Bg_Scroll_X ; End of function Deform_MZ @@ -407,7 +407,7 @@ Deform_SLZ: subi.w #$C0,d0 andi.w #$3F0,d0 lsr.w #3,d0 - lea (a2,d0),a2 + lea (a2,d0.w),a2 ;------------------------------------------------------------------------------- ;------------------------------------------------------------------------------- Bg_Scroll_X: @@ -523,7 +523,7 @@ Deform_SYZ: move.w d0,d2 andi.w #$1F0,d0 lsr.w #3,d0 - lea (a2,d0),a2 + lea (a2,d0.w),a2 bra.w Bg_Scroll_X ; End of function Deform_SYZ @@ -623,7 +623,7 @@ Deform_SBZ: move.w d0,d2 andi.w #$1F0,d0 lsr.w #3,d0 - lea (a2,d0),a2 + lea (a2,d0.w),a2 bra.w Bg_Scroll_X ;------------------------------------------------------------------------------- Deform_SBZ2:;loc_68A2: |
