mist64 / cbmbasic

cbmbasic, a portable version of Commodore's version of Microsoft BASIC 6502 as found on the Commodore 64
438 stars 64 forks source link

OPEN 1,0 gives an error: "?MISSING FILE NAME ERROR IN" #13

Open mobluse opened 3 years ago

mobluse commented 3 years ago

A line with OPEN 1,0 gives an error: "?MISSING FILE NAME ERROR IN", but doesn't give an error in VIC20, C64, or Commander X16.

This is used to INPUT#1,A$ a string from keyboard without showing a prompt ("? ").

https://retrocomputing.stackexchange.com/questions/4883/c64-basic-how-to-suppress-the-sign-when-using-the-input-command

mist64 commented 3 years ago

Works for me on the current ROM master.

Screenshot 2021-03-28 at 11 40 44
mobluse commented 3 years ago

But it looks like you run x16emu. I run cbmbasic downloaded from here and compiled and tested in Raspberry Pi OS (most upgraded) today. Should I get a ROM from somewhere else?

git clone https://github.com/mist64/cbmbasic/
cd cbmbasic/
make
sudo mv cbmbasic /usr/bin/
cbmbasic

    **** COMMODORE 64 BASIC V2 ****

 64K RAM SYSTEM  38911 BASIC BYTES FREE

READY.
LOAD"OPEN10TEST.PRG",8
LOADING FROM $0801 to $0839

READY.
LIST

10 OPEN1,0
20 PRINT"NAME: ";
30 INPUT#1,A$
40 PRINT:PRINT"NAME = ";A$
READY.
RUN

?MISSING FILE NAME  ERROR IN 10
READY.
mist64 commented 3 years ago

Hahahaha, I'm the best! I got this notification, and I confused X16 and cbmbasic! :D :D

Yup, this is a problem with the KERNAL emulation in C.