Fold constant calculation.
This commit is contained in:
parent
f59cb9af06
commit
6201300816
1 changed files with 2 additions and 4 deletions
|
@ -51,11 +51,9 @@ LINEDIST = $20 ; Offset in video RAM between two lines
|
||||||
sta load
|
sta load
|
||||||
stx load+1
|
stx load+1
|
||||||
|
|
||||||
ldx #<load_size
|
ldx #(<load_size) + 1
|
||||||
inx
|
|
||||||
stx count
|
stx count
|
||||||
ldx #>load_size
|
ldx #(>load_size) + 1
|
||||||
inx
|
|
||||||
stx count+1 ; save size with each byte incremented separately
|
stx count+1 ; save size with each byte incremented separately
|
||||||
|
|
||||||
L1: dec count ; pre-count one's-complement upwards
|
L1: dec count ; pre-count one's-complement upwards
|
||||||
|
|
Loading…
Add table
Reference in a new issue