castleraider

changeset 325:0849cd711949

Saved a couple of bytes.
author David Boddie <david@boddie.org.uk>
date Sun Oct 05 00:38:04 2014 +0200
parents 5ecff9e25e1c
children 061d634f7bc5
files scrolling.oph
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
line diff
     1.1 --- a/scrolling.oph	Sat Oct 04 20:53:00 2014 +0200
     1.2 +++ b/scrolling.oph	Sun Oct 05 00:38:04 2014 +0200
     1.3 @@ -142,12 +142,12 @@
     1.4      lda #1
     1.5      sta scrolled
     1.6  
     1.7 -    lda scroll_offset_low   ; Increase the scroll offset before showing bank 1.
     1.8 -    adc #1
     1.9 -    sta scroll_offset_low
    1.10 -    lda scroll_offset_high
    1.11 -    adc #0
    1.12 -    sta scroll_offset_high
    1.13 +    inc scroll_offset_low   ; Increase the scroll offset before showing bank 1.
    1.14 +    lda scroll_offset_low
    1.15 +    cmp #0
    1.16 +    bne scroll_right_update_show_bank1_next
    1.17 +    inc scroll_offset_high
    1.18 +    scroll_right_update_show_bank1_next:
    1.19      clc
    1.20  
    1.21      jsr scroll_right