It isn't necessary, since paravirt.c has a default if the mode isn't
pushed onto the stack.
+++ /dev/null
-; File mode constants, must match the values in the C headers
-S_IREAD = $0100 ; octal 0400
-S_IWRITE = $0080 ; octal 0200
** https://en.wikipedia.org/wiki/File_system_permissions#Numeric_notation
** (S_IREAD and S_IWRITE are aliases for S_IRUSR and S_IWUSR)
**
-** Must match the values in asminc/stat.inc and src/sim65/paravirt.c
+** Must match the values in src/sim65/paravirt.c
*/
#define S_IREAD 0400
.include "errno.inc"
.include "fcntl.inc"
.include "_file.inc"
- .include "stat.inc"
; ------------------------------------------------------------------------
tya
iny
sta (sp),y
- lda #<(S_IREAD|S_IWRITE)
- ldx #>(S_IREAD|S_IWRITE)
- jsr pushax ; Push the "mode" argument onto the stack
- ldy #6 ; Size of arguments in bytes
+ ldy #4 ; Size of arguments in bytes
jsr _open ; Will cleanup the stack
; Check the result of the open() call