Skip to content

Commit

Permalink
error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
mooinglemur committed Oct 7, 2023
1 parent d96217a commit 0f86ef1
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions dos/main.s
Original file line number Diff line number Diff line change
Expand Up @@ -559,6 +559,17 @@ dos_mciout:
stz ieee_status

jsr file_write_block
bcc @end

phx
phy
jsr file_close_clr_channel
lda #$01 ; write timeout to indicate error
tsb ieee_status
clc
ply
plx

@end:
BANKING_END
rts
Expand Down

0 comments on commit 0f86ef1

Please sign in to comment.