]> git.sur5r.net Git - cc65/blobdiff - libsrc/apple2/wherey.s
Call interrupt handlers with carry clear
[cc65] / libsrc / apple2 / wherey.s
index 30612cc776a7695a0a3ab41aa60936e3bcfaf541..1ac7b6a757bf03afe6eef4e60598582131891ff3 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