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 19:24] – [Dragon Basic Inline Assembler] 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 developing small 6809 machine language routines that enhance programs written mostly in Dragon Basic, for example a routine to scroll the graphics screen. The assembly source code is written in Basic comment statements. | + | This utility (GTAsm) is intended for developing small 6809 machine language routines that enhance programs written mostly in Dragon Basic, for example a routine to scroll the graphics screen. The assembly source code is written in Basic comment statements. This documentation assumes a good working knowledge of the 6809 and the Dragon 32. |
[[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 === |
inline_basic_assembler.1750361051.txt.gz · Last modified: 2025/06/19 19:24 by reggie