[quote=“thwill, post:68, topic:16030, full:true”]
- MMBasic doesn’t allow “THEN ”. So I have to change everything to use “THEN GOTO ”. Not bad, but annoying since “THEN ” is standard BASIC.
Should work, see my earlier comment.
I just did a minimalist test and it does work. Weird that it didn’t work when I used the old tyme BASIC programs. Something else must be at play here.
- Variables like X and X$ cannot exist at the same time. Again, not bad, but annoying. But old BASIC allowed for it.
That’s life, personally I think it is an improvement.
I agree. It was just when porting the old programs that it was a “problem”.
- There is no new line after an INPUT statement. So I need to add a PRINT after every INPUT.
Really, can we have a full minimal example ?
10 input “What is your name”;N$
20 print "Hello ";N$
When run I displayed is “What is you name? fredHelloFred”.
- The COLOR command is different and has some issues.
Different to what ? I wasn’t aware there was a standard.
Works on my PicoMite VGA USB running v6.00.02b17. Perhaps you are running older firmware, or perhaps we need a full minimal example ?
Mine is reporting version 5.09.
Like I said, more testing needed. This looks like it was bad documentation.
The documentation I am working from says this for the COLOR command:
“The background is optional and if not specified will default to black.”
But it doesn’t default to black. It works if I specify it.
- There are other minor incompatibilities from older BASIC. LOCATE is pixel based, not character based. I figured out how to fix that, though, by using MM.FONTWIDTH and MM.FONTHEIGHT.
Does MMBasic even have a LOCATE command ? or are you comparing apples with oranges ?
No. I misspoke. I used the PRINT @(x,y) for the LOCATE stuff I was converting.
The the x,y used are pixel values, not character values. So if I want to locate something at 5 lines down, 5 characters over, PRINT @(5,5) “Hello” won’t do what I expect.
So if I want to print something 5 lines down and 2 characters over, I have to do:
PRINT @(5 * MM.FONTWIDTH,5 * MM.FONTHEIGHT) “Hello”