Small cleanup

This commit is contained in:
alpine9000
2016-04-14 14:42:09 +10:00
parent 304b8075b9
commit 18a8a6902a
2 changed files with 6 additions and 6 deletions
+5 -5
View File
@@ -49,12 +49,12 @@ Reset:
move.l #0,bg_xpos
move.l #0,bg_shift ; shift counter (d2)
move.l #0,bg_tileIndex ; tile index (d3)
move.l #0,bg_delay
move.l #BACKGROUND_UPDATE_COUNT,d6 (Frame count)
jsr BlueFill
move.l #11,frameCount
MainLoop:
move.l bg_delay,d6
move.l frameCount,d6
jsr WaitVerticalBlank
bsr.s HoriScrollPlayfield
@@ -82,7 +82,7 @@ MainLoop:
bsr UpdateShiftCounter
.skipForegroundUpdates:
add.l #1,bg_delay
add.l #1,frameCount
bra MainLoop
HoriScrollPlayfield:
@@ -302,7 +302,7 @@ bg_xpos:
bg_tileIndex:
dc.l 0
bg_delay:
frameCount:
dc.l 0
section .bss
+1 -1
View File
@@ -15,7 +15,7 @@ SwitchBuffers:
lea copperListBpl1Ptr,a0
jsr PokeBitplanePointers
btst #FOREGROUND_DELAY_BIT,d6
btst #FOREGROUND_DELAY_BIT,d6 ; only swap the background buffer every second frame
beq .skipBackgroundSwap
move.l bg_xpos,d0
lsr.l #3,d0 ; bytes to scroll