From 66bcf9ac4e1c709f53216e7c1d69cd9e35e2daec Mon Sep 17 00:00:00 2001 From: izydorst Date: Sat, 14 Jul 2001 21:15:02 +0000 Subject: [PATCH] fixed incorrect way of temporary storing parameter git-svn-id: svn://svn.cc65.org/cc65/trunk@788 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- libsrc/geos/disk/dio_params.s | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libsrc/geos/disk/dio_params.s b/libsrc/geos/disk/dio_params.s index 8d3d0b3ab..ef88a59b4 100644 --- a/libsrc/geos/disk/dio_params.s +++ b/libsrc/geos/disk/dio_params.s @@ -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 -- 2.39.5