fix for EAL corruption

This commit is contained in:
FeralChild64 committed 2019-11-07 22:05:49 +01:00
1 parent 0e28f89806
commit 54fd24d704
10 files changed
+26 -1

No files matched your search

+13 -1
View File
@@ -36,7 +36,13 @@ count_rows_loop:
cpx #0
beq no_copy_down
bmi no_copy_down
// Preserve EAL
lda EAL+0
pha
lda EAL+1
pha
// Set pointers to end of screen line, and one line
// above. (It is always one physical line, because
// this can only happen when expanding a line from 40 to
@@ -105,6 +111,12 @@ cl_inner:
dex
bne copy_line_down_loop
// Restore EAL
pla
sta EAL+1
pla
sta EAL+0
no_copy_down:
jsr screen_calculate_line_pointer