Define the screen dimension defines in a more meaningful way.
This commit is contained in:
parent
965aded1ba
commit
a7dabcda47
3 changed files with 5 additions and 5 deletions
|
@ -13,7 +13,7 @@
|
|||
.include "osic1p.inc"
|
||||
|
||||
.proc screensize
|
||||
ldx #(SCR_LINELEN + 1)
|
||||
ldy #(SCR_HEIGHT + 1)
|
||||
ldx #SCR_LINELEN
|
||||
ldy #SCR_HEIGHT
|
||||
rts
|
||||
.endproc
|
||||
|
|
|
@ -35,7 +35,7 @@ cputdirect:
|
|||
; Advance cursor position
|
||||
|
||||
advance:
|
||||
cpy #SCR_LINELEN ; xsize-1
|
||||
cpy #(SCR_LINELEN - 1)
|
||||
bne L3
|
||||
jsr newline ; new line
|
||||
ldy #$FF ; + cr
|
||||
|
|
|
@ -6,5 +6,5 @@ KBD := $DF00 ; Polled keyboard register
|
|||
|
||||
; Other definitions
|
||||
VIDEORAMSIZE = $0400 ; Size of C1P video RAM (1 kB)
|
||||
SCR_LINELEN = $18 ; screen width - 1
|
||||
SCR_HEIGHT = $18 ; screen height - 1
|
||||
SCR_LINELEN = $19 ; screen width
|
||||
SCR_HEIGHT = $19 ; screen height
|
||||
|
|
Loading…
Add table
Reference in a new issue