NTSC/PAL update by Stefan Haubenthal.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3831 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -1,20 +1,24 @@
|
||||
;
|
||||
; Ullrich von Bassewitz, 2003-04-14
|
||||
; Stefan Haubenthal, 2007-01-21
|
||||
;
|
||||
; Screen size function
|
||||
;
|
||||
|
||||
.export screensize
|
||||
.export screensize
|
||||
|
||||
.include "nes.inc"
|
||||
.include "nes.inc"
|
||||
.include "get_tv.inc"
|
||||
|
||||
|
||||
.proc screensize
|
||||
.proc screensize
|
||||
|
||||
ldx #charsperline
|
||||
ldy #screenrows
|
||||
rts
|
||||
jsr _get_tv
|
||||
ldx #charsperline
|
||||
ldy #screenrows
|
||||
cmp #TV::NTSC
|
||||
beq nopal
|
||||
dey
|
||||
nopal: rts
|
||||
|
||||
.endproc
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user