mirror of
https://github.com/cc65/cc65.git
synced 2025-01-10 19:29:45 +00:00
Consistent naming for screen dimension constants.
This commit is contained in:
parent
a7dabcda47
commit
c3b014560e
@ -13,7 +13,7 @@
|
|||||||
.include "osic1p.inc"
|
.include "osic1p.inc"
|
||||||
|
|
||||||
.proc screensize
|
.proc screensize
|
||||||
ldx #SCR_LINELEN
|
ldx #SCR_WIDTH
|
||||||
ldy #SCR_HEIGHT
|
ldy #SCR_HEIGHT
|
||||||
rts
|
rts
|
||||||
.endproc
|
.endproc
|
||||||
|
@ -35,7 +35,7 @@ cputdirect:
|
|||||||
; Advance cursor position
|
; Advance cursor position
|
||||||
|
|
||||||
advance:
|
advance:
|
||||||
cpy #(SCR_LINELEN - 1)
|
cpy #(SCR_WIDTH - 1)
|
||||||
bne L3
|
bne L3
|
||||||
jsr newline ; new line
|
jsr newline ; new line
|
||||||
ldy #$FF ; + cr
|
ldy #$FF ; + cr
|
||||||
|
@ -6,5 +6,5 @@ KBD := $DF00 ; Polled keyboard register
|
|||||||
|
|
||||||
; Other definitions
|
; Other definitions
|
||||||
VIDEORAMSIZE = $0400 ; Size of C1P video RAM (1 kB)
|
VIDEORAMSIZE = $0400 ; Size of C1P video RAM (1 kB)
|
||||||
SCR_LINELEN = $19 ; screen width
|
SCR_WIDTH = $19 ; Screen width
|
||||||
SCR_HEIGHT = $19 ; screen height
|
SCR_HEIGHT = $19 ; Screen height
|
||||||
|
Loading…
x
Reference in New Issue
Block a user