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
|
||||
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
|
||||
|
|
Loading…
Add table
Reference in a new issue