mirror of
https://github.com/cc65/cc65.git
synced 2025-01-12 02:30:44 +00:00
Computed pixel aspect ratio (PAR) by presuming a display aspect ratio (DAR) of 4/3 for a classic CRT and using the given driver resolutions as storage aspect ratio (SAR).
git-svn-id: svn://svn.cc65.org/cc65/trunk@5017 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
4aa00e84e1
commit
d72d373e83
@ -48,7 +48,7 @@ yres: .word 200 ; Y resolution
|
||||
pages: .byte 1 ; Number of screens available
|
||||
.byte 8 ; System font X size
|
||||
.byte 8 ; System font Y size
|
||||
.word $100 ; Aspect ratio: 1.0
|
||||
aspect: .word $00D4 ; Aspect ratio (based on 4/3 display)
|
||||
|
||||
; Next comes the jump table. With the exception of IRQ, all entries must be
|
||||
; valid, and may point to an RTS for test versions (function not implemented).
|
||||
@ -139,10 +139,13 @@ INSTALL:
|
||||
; check for VDC version and update register $19 value
|
||||
|
||||
@L80:
|
||||
lda #<640
|
||||
ldx #>640
|
||||
sta xres
|
||||
stx xres+1
|
||||
; double the x resolution and halve the aspect ratio
|
||||
|
||||
asl xres
|
||||
rol xres+1
|
||||
|
||||
lsr aspect+1
|
||||
ror aspect
|
||||
|
||||
; update number of available screens
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user