until
statement after repeat
statement.#After the closing brace of a section of repeated code, there should be until <expression>
on the next line
2#Port not supported by target PIC#The port referred to is not recognised for the target PIC. Most port names will be of the form PORTX
. Check which ports are supported by your PIC.porta.3 = high
portb.6 = low
high
or low
instead of 1 or 0 respectively.porta.3 = high
portb.6 = low
"PORTA = 6"
would output the number 6 on PORTA
of the PIC.(
has a corresponding closing bracket )
.
8#'=' in expression, did you mean '=='?#Use the operator ==
to test for the equality of two variables. Use the operator =
for assignment. if x = 2 then ...
if x == 2 then ...
3 + + 5
a = 0
if then
{
...
}
14#Missing argument(s) from 'alias' statement#The alias statement takes 2 arguments: the targetted expression, and the alias name, respectively. alias PORTA led
creates the alias led
for PORTA
alias PORTA led
creates the alias led
for PORTA
include
statement.
17#Number too big#Numbers must be integers in the range 0 to 255, this is because Microbe only supports 8-bit numbers.
18#Unexpected statement after '}'#There is a mistake in the syntax.
19#A constant expression must follow step#In a for
statement, if a step is specified, it must be a constant expression. for i = 0 to 10 step 3
for i = 30 to 0 step -(10 * 7)
delay
takes a single argument, the length of delay required in milliseconds. The length of delay must be a constant expression.delay 7 * 3000
delay 1
<=
, >=
and !=
, not =<
, =>
or =!
.end
statement, and called from the program with call subname
.
255#Internal compiler error#The Microbe compiler has encountered an internal problem. Microbe is still very much in development, and it is likely that this is a genuine bug. Please report this to the authors, as detailed in the Help->About Dialog, so that it can be fixed.