aboutsummaryrefslogtreecommitdiff
path: root/portstat.s
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2021-04-10 15:37:43 -0400
committerB. Watson <yalhcru@gmail.com>2021-04-10 15:37:43 -0400
commit773cf3bd07f9e2d0a878e7929df873070a7977bc (patch)
tree99859f93c8bbc37b6ceeacf0762260d6801d21e8 /portstat.s
parentf35a2797f0f96c6c15e25d2b980a0f60360c244a (diff)
downloadtaipan-773cf3bd07f9e2d0a878e7929df873070a7977bc.tar.gz
port stat: save some bytes, slight speedup
Diffstat (limited to 'portstat.s')
-rw-r--r--portstat.s9
1 files changed, 7 insertions, 2 deletions
diff --git a/portstat.s b/portstat.s
index fa68b9f..9aa54ee 100644
--- a/portstat.s
+++ b/portstat.s
@@ -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