]> git.sur5r.net Git - cc65/commitdiff
Corrected screensize function by Stefan Haubenthal.
authoruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Fri, 13 May 2011 15:31:26 +0000 (15:31 +0000)
committeruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Fri, 13 May 2011 15:31:26 +0000 (15:31 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@5026 b7a2c559-68d2-44c3-8de9-860c34a00d81

libsrc/nes/_scrsize.s

index 71a45fa321ee129c012d2c10ea978b52b8d7fe76..3524b3a58538ede560ab4b5bfb1bf05c183c1a0b 100644 (file)
@@ -1,6 +1,6 @@
 ;
 ; Ullrich von Bassewitz, 2003-04-14
-; Stefan Haubenthal, 2007-01-21
+; Stefan Haubenthal, 2011-05-11
 ;
 ; Screen size function
 ;
@@ -16,9 +16,9 @@
        jsr     _get_tv
        ldx     #charsperline
        ldy     #screenrows
-       cmp     #TV::NTSC
-       beq     nopal
-       dey
-nopal: rts
+       cmp     #TV::PAL
+       beq     pal
+       dey             ; NTSC rows
+pal:   rts
 
 .endproc