]> git.sur5r.net Git - cc65/blobdiff - libsrc/nes/_scrsize.s
fix comments
[cc65] / libsrc / nes / _scrsize.s
index 4de722e64686522c9e70726e853cd79e4c2348f6..71a45fa321ee129c012d2c10ea978b52b8d7fe76 100644 (file)
@@ -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     #screenrows
-        ldy     #charsperline
-        rts
+       jsr     _get_tv
+       ldx     #charsperline
+       ldy     #screenrows
+       cmp     #TV::NTSC
+       beq     nopal
+       dey
+nopal: rts
 
 .endproc
-
-