An odd BASIC INPUT problem
Posted: Thu Jan 22, 2004 11:12 am
I posted this some time ago at the Lemon forum, but I figured it would not be out of place here:
I transfered some of my mathematical BASIC programs from floppy to the PC to use in emulators, but I noticed that some don't work as they should with CCS64.
I isolated a line that CCS64 did not like. Let's say that the { symbol represents the symbol you get if you type SHIFT with the move-cursor-right key on the C64 within quotes (which should give the effect of moving one space to the left with the INPUT and PRINT commands). For some reason, if I have a line such as INPUT"!{{";N in a program, when any number is entered for the input, the message ?REDO FROM START appears. The program is stuck like this -- any attempt to enter a number gives that message.
VICE has no such problem. Is this a bug with CCS64 or what?
By the way, the reason I have such an input line is to put the ! symbol at the left of the screen and have the user enter a number that appears right next to the ! symbol. I read there's a way to get rid of the ? that shows with INPUT lines, so I know I could just program it differently, but what I am curious about here is why CCS64 handles my INPUT line differently than my real C64 and VICE.
I transfered some of my mathematical BASIC programs from floppy to the PC to use in emulators, but I noticed that some don't work as they should with CCS64.
I isolated a line that CCS64 did not like. Let's say that the { symbol represents the symbol you get if you type SHIFT with the move-cursor-right key on the C64 within quotes (which should give the effect of moving one space to the left with the INPUT and PRINT commands). For some reason, if I have a line such as INPUT"!{{";N in a program, when any number is entered for the input, the message ?REDO FROM START appears. The program is stuck like this -- any attempt to enter a number gives that message.
VICE has no such problem. Is this a bug with CCS64 or what?
By the way, the reason I have such an input line is to put the ! symbol at the left of the screen and have the user enter a number that appears right next to the ! symbol. I read there's a way to get rid of the ? that shows with INPUT lines, so I know I could just program it differently, but what I am curious about here is why CCS64 handles my INPUT line differently than my real C64 and VICE.