Fold constant calculation.

This commit is contained in:
Sven Michael Klose 2020-11-03 11:52:58 +01:00 committed by greg-king5
parent f59cb9af06
commit 6201300816

View File

@ -51,11 +51,9 @@ LINEDIST = $20 ; Offset in video RAM between two lines
sta load
stx load+1
ldx #<load_size
inx
ldx #(<load_size) + 1
stx count
ldx #>load_size
inx
ldx #(>load_size) + 1
stx count+1 ; save size with each byte incremented separately
L1: dec count ; pre-count one's-complement upwards