1
0
mirror of https://github.com/cc65/cc65.git synced 2024-07-07 19:29:18 +00:00

Merge branch 'c1p_scrsize' into c1p

This commit is contained in:
Stephan Mühlstrasser 2015-02-22 19:56:01 +01:00
commit 45d9f3aae4
3 changed files with 5 additions and 5 deletions

View File

@ -13,7 +13,7 @@
.include "osic1p.inc"
.proc screensize
ldx #(SCR_LINELEN + 1)
ldy #(SCR_HEIGHT + 1)
ldx #SCR_WIDTH
ldy #SCR_HEIGHT
rts
.endproc

View File

@ -35,7 +35,7 @@ cputdirect:
; Advance cursor position
advance:
cpy #SCR_LINELEN ; xsize-1
cpy #(SCR_WIDTH - 1)
bne L3
jsr newline ; new line
ldy #$FF ; + cr

View File

@ -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_WIDTH = $19 ; Screen width
SCR_HEIGHT = $19 ; Screen height