- ora RVS ; Set revers bit
- ldy CURS_X
- sta (SCREEN_PTR),y ; Set char
- ldx IndReg
- lda #$0F
- sta IndReg
- lda CHARCOLOR
- sta (CRAM_PTR),y ; Set color
- stx IndReg
- rts
-
+ ora RVS ; Set revers bit
+ ldy CURS_X
+ sta (SCREEN_PTR),y ; Set char
+ ldx IndReg
+ lda #$0F
+ sta IndReg
+ lda CHARCOLOR
+ sta (CRAM_PTR),y ; Set color
+ stx IndReg
+ rts
+
+; -------------------------------------------------------------------------
+; Low bytes of the start address of the screen lines
+
+.rodata
+
+LineLSBTab:
+ .repeat 25, I
+ .byte .lobyte(__VIDRAM_START__ + I * 40)
+ .endrep
+
+; -------------------------------------------------------------------------
+; High bytes of the start address of the screen lines
+
+LineMSBTab:
+ .repeat 25, I
+ .byte .hibyte(__VIDRAM_START__ + I * 40)
+ .endrep