mirror of
https://github.com/cc65/cc65.git
synced 2025-02-10 09:31:08 +00:00
sim65: If mode argument is omitted, use a reasonable default.
This commit is contained in:
parent
aba320eade
commit
974188796c
@ -175,6 +175,13 @@ static void PVOpen (CPURegs* Regs)
|
||||
unsigned Flags = PopParam (2);
|
||||
unsigned Name = PopParam (2);
|
||||
|
||||
if (Regs->YR - 4 < 2) {
|
||||
/* If the caller did not supply the mode argument,
|
||||
** use a reasonable default.
|
||||
*/
|
||||
Mode = 0400 | 0200;
|
||||
}
|
||||
|
||||
do {
|
||||
Path[I] = MemReadByte (Name++);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user