]> git.sur5r.net Git - cc65/commitdiff
fixed incorrect way of temporary storing parameter
authorizydorst <izydorst@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sat, 14 Jul 2001 21:15:02 +0000 (21:15 +0000)
committerizydorst <izydorst@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sat, 14 Jul 2001 21:15:02 +0000 (21:15 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@788 b7a2c559-68d2-44c3-8de9-860c34a00d81

libsrc/geos/disk/dio_params.s

index 8d3d0b3ab61da87090a968fc663d188283844fae..ef88a59b4725a4ef3687d1cb7469e55d9290ce6e 100644 (file)
@@ -26,9 +26,14 @@ dio_secnum:  .res 2
        stx dio_secnum
 
        jsr popax               ; get 3rd parameter
+       pha                     ; save it
+       txa
+       pha
        jsr pushax              ; put it back
+       pla                     ; restore it
+       sta ptr1+1
+       pla
        sta ptr1
-       stx ptr1+1
        ldy #sst_driveno
        lda (ptr1),y
        clc