mirror of
https://github.com/cc65/cc65.git
synced 2024-12-22 12:30:41 +00:00
error handling if drive type is unknown
git-svn-id: svn://svn.cc65.org/cc65/trunk@1175 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
725c8df654
commit
b7dd6ebaa4
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user