1
0
mirror of https://github.com/cc65/cc65.git synced 2026-04-26 13:18:31 +00:00

Don't pass mode argument to open() from _fopen().

It isn't necessary, since paravirt.c has a default if the mode isn't
pushed onto the stack.
This commit is contained in:
Patrick Pelletier
2018-08-17 13:24:08 -07:00
committed by Oliver Schmidt
parent f72d355b18
commit 411a5a9483
3 changed files with 2 additions and 9 deletions
+1 -5
View File
@@ -15,7 +15,6 @@
.include "errno.inc"
.include "fcntl.inc"
.include "_file.inc"
.include "stat.inc"
; ------------------------------------------------------------------------
@@ -83,10 +82,7 @@ modeok: ldy #$00
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