mirror of
https://github.com/KarolS/millfork.git
synced 2024-12-22 16:31:02 +00:00
6809: Document direct addressing mode
This commit is contained in:
parent
f0b083abea
commit
8ec82ef520
@ -42,6 +42,11 @@ but you need to be careful with using absolute vs immediate addressing:
|
|||||||
}
|
}
|
||||||
return result
|
return result
|
||||||
}
|
}
|
||||||
|
|
||||||
|
To use the direct addressing mode, prepend the argument with `<`:
|
||||||
|
|
||||||
|
CLR <$6f // clears the byte $6f in the direct page
|
||||||
|
CLR $6f // clears the byte $006f (absolute address!)
|
||||||
|
|
||||||
Any assembly opcode can be prefixed with `?`, which allows the optimizer change it or elide it if needed.
|
Any assembly opcode can be prefixed with `?`, which allows the optimizer change it or elide it if needed.
|
||||||
Opcodes without that prefix will be always compiled as written.
|
Opcodes without that prefix will be always compiled as written.
|
||||||
|
@ -30,5 +30,7 @@ Colons are required in label declarations.
|
|||||||
|
|
||||||
* 6809: `0,X` is assembled the same as `,X`.
|
* 6809: `0,X` is assembled the same as `,X`.
|
||||||
|
|
||||||
|
* 6502: To enforce direct-page addressing, prepend the argument with `<`: `<arg`.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user