diff options
author | B. Watson <yalhcru@gmail.com> | 2021-04-10 15:37:43 -0400 |
---|---|---|
committer | B. Watson <yalhcru@gmail.com> | 2021-04-10 15:37:43 -0400 |
commit | 773cf3bd07f9e2d0a878e7929df873070a7977bc (patch) | |
tree | 99859f93c8bbc37b6ceeacf0762260d6801d21e8 /portstat.s | |
parent | f35a2797f0f96c6c15e25d2b980a0f60360c244a (diff) | |
download | taipan-773cf3bd07f9e2d0a878e7929df873070a7977bc.tar.gz |
port stat: save some bytes, slight speedup
Diffstat (limited to 'portstat.s')
-rw-r--r-- | portstat.s | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -29,17 +29,22 @@ partial = <screenlen ; compared to using memcpy(). ; void redraw_port_stat(void); _redraw_port_stat: - lda _port_stat_dirty - beq @done + ;lda _port_stat_dirty + ;beq @done lda #<_port_stat_screen sta srcptr lda #>_port_stat_screen sta srcptr+1 + ; add 40 because PORTSTAT.DAT no longer contains the all-blank + ; first line. lda SAVMSC + clc + adc #$28 sta dstptr lda SAVMSC+1 + adc #$00 sta dstptr+1 ; copy screenpages pages |