diff --git a/009.anim_blit/anim_blit.s b/009.anim_blit/anim_blit.s index b66eef6..bcd247b 100644 --- a/009.anim_blit/anim_blit.s +++ b/009.anim_blit/anim_blit.s @@ -8,17 +8,17 @@ entry: lea CUSTOM,a6 bsr init - moveq #32,d0 ; starting x position for the blitter object - moveq #32,d1 ; starting y position for the blitter object + moveq #0,d0 ; starting x position for the blitter object + moveq #0,d1 ; starting y position for the blitter object lea bitplanes(pc),a0 lea emoji,a1 lea emojiMask,a2 .mainLoop: bsr.s waitvbl - bsr.s blitObject64 ; blit 64 pixel object (x=d0,y=d1,background=a0,object=a1,mask=a2) addq #1,d0 ; move the blitter object one pixel to the left addq #1,d1 ; move the blitter object one pixel down - cmp.l #SCREEN_WIDTH-BLIT_BOB_WIDTH64,d0 ; check if we need to wrap the x + bsr.s blitObject64 ; blit 64 pixel object (x=d0,y=d1,background=a0,object=a1,mask=a2) + cmp.l #SCREEN_WIDTH-BLIT_BOB_WIDTH64+16,d0 ; check if we need to wrap the x bne.s .skip moveq #0,d0 ; wrap x back to zero .skip: diff --git a/009.anim_blit/bin/anim_blit.adf b/009.anim_blit/bin/anim_blit.adf index 17cbeeb..aaf85b3 100644 Binary files a/009.anim_blit/bin/anim_blit.adf and b/009.anim_blit/bin/anim_blit.adf differ