1
0
mirror of https://github.com/mnaberez/py65.git synced 2024-11-19 06:31:08 +00:00

Document interactive assembly mode

This commit is contained in:
Mike Naberezny 2012-01-15 13:04:27 -08:00
parent 6cdf95f4ef
commit c81eb0dcb6

View File

@ -116,16 +116,25 @@ Command Reference
commands. If a label already exists at the address, it will be silently commands. If a label already exists at the address, it will be silently
overwritten. overwritten.
.. describe:: assemble <address> <statement> .. describe:: assemble <address> [<statement>]
Assemble a statement at the address:: Assemble a single statement at an address::
.assemble c000 lda $a0,x .assemble c000 lda $a0,x
$c000 b5 a0 LDA $a0,X $c000 b5 a0 LDA $a0,X
The assembler supports all legal NMOS 6502 opcodes and addressing modes. If If no statement is given, interactive assembly mode will start::
you have defined labels with ``add_label``, you may use those labels in the
address and the operand. .assemble c000
$c000
Enter a statement and it will be assembled at the current address. The
address will then be incremented and another statement may be entered.
Press Enter or Return without entering a statement to exit interactive
assembly mode.
If you have defined labels with add_label, you may use those labels in
the address and the operand.
.. describe:: cd <path> .. describe:: cd <path>