Page 1 of 1

Problem in BASCtools 5.16?

Posted: Sun Mar 17, 2013 8:01 pm
by rhilbish
I just downloaded the latest version of BASICtools (About identifies the version as "ARMBasic [8.22c] on the PC. BACICtools [5.16] is freeware...."). When I attempt to run a Basic program that has compiled and executed fine under the previous version, I now get the error message "ERROR: C:/Program Files/Coridium/BASIClib/RTC.bas: 124: Duplicate Name, found SLEEP(x)". My program includes "RTC.bas" and "String.bas"; I do not define SLEEP anywhere in my program. Line 124 is indeed the line that defines SLEEP in RTC.bas. That is the only definition of sleep that I can find. Is this a problem in BACSICtools? Would appreciate any suggestions.

Re: Problem in BASCtools 5.16?

Posted: Sun Mar 17, 2013 9:38 pm
by basicchip
SLEEP is now a reserved word in BASIC, and is used to emit a WFI instruction whis puts the CPU. Into a low power state.

The new RTC.bas file renames that routine IDLE, rather than sleep