Specifications
Saturn Syntax of Assembler Statements3-9
Psy-Q Development System
Assembler Operators
The Assemblers make use of the following expression operators:
Symbol Type Usage Action
( ) Primary (a) Brackets of Parenthesis
+ Unary +a a is positive
- Unary -a a is negative (see Note
1
)
= Binary a=b Assign or equate b to a
+ Binary a+b Increment a by b
- Binary a-b Decrement a by b
* Binary a*b Multiply a by b
/ Binary a/b Divide a by b, giving the quotient
% Binary a%b Divide a by b, giving the modulus
<< Binary a<<b Shift a to the left, b times
>> Binary a>>b Shift a to the right, b times
~ Unary ~a Logical compliment or NOT a
& Binary a&b a is logically ANDed by b
^ Binary a^b a is exclusively ORed by b
! Binary a!b a is inclusively ORed by b
| Binary a|b Acts the same as a!b
<> Binary a<>b a is unequal to b
< Binary a<b a is less than b
> Binary a>b a is greater than b
<= Binary a<=b a is less than or equals b
>= Binary a>=b a is greater than or equals b
Note
1
Since the Assemblers will evaluate 32-bit expressions, the negation bit is
Bit 31. Therefore, $FFFFFF and $FFFFFFF are positive hex numbers; $FFFFFFFF is
a negative number
Note
2
If a comparison evaluates as true, the result is returned as -1; if it evaluates as
false, the result is returned as 0.