These rules pertain to labels, comments, structures, and global variables:
- Each label must end with a colon; labels may contain the @ character. For example, x1: and @x2: would be valid labels, but x3 would not - it lacks a colon.
- Comments must use C/ C++ syntax: either starting with double slash characters ( // ) or enclosed by slash and asterisk characters ( /* ... */ ).
- To refer to a field in a structure, use the struct construct:
struct(structTypeName.fieldName) structAddress
For example, suppose that
A0 points to structure
WindowRecord. This instruction moves the structure's
refCon field to
D0:
move.l struct(WindowRecord.refCon) (A0), D0
- To refer to a global variable, merely use its name, as in the statement
move.w x,d0 // Move x into d0