mirror of
https://github.com/cc65/cc65.git
synced 2025-04-05 13:37:17 +00:00
Merge branch 'c1p_scrsize' into c1p
This commit is contained in:
commit
45d9f3aae4
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user