]> git.sur5r.net Git - cc65/commitdiff
error handling if drive type is unknown
authorizydorst <izydorst@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Fri, 8 Mar 2002 16:44:07 +0000 (16:44 +0000)
committerizydorst <izydorst@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Fri, 8 Mar 2002 16:44:07 +0000 (16:44 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@1175 b7a2c559-68d2-44c3-8de9-860c34a00d81

libsrc/geos/disk/dio_cts.s
libsrc/geos/disk/dio_stc.s

index f6118641e31f19f40da4cbf3f27cf0ea87e29c9d..c7871045d7cd53f2de2016005f8de22a4c27aa66 100644 (file)
@@ -69,7 +69,9 @@
        cmp     #DRV_1581
        beq     dio_cts1581
 
-; unknown device, return what you have got
+       lda     #DEV_NOT_FOUND  ; unknown device
+       ldx     #0
+       beq     ret
 
 dio_ctsend:
        ldy     #1
index ea6369fdea8a58c00799b97e2461b722d38ca6d3..c64bb08023b082b05a01b1bc3079571e568a42eb 100644 (file)
@@ -66,7 +66,9 @@
        cmp     #DRV_1581
        beq     dio_stc1581
 
-;      ...
+       lda     #DEV_NOT_FOUND  ; unknown device
+       ldx     #0
+       beq     _ret
 
 dio_stcend:
        ldy     #diopp_track