From e9de42d6c4400c2351ae2ad74e1a87b4ff281c8c Mon Sep 17 00:00:00 2001 From: Stephen Heumann Date: Mon, 17 Feb 2020 19:49:18 -0600 Subject: [PATCH] fopen: do not require read access when opening a file for append only. This can cause an error if the file's permissions deny read access. --- stdio.asm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/stdio.asm b/stdio.asm index c29e897..93e32ad 100644 --- a/stdio.asm +++ b/stdio.asm @@ -763,10 +763,9 @@ OSname equ 11 pointer to the GS/OS file name lda [type] make sure the file type is in ['a','r','w'] and #$00FF sta fileType - ldx #$0003 + ldx #$0002 cmp #'a' beq cn1 - ldx #$0002 cmp #'w' beq cn1 ldx #$0001