Programming with Ophis | ||
---|---|---|
<<< Previous | Ophis Command Reference | Next >>> |
Compound arguments may be built up from simple ones, using the standard +, -, *, and / operators, which carry the usual precedence. Also, the unary operators > and <, which bind more tightly than anything else, provide the high and low bytes of 16-bit values, respectively.
Use brackets [ ] instead of parentheses ( ) when grouping arithmetic operations, as the parentheses are needed for the indirect addressing modes.
Examples:
$D000 evaluates to $D000
$D000+32 evaluates to $D020
$D000+$20 also evaluates to $D020
<$D000+32 evaluates to $20
>$D000+32 evaluates to $F0
>[$D000+32] evaluates to $D0
>[$D000-275] evaluates to $CE
<<< Previous | Home | Next >>> |
Basic arguments | Up | Memory Model |