mirror of
https://github.com/cc65/cc65.git
synced 2026-04-26 13:18:31 +00:00
Fixed a bug
git-svn-id: svn://svn.cc65.org/cc65/trunk@2418 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
;
|
||||
;
|
||||
; Ullrich von Bassewitz, 22.11.2002
|
||||
;
|
||||
; FILE* __fastcall__ _fopen (const char* name, const char* mode, FILE* f);
|
||||
@@ -23,7 +23,7 @@
|
||||
.proc __fopen
|
||||
|
||||
sta file
|
||||
stx file ; Save f
|
||||
stx file+1 ; Save f
|
||||
|
||||
; Get a pointer to the mode string
|
||||
|
||||
@@ -76,7 +76,7 @@ invmode:
|
||||
jmp incsp4
|
||||
|
||||
; Mode string successfully parsed. Store the binary mode onto the stack in
|
||||
; the same place where the mode string pointer was before. The call open()
|
||||
; the same place where the mode string pointer was before. Then call open()
|
||||
|
||||
modeok: ldy #$00
|
||||
txa ; Mode -> A
|
||||
|
||||
Reference in New Issue
Block a user