Skip to content

Commit

Permalink
[atari] Fix crash on out-of-handles (#336)
Browse files Browse the repository at this point in the history
  • Loading branch information
pfusik committed Jun 14, 2024
1 parent 63e13de commit bbe14f1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mos-platform/atari8-common/open.s
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ open:
jsr findfreeiocb
beq iocbok ; we found one

pla
lda #<EMFILE ; "too many open files"
seterr: jsr __directerrno
lda #$FF
Expand Down

0 comments on commit bbe14f1

Please sign in to comment.