]> git.sur5r.net Git - cc65/blobdiff - libsrc/apple2/wherey.s
don't use constructor to setup runtime stack
[cc65] / libsrc / apple2 / wherey.s
index a8c341c4838b02763a7eb847c879aceeb25efb88..1ac7b6a757bf03afe6eef4e60598582131891ff3 100644 (file)
@@ -1,17 +1,16 @@
+;
+; Kevin Ruland
+;
+; unsigned char wherey (void);
+;
 
-       ;; Keivn Ruland
-       ;;
-       ;; unsigned char wherey( void );
+        .export                _wherey
 
-       .export         _wherey
+        .include       "apple2.inc"
 
-       .include        "apple2.inc"
-
-.proc   _wherey
-
-       lda     CV
+_wherey:
+        lda    CV
+        sec
+        sbc    WNDTOP
         ldx     #$00
-       rts
-
-.endproc
-
+        rts