aboutsummaryrefslogtreecommitdiff
path: root/portstat.s
diff options
context:
space:
mode:
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