ARMbasic Compiler Problem

Questions on other types of hardware and getting it talking to the ARM CPU
Post Reply
David Senften
Posts: 1
Joined: Thu Apr 30, 2020 8:15 pm

ARMbasic Compiler Problem

Post by David Senften »

I have been using the BASICtools software for some time.
I recently reinstalled BASICtools and now I can only compile successfully if I enter a program from the keyboard.
When I load a text file from Notepad I get "Unreachable statement" errors for such things as:
A= 1 TO 10
(and others)

These all compile perfectly when entered from my computer keyboard.
Any suggestions?

Dave Senften

Posts: 1090
Joined: Fri Oct 19, 2012 2:39 am
Location: Weeki Watchee, FL

Re: ARMbasic Compiler Problem

Post by basicchip »

The compiler now expects a MAIN: to be part of your program, and in any large program would be there anyway

So when you load a file in for compiling it must have a MAIN; and if your code starts at the first statement the MAIN: needs to be there.

I will add a page to describe unreachable statement errors in the help files. Thanks for pointing that out

Post Reply