]> git.sur5r.net Git - cc65/blobdiff - libsrc/nes/_scrsize.s
Removed (pretty inconsistently used) tab chars from source code base.
[cc65] / libsrc / nes / _scrsize.s
index 71a45fa321ee129c012d2c10ea978b52b8d7fe76..80cc19b350332154f12689ea846aff2c7cdd6378 100644 (file)
@@ -1,24 +1,24 @@
 ;
 ; Ullrich von Bassewitz, 2003-04-14
-; Stefan Haubenthal, 2007-01-21
+; Stefan Haubenthal, 2011-05-11
 ;
 ; Screen size function
 ;
 
-       .export         screensize
+        .export         screensize
 
-       .include        "nes.inc"
-       .include        "get_tv.inc"
+        .include        "nes.inc"
+        .include        "get_tv.inc"
 
 
-.proc  screensize
+.proc   screensize
 
-       jsr     _get_tv
-       ldx     #charsperline
-       ldy     #screenrows
-       cmp     #TV::NTSC
-       beq     nopal
-       dey
-nopal: rts
+        jsr     _get_tv
+        ldx     #charsperline
+        ldy     #screenrows
+        cmp     #TV::PAL
+        beq     pal
+        dey             ; NTSC rows
+pal:    rts
 
 .endproc