reworked advancing to the next line
This commit is contained in:
1 parent
da2fa7ac90
commit
d583ad6f10
7 files changed
+23
-56
No files matched your search
@@ -2,50 +2,18 @@
|
||||
|
||||
screen_advance_to_next_line:
|
||||
|
||||
jmp screen_advance_to_next_line
|
||||
|
||||
/* YYY disabled for rework
|
||||
|
||||
// Go to start of line
|
||||
// Go to start of the line
|
||||
lda #0
|
||||
sta PNTR
|
||||
// Advance line number
|
||||
|
||||
// Check if we are at the bottom of the screen
|
||||
ldy TBLX
|
||||
cpy #$24
|
||||
bne !+
|
||||
|
||||
// Do quick fix to line pointer to work out if it is off
|
||||
// the bottom of the screen.
|
||||
ldx #40
|
||||
lda LDTBL,y
|
||||
bmi !+
|
||||
.byte $2c
|
||||
!: ldx #80
|
||||
txa
|
||||
clc
|
||||
adc PNT+0
|
||||
sta PNT+0
|
||||
lda PNT+1
|
||||
adc #0
|
||||
sta PNT+1
|
||||
|
||||
inc TBLX
|
||||
|
||||
// Check if it will trigger scrolling
|
||||
// Work out if we have gone off the bottom of the screen?
|
||||
// 1040 > 1024, so if high byte of screen pointer is >= (HIBASE+4),
|
||||
// then we are off the bottom of the screen
|
||||
lda PNT+1
|
||||
sec
|
||||
sbc HIBASE
|
||||
cmp #3
|
||||
bcc !+
|
||||
lda PNT+0
|
||||
cmp #$e7
|
||||
bcc !+
|
||||
|
||||
// Off the bottom of the screen
|
||||
jsr scroll_screen_up
|
||||
// We need to scroll the screen up
|
||||
jsr screen_scroll_up
|
||||
skip_2_bytes_trash_nvz
|
||||
!:
|
||||
|
||||
inc TBLX
|
||||
jmp chrout_screen_calc_lptr_done
|
||||
|
||||
*/
|
||||
Reference in new issue
Block a user