sd-8516_assembly_language_part_ii
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| sd-8516_assembly_language_part_ii [2026/02/14 02:59] – appledog | sd-8516_assembly_language_part_ii [2026/02/14 03:02] (current) – appledog | ||
|---|---|---|---|
| Line 210: | Line 210: | ||
| == Lesson 11: Debugging Techniques | == Lesson 11: Debugging Techniques | ||
| - | There are several ways you can debug programs in SDA assembly. | + | There are several ways you can debug programs in SDA assembly. |
| + | |||
| + | === SED/CLD | ||
| + | In research or development builds, inserting SED will turn on trace debugging and you will be able to see what the CPU is executing. However, for release or community edition builds | ||
| === INT 05h IO_PUTNUM | === INT 05h IO_PUTNUM | ||
| - | One way is to use IO_PUTNUM | + | IO_PUTNUM |
| LDB #10 ; print a number in b (0-65535) | LDB #10 ; print a number in b (0-65535) | ||
| + | | ||
| LDAH $63 ; IO_PUTNUM | LDAH $63 ; IO_PUTNUM | ||
| INT $05 | INT $05 | ||
| === INT 05h IO_PRINT_STR | === INT 05h IO_PRINT_STR | ||
| + | Similarly, IO_PRINT_STR will print a string followed by a newline. | ||
| + | |||
| LDBLX @hello_world | LDBLX @hello_world | ||
| LDAH $66 ; IO_PRINT_STR | LDAH $66 ; IO_PRINT_STR | ||
sd-8516_assembly_language_part_ii.txt · Last modified: by appledog
