From 966c52f321d5da869c4eb8e00cb097d20e4ece70 Mon Sep 17 00:00:00 2001 From: alpine9000 Date: Fri, 4 Mar 2016 18:29:17 +1100 Subject: [PATCH] Fixed anim_blit to it moves full width of screen --- 009.anim_blit/anim_blit.s | 8 ++++---- 009.anim_blit/bin/anim_blit.adf | Bin 901120 -> 901120 bytes 2 files changed, 4 insertions(+), 4 deletions(-) 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 17cbeeb9d8df17dd54c9e7c5142cc03ed6da5586..aaf85b3f1d380bb759df9f1e1fe4b8f6e1225165 100644 GIT binary patch delta 100 zcmZo@FmGru-@whH$WX-K_=~B|`6mPWsXkXAd8IE=CdeVkG0|zm9tH+RhGrd>b{!T* lAZ7w$W*`RfS%H`hh}nUd1Bf|+mp{vjQ<25VHd@2M}`tF&7YX12NBb9Twgzy8##P8@m7i