inline_basic_assembler
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
inline_basic_assembler [2025/06/19 15:16] – [Example of Use] reggie | inline_basic_assembler [2025/06/20 10:17] (current) – [Dragon Basic Inline Assembler] reggie | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Dragon Basic Inline Assembler ====== | ====== Dragon Basic Inline Assembler ====== | ||
- | This utility (GTAsm) is intended for small 6809 machine language | + | This utility (GTAsm) is intended for developing |
[[https:// | [[https:// | ||
Line 38: | Line 38: | ||
Or, since we used the DEFUSR1 directive: | Or, since we used the DEFUSR1 directive: | ||
- | A=USR1(0) | + | A=USR01(0) |
| | ||
EXEC remembers its last address, so as long as we don't use it (or DEFUSR0) for something else we can type plain EXEC to re-run the assembler. | EXEC remembers its last address, so as long as we don't use it (or DEFUSR0) for something else we can type plain EXEC to re-run the assembler. | ||
Line 51: | Line 51: | ||
TFR (use TRF instead - this is a simple error) | TFR (use TRF instead - this is a simple error) | ||
+ | | ||
+ | === Addressing === | ||
+ | |||
+ | Use standard brackets rather than square to specify indirect addressing. Use the "<" | ||
+ | |||
+ | JSR (, | ||
+ | LDA (CURSPOS) | ||
+ | LDB > | ||
+ | CLR < | ||
| | ||
=== Directives === | === Directives === | ||
Line 80: | Line 89: | ||
A comment can be added after any valid statement without preceding it with any special character. | A comment can be added after any valid statement without preceding it with any special character. | ||
- | When assembly fails there are a number of useful error messages. Beware that some errors can be missed; sometimes you can write garbage | + | When assembly fails there are a number of useful error messages. Beware that some errors can be missed; sometimes you can write garbage |
Keep lines to a reasonable length to avoid a bug in Basic. Entering a line of the maximum length then trying to edit it can cause a system crash. This appears to be due to the single-quote being stored as a two-byte token. | Keep lines to a reasonable length to avoid a bug in Basic. Entering a line of the maximum length then trying to edit it can cause a system crash. This appears to be due to the single-quote being stored as a two-byte token. | ||
Line 143: | Line 152: | ||
| | ||
- | ==== About ==== | + | ==== Credits |
GTAsm was hand written in machine code by Gwilym Thomas and is copyright © 1985. It probably hasn't been debugged since then so don't expect it to be free of errors. But do feel free to have fun with it developing 6809 assembly language programs for your Dragon 32. | GTAsm was hand written in machine code by Gwilym Thomas and is copyright © 1985. It probably hasn't been debugged since then so don't expect it to be free of errors. But do feel free to have fun with it developing 6809 assembly language programs for your Dragon 32. | ||
inline_basic_assembler.1750346185.txt.gz · Last modified: 2025/06/19 15:16 by reggie