mirror of
https://github.com/cc65/cc65.git
synced 2025-01-01 03:30:20 +00:00
Fold constant calculation.
This commit is contained in:
parent
f59cb9af06
commit
6201300816
@ -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…
Reference in New Issue
Block a user