Armstrong
The Armstrong syntax guide.
Hex
Use hexadecimal values for Addresses.
0xff
Decimal
Use decimal values for Immediate Integers.
213
Comments
How to add comment to your code.
Syntax
// 〈 Your Comment 〉
Example
// This is a comment
Registers
How to address a register.
Syntax
@ 〈 Register Name 〉
Available
Name | Example |
---|---|
Register A - C | @A @B @C |
Expansion Port | @EX |
Labels
A label is a place in the program you can jump to.
You can also see it as an address in the program.
Syntax
# 〈 Label Name 〉
Example
#start
Variables
Variable can contain an an integers only.
You can think of them as addresses in memory.
Syntax
$ 〈 Variable Name 〉
Example
$ballVelocity
Comparator
Some functions compare two values and
determine if their relationship is valid.
Types
Symbol | Meaning |
---|---|
< | Is A less than B |
> | Is A greater than B |
== | Are A and B equal |
!= | Are A and B not equal |