mirror of
https://github.com/cc65/cc65.git
synced 2024-08-31 23:29:09 +00:00
Merge branch 'c1p_scrsize' into c1p
This commit is contained in:
commit
45d9f3aae4
@ -13,7 +13,7 @@
|
|||||||
.include "osic1p.inc"
|
.include "osic1p.inc"
|
||||||
|
|
||||||
.proc screensize
|
.proc screensize
|
||||||
ldx #(SCR_LINELEN + 1)
|
ldx #SCR_WIDTH
|
||||||
ldy #(SCR_HEIGHT + 1)
|
ldy #SCR_HEIGHT
|
||||||
rts
|
rts
|
||||||
.endproc
|
.endproc
|
||||||
|
@ -35,7 +35,7 @@ cputdirect:
|
|||||||
; Advance cursor position
|
; Advance cursor position
|
||||||
|
|
||||||
advance:
|
advance:
|
||||||
cpy #SCR_LINELEN ; xsize-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 = $18 ; screen width - 1
|
SCR_WIDTH = $19 ; Screen width
|
||||||
SCR_HEIGHT = $18 ; screen height - 1
|
SCR_HEIGHT = $19 ; Screen height
|
||||||
|
Loading…
Reference in New Issue
Block a user