]> git.sur5r.net Git - cc65/blobdiff - libsrc/apple2/wherey.s
Fixed gcc compiler warning (#867)
[cc65] / libsrc / apple2 / wherey.s
index 30612cc776a7695a0a3ab41aa60936e3bcfaf541..daacaaba79d30841952f4c75240ddc154c600a07 100644 (file)
@@ -1,13 +1,16 @@
+;
+; Kevin Ruland
+;
+; unsigned char wherey (void);
+;
 
-       ;; Keivn Ruland
-       ;;
-       ;; unsigned char wherey( void );
+        .export         _wherey
 
-       .export         _wherey
-
-       .include        "apple2.inc"
+        .include        "apple2.inc"
 
 _wherey:
-       lda     CV
+        lda     CV
+        sec
+        sbc     WNDTOP
         ldx     #$00
-       rts
+        rts