| 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.
You may use parentheses ( ), brackets [ ], or curly braces { } to group arithmetic expressions. Note that a fully parenthesized expression will be interpreted as an indirect addressing mode.
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 |