Publish VCC Plus OSS source distribution for 3.6.2 build 60
This commit is contained in:
commit
c652a5276d
1192 files changed
+272368
No files matched your search
@@ -0,0 +1,315 @@
|
||||
{
|
||||
"sourceSHA256": "a555c419b539d5ba783ab5f66f0662926caee58c1635a080dddb45ebebd82174",
|
||||
"entries": [
|
||||
{"category": "LWASM Directives", "detail": "LWASM directive. Its effects take place during assembly.", "name": "*PRAGMAPOP", "operation": "Restore saved pragma settings.", "sources": ["Astle, LWTools 4.25, ch. 3"], "syntax": "*PRAGMAPOP"},
|
||||
{"category": "LWASM Directives", "detail": "LWASM directive. Its effects take place during assembly.", "name": "*PRAGMAPUSH", "operation": "Save pragma settings on the assembler’s pragma stack.", "sources": ["Astle, LWTools 4.25, ch. 3"], "syntax": "*PRAGMAPUSH"},
|
||||
{"category": "Registers & Flags", "name": "A", "operation": "Eight-bit accumulator. A forms the high byte of D.", "sources": ["Motorola (1981), ch. 1"]},
|
||||
{"category": "Instructions", "flags": "CC is preserved.", "form": "inherent", "name": "ABX", "operation": "Add the unsigned byte in B to X.", "sources": ["Atkinson (2009), pp. 4", "Motorola (1981), Appendix A, ABX", "Astle, LWTools 4.25, ch. 3"], "syntax": "No operand"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. V marks signed overflow. C marks unsigned carry. H records carry from bit 3.", "form": "value", "name": "ADCA", "operation": "Add the operand and incoming carry to A. Keep the low 8 bits in A.", "sources": ["Atkinson (2009), pp. 5", "Motorola (1981), Appendix A, ADCA", "Astle, LWTools 4.25, ch. 3"], "syntax": "#literal · <direct · offset,X · >address"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. V marks signed overflow. C marks unsigned carry. H records carry from bit 3.", "form": "value", "name": "ADCB", "operation": "Add the operand and incoming carry to B. Keep the low 8 bits in B.", "sources": ["Atkinson (2009), pp. 5", "Motorola (1981), Appendix A, ADCB", "Astle, LWTools 4.25, ch. 3"], "syntax": "#literal · <direct · offset,X · >address"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. V marks signed overflow. C marks unsigned carry. H is preserved.", "form": "value", "hd6309": true, "name": "ADCD", "operation": "Add the operand and incoming carry to D. Keep the low 16 bits in D.", "sources": ["Atkinson (2009), pp. 6", "Astle, LWTools 4.25, ch. 3"], "syntax": "#literal · <direct · offset,X · >address"},
|
||||
{"category": "Instructions", "detail": "The destination selects the width. A word source supplies its low byte to a byte destination. For a word destination A/B supply D, E/F supply W, CC is zero-extended and DP supplies the high byte. PC is undefined in this family. See Atkinson, p. 143.", "flags": "N reflects the sign bit. Z marks a zero result. V marks signed overflow. C marks unsigned carry.", "form": "pair", "hd6309": true, "name": "ADCR", "operation": "Add source and carry to destination.", "sources": ["Atkinson (2009), pp. 7", "Astle, LWTools 4.25, ch. 3"], "syntax": "source register,destination register"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. V marks signed overflow. C marks unsigned carry. H records carry from bit 3.", "form": "value", "name": "ADDA", "operation": "Add the operand to A. Keep the low 8 bits in A.", "sources": ["Atkinson (2009), pp. 8", "Motorola (1981), Appendix A, ADDA", "Astle, LWTools 4.25, ch. 3"], "syntax": "#literal · <direct · offset,X · >address"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. V marks signed overflow. C marks unsigned carry. H records carry from bit 3.", "form": "value", "name": "ADDB", "operation": "Add the operand to B. Keep the low 8 bits in B.", "sources": ["Atkinson (2009), pp. 8", "Motorola (1981), Appendix A, ADDB", "Astle, LWTools 4.25, ch. 3"], "syntax": "#literal · <direct · offset,X · >address"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. V marks signed overflow. C marks unsigned carry. H is preserved.", "form": "value", "name": "ADDD", "operation": "Add the operand to D. Keep the low 16 bits in D.", "sources": ["Atkinson (2009), pp. 9", "Motorola (1981), Appendix A, ADDD", "Astle, LWTools 4.25, ch. 3"], "syntax": "#literal · <direct · offset,X · >address"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. V marks signed overflow. C marks unsigned carry. H records carry from bit 3.", "form": "value", "hd6309": true, "name": "ADDE", "operation": "Add the operand to E. Keep the low 8 bits in E.", "sources": ["Atkinson (2009), pp. 8", "Astle, LWTools 4.25, ch. 3"], "syntax": "#literal · <direct · offset,X · >address"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. V marks signed overflow. C marks unsigned carry. H records carry from bit 3.", "form": "value", "hd6309": true, "name": "ADDF", "operation": "Add the operand to F. Keep the low 8 bits in F.", "sources": ["Atkinson (2009), pp. 8", "Astle, LWTools 4.25, ch. 3"], "syntax": "#literal · <direct · offset,X · >address"},
|
||||
{"category": "Instructions", "detail": "The destination selects the width. A word source supplies its low byte to a byte destination. For a word destination A/B supply D, E/F supply W, CC is zero-extended and DP supplies the high byte. PC is undefined in this family. See Atkinson, p. 143.", "flags": "N reflects the sign bit. Z marks a zero result. V marks signed overflow. C marks unsigned carry.", "form": "pair", "hd6309": true, "name": "ADDR", "operation": "Add source to destination.", "sources": ["Atkinson (2009), pp. 10", "Astle, LWTools 4.25, ch. 3"], "syntax": "source register,destination register"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. V marks signed overflow. C marks unsigned carry. H is preserved.", "form": "value", "hd6309": true, "name": "ADDW", "operation": "Add the operand to W. Keep the low 16 bits in W.", "sources": ["Atkinson (2009), pp. 9", "Astle, LWTools 4.25, ch. 3"], "syntax": "#literal · <direct · offset,X · >address"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. V clears. C is preserved.", "form": "maskMemory", "hd6309": true, "name": "AIM", "operation": "Combine the literal mask and the addressed byte with AND. Write the result to that address.", "sources": ["Atkinson (2009), pp. 11", "Astle, LWTools 4.25, ch. 3"], "syntax": "#mask,address · #mask,offset,X"},
|
||||
{"category": "LWASM Directives", "detail": "LWASM directive. Its effects take place during assembly.", "name": "ALIGN", "operation": "Advance to a boundary divisible by the supplied value.", "sources": ["Astle, LWTools 4.25, ch. 3"], "syntax": "ALIGN boundary"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. V clears. C is preserved.", "form": "value", "name": "ANDA", "operation": "Keep bits set in both inputs. Combine A with the operand and save the result in A.", "sources": ["Atkinson (2009), pp. 12", "Motorola (1981), Appendix A, ANDA", "Astle, LWTools 4.25, ch. 3"], "syntax": "#literal · <direct · offset,X · >address"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. V clears. C is preserved.", "form": "value", "name": "ANDB", "operation": "Keep bits set in both inputs. Combine B with the operand and save the result in B.", "sources": ["Atkinson (2009), pp. 12", "Motorola (1981), Appendix A, ANDB", "Astle, LWTools 4.25, ch. 3"], "syntax": "#literal · <direct · offset,X · >address"},
|
||||
{"category": "Instructions", "flags": "Any CC bit can clear.", "form": "immediate", "name": "ANDCC", "operation": "Keep only CC bits selected by the mask.", "sources": ["Atkinson (2009), pp. 13", "Motorola (1981), Appendix A, ANDCC", "Astle, LWTools 4.25, ch. 3"], "syntax": "#mask"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. V clears. C is preserved.", "form": "value", "hd6309": true, "name": "ANDD", "operation": "Keep bits set in both inputs. Combine D with the operand and save the result in D.", "sources": ["Atkinson (2009), pp. 14", "Astle, LWTools 4.25, ch. 3"], "syntax": "#literal · <direct · offset,X · >address"},
|
||||
{"category": "Instructions", "detail": "The destination selects the width. A word source supplies its low byte to a byte destination. For a word destination A/B supply D, E/F supply W, CC is zero-extended and DP supplies the high byte. PC is undefined in this family. See Atkinson, p. 143.", "flags": "N reflects the sign bit. Z marks a zero result. V clears. C is preserved.", "form": "pair", "hd6309": true, "name": "ANDR", "operation": "Apply bitwise AND to the destination using the source.", "sources": ["Atkinson (2009), pp. 15", "Astle, LWTools 4.25, ch. 3"], "syntax": "source register,destination register"},
|
||||
{"aliases": ["LSL"], "category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. C receives the old top bit. V is N XOR C. H is undefined.", "form": "memory", "name": "ASL", "operation": "Operate on a memory byte. Shift one place left and fill bit 0 with zero.", "sources": ["Atkinson (2009), pp. 16–17", "Motorola (1981), Appendix A, ASL", "Astle, LWTools 4.25, ch. 3"], "syntax": "<direct · offset,X · >address"},
|
||||
{"aliases": ["LSLA"], "category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. C receives the old top bit. V is N XOR C. H is undefined.", "form": "inherent", "name": "ASLA", "operation": "Operate on register A. Shift one place left and fill bit 0 with zero.", "sources": ["Atkinson (2009), pp. 16–17", "Motorola (1981), Appendix A, ASLA", "Astle, LWTools 4.25, ch. 3"], "syntax": "No operand"},
|
||||
{"aliases": ["LSLB"], "category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. C receives the old top bit. V is N XOR C. H is undefined.", "form": "inherent", "name": "ASLB", "operation": "Operate on register B. Shift one place left and fill bit 0 with zero.", "sources": ["Atkinson (2009), pp. 16–17", "Motorola (1981), Appendix A, ASLB", "Astle, LWTools 4.25, ch. 3"], "syntax": "No operand"},
|
||||
{"aliases": ["LSLD"], "category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. C receives the old top bit. V is N XOR C.", "form": "inherent", "hd6309": true, "name": "ASLD", "operation": "Operate on register D. Shift one place left and fill bit 0 with zero.", "sources": ["Atkinson (2009), pp. 16–17", "Astle, LWTools 4.25, ch. 3"], "syntax": "No operand"},
|
||||
{"aliases": ["IFC", "IFNC", "EXITM", "EXIT"], "category": "Dialect & Compatibility", "name": "ASM-09 dialect", "operation": "The ASM-09 compatibility dialect adds string equality and inequality conditionals and an early macro exit.", "sources": ["Astle, LWTools 4.25, ch. 3"]},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. C receives the old bit 0. V is preserved. H is undefined.", "form": "memory", "name": "ASR", "operation": "Operate on a memory byte. Shift right, preserving the sign bit.", "sources": ["Atkinson (2009), pp. 18–19", "Motorola (1981), Appendix A, ASR", "Astle, LWTools 4.25, ch. 3"], "syntax": "<direct · offset,X · >address"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. C receives the old bit 0. V is preserved. H is undefined.", "form": "inherent", "name": "ASRA", "operation": "Operate on register A. Shift right, preserving the sign bit.", "sources": ["Atkinson (2009), pp. 18–19", "Motorola (1981), Appendix A, ASRA", "Astle, LWTools 4.25, ch. 3"], "syntax": "No operand"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. C receives the old bit 0. V is preserved. H is undefined.", "form": "inherent", "name": "ASRB", "operation": "Operate on register B. Shift right, preserving the sign bit.", "sources": ["Atkinson (2009), pp. 18–19", "Motorola (1981), Appendix A, ASRB", "Astle, LWTools 4.25, ch. 3"], "syntax": "No operand"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. C receives the old bit 0. V is preserved.", "form": "inherent", "hd6309": true, "name": "ASRD", "operation": "Operate on register D. Shift right, preserving the sign bit.", "sources": ["Atkinson (2009), pp. 18–19", "Astle, LWTools 4.25, ch. 3"], "syntax": "No operand"},
|
||||
{"aliases": ["ASRQ", "CLRQ", "COMQ", "LSLE", "LSLF", "LSLQ", "LSRQ", "NEGE", "NEGF", "NEGW", "NEGQ", "TSTQ"], "category": "Dialect & Compatibility", "detail": "6809 expansions include ASLD, ASRD, CLRD, COMD, LSLD, LSRD, NEGD and TSTD. These names also identify real HD6309 operations. Additional 6309 convenience spellings include ASRQ, CLRQ, COMQ, LSLE, LSLF, LSLQ, LSRQ, NEGE, NEGF, NEGW, NEGQ and TSTQ. MC6800 compatibility is a separate optional dialect.", "name": "Assembler conveniences", "operation": "LWASM can expand convenience operations into several instructions when the corresponding pragma is active. The listing gives the actual expansion. A 6809 emulation of CLRD, for example, executes CLRA and CLRB separately.", "sources": ["Astle, LWTools 4.25, ch. 3"]},
|
||||
{"category": "Registers & Flags", "name": "B", "operation": "Eight-bit accumulator. B forms the low byte of D.", "sources": ["Motorola (1981), ch. 1"]},
|
||||
{"category": "Instructions", "flags": "CC can change when a destination bit in CC is selected.", "form": "bit", "hd6309": true, "name": "BAND", "operation": "Combine the selected memory bit with the destination register bit using AND. Only the destination bit changes.", "sources": ["Atkinson (2009), pp. 20", "Astle, LWTools 4.25, ch. 3"], "syntax": "A|B|CC,source bit,destination bit,direct address"},
|
||||
{"aliases": ["BHS"], "category": "Instructions", "detail": "The signed 8-bit displacement is relative to the following instruction.", "flags": "CC is preserved.", "form": "relative", "name": "BCC", "operation": "Continue at the target when C is clear (unsigned higher or equal after a compare). Otherwise execute the next instruction.", "sources": ["Atkinson (2009), pp. 21", "Motorola (1981), Appendix A, BCC", "Astle, LWTools 4.25, ch. 3"], "syntax": "target label"},
|
||||
{"aliases": ["BLO"], "category": "Instructions", "detail": "The signed 8-bit displacement is relative to the following instruction.", "flags": "CC is preserved.", "form": "relative", "name": "BCS", "operation": "Continue at the target when C is set (unsigned lower). Otherwise execute the next instruction.", "sources": ["Atkinson (2009), pp. 22", "Motorola (1981), Appendix A, BCS", "Astle, LWTools 4.25, ch. 3"], "syntax": "target label"},
|
||||
{"category": "Instructions", "flags": "CC can change when a destination bit in CC is selected.", "form": "bit", "hd6309": true, "name": "BEOR", "operation": "Combine the selected memory bit with the destination register bit using exclusive OR. Only the destination bit changes.", "sources": ["Atkinson (2009), pp. 23", "Astle, LWTools 4.25, ch. 3"], "syntax": "A|B|CC,source bit,destination bit,direct address"},
|
||||
{"category": "Instructions", "detail": "The signed 8-bit displacement is relative to the following instruction.", "flags": "CC is preserved.", "form": "relative", "name": "BEQ", "operation": "Continue at the target when Z is set (equal). Otherwise execute the next instruction.", "sources": ["Atkinson (2009), pp. 24", "Motorola (1981), Appendix A, BEQ", "Astle, LWTools 4.25, ch. 3"], "syntax": "target label"},
|
||||
{"category": "Instructions", "detail": "The signed 8-bit displacement is relative to the following instruction.", "flags": "CC is preserved.", "form": "relative", "name": "BGE", "operation": "Continue at the target when N equals V (signed greater or equal). Otherwise execute the next instruction.", "sources": ["Atkinson (2009), pp. 25", "Motorola (1981), Appendix A, BGE", "Astle, LWTools 4.25, ch. 3"], "syntax": "target label"},
|
||||
{"category": "Instructions", "detail": "The signed 8-bit displacement is relative to the following instruction.", "flags": "CC is preserved.", "form": "relative", "name": "BGT", "operation": "Continue at the target when Z is clear and N equals V (signed greater). Otherwise execute the next instruction.", "sources": ["Atkinson (2009), pp. 26", "Motorola (1981), Appendix A, BGT", "Astle, LWTools 4.25, ch. 3"], "syntax": "target label"},
|
||||
{"category": "Instructions", "detail": "The signed 8-bit displacement is relative to the following instruction.", "flags": "CC is preserved.", "form": "relative", "name": "BHI", "operation": "Continue at the target when C and Z are both clear (unsigned higher). Otherwise execute the next instruction.", "sources": ["Atkinson (2009), pp. 27", "Motorola (1981), Appendix A, BHI", "Astle, LWTools 4.25, ch. 3"], "syntax": "target label"},
|
||||
{"category": "Instructions", "flags": "CC can change when a destination bit in CC is selected.", "form": "bit", "hd6309": true, "name": "BIAND", "operation": "Combine the selected memory bit with the destination register bit using AND with the inverted source. Only the destination bit changes.", "sources": ["Atkinson (2009), pp. 29", "Astle, LWTools 4.25, ch. 3"], "syntax": "A|B|CC,source bit,destination bit,direct address"},
|
||||
{"category": "Instructions", "flags": "CC can change when a destination bit in CC is selected.", "form": "bit", "hd6309": true, "name": "BIEOR", "operation": "Combine the selected memory bit with the destination register bit using exclusive OR with the inverted source. Only the destination bit changes.", "sources": ["Atkinson (2009), pp. 30", "Astle, LWTools 4.25, ch. 3"], "syntax": "A|B|CC,source bit,destination bit,direct address"},
|
||||
{"category": "Instructions", "flags": "CC can change when a destination bit in CC is selected.", "form": "bit", "hd6309": true, "name": "BIOR", "operation": "Combine the selected memory bit with the destination register bit using OR with the inverted source. Only the destination bit changes.", "sources": ["Atkinson (2009), pp. 31", "Astle, LWTools 4.25, ch. 3"], "syntax": "A|B|CC,source bit,destination bit,direct address"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. V clears. C is preserved.", "form": "value", "name": "BITA", "operation": "Test the bits of A selected by the operand. Preserve both inputs.", "sources": ["Atkinson (2009), pp. 32", "Motorola (1981), Appendix A, BITA", "Astle, LWTools 4.25, ch. 3"], "syntax": "#literal · <direct · offset,X · >address"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. V clears. C is preserved.", "form": "value", "name": "BITB", "operation": "Test the bits of B selected by the operand. Preserve both inputs.", "sources": ["Atkinson (2009), pp. 32", "Motorola (1981), Appendix A, BITB", "Astle, LWTools 4.25, ch. 3"], "syntax": "#literal · <direct · offset,X · >address"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. V clears. C is preserved.", "form": "value", "hd6309": true, "name": "BITD", "operation": "Test the bits of D selected by the operand. Preserve both inputs.", "sources": ["Atkinson (2009), pp. 33", "Astle, LWTools 4.25, ch. 3"], "syntax": "#literal · <direct · offset,X · >address"},
|
||||
{"category": "Instructions", "flags": "Z sets if no selected error was pending.", "form": "immediate", "hd6309": true, "name": "BITMD", "operation": "Test the masked trap status bits of MD. Reading a selected sticky error clears it.", "sources": ["Atkinson (2009), pp. 34", "Astle, LWTools 4.25, ch. 3"], "syntax": "#mask"},
|
||||
{"category": "Instructions", "detail": "The signed 8-bit displacement is relative to the following instruction.", "flags": "CC is preserved.", "form": "relative", "name": "BLE", "operation": "Continue at the target when Z is set or N differs from V (signed less or equal). Otherwise execute the next instruction.", "sources": ["Atkinson (2009), pp. 35", "Motorola (1981), Appendix A, BLE", "Astle, LWTools 4.25, ch. 3"], "syntax": "target label"},
|
||||
{"category": "Instructions", "detail": "The signed 8-bit displacement is relative to the following instruction.", "flags": "CC is preserved.", "form": "relative", "name": "BLS", "operation": "Continue at the target when C or Z is set (unsigned lower or equal). Otherwise execute the next instruction.", "sources": ["Atkinson (2009), pp. 37", "Motorola (1981), Appendix A, BLS", "Astle, LWTools 4.25, ch. 3"], "syntax": "target label"},
|
||||
{"category": "Instructions", "detail": "The signed 8-bit displacement is relative to the following instruction.", "flags": "CC is preserved.", "form": "relative", "name": "BLT", "operation": "Continue at the target when N differs from V (signed less). Otherwise execute the next instruction.", "sources": ["Atkinson (2009), pp. 38", "Motorola (1981), Appendix A, BLT", "Astle, LWTools 4.25, ch. 3"], "syntax": "target label"},
|
||||
{"category": "Instructions", "detail": "The signed 8-bit displacement is relative to the following instruction.", "flags": "CC is preserved.", "form": "relative", "name": "BMI", "operation": "Continue at the target when N is set (negative). Otherwise execute the next instruction.", "sources": ["Atkinson (2009), pp. 39", "Motorola (1981), Appendix A, BMI", "Astle, LWTools 4.25, ch. 3"], "syntax": "target label"},
|
||||
{"category": "Instructions", "detail": "The signed 8-bit displacement is relative to the following instruction.", "flags": "CC is preserved.", "form": "relative", "name": "BNE", "operation": "Continue at the target when Z is clear (unequal). Otherwise execute the next instruction.", "sources": ["Atkinson (2009), pp. 40", "Motorola (1981), Appendix A, BNE", "Astle, LWTools 4.25, ch. 3"], "syntax": "target label"},
|
||||
{"category": "Instructions", "flags": "CC can change when a destination bit in CC is selected.", "form": "bit", "hd6309": true, "name": "BOR", "operation": "Combine the selected memory bit with the destination register bit using OR. Only the destination bit changes.", "sources": ["Atkinson (2009), pp. 41", "Astle, LWTools 4.25, ch. 3"], "syntax": "A|B|CC,source bit,destination bit,direct address"},
|
||||
{"category": "Instructions", "detail": "The signed 8-bit displacement is relative to the following instruction.", "flags": "CC is preserved.", "form": "relative", "name": "BPL", "operation": "Continue at the target when N is clear (nonnegative). Otherwise execute the next instruction.", "sources": ["Atkinson (2009), pp. 42", "Motorola (1981), Appendix A, BPL", "Astle, LWTools 4.25, ch. 3"], "syntax": "target label"},
|
||||
{"category": "Instructions", "detail": "The signed 8-bit displacement is relative to the following instruction.", "flags": "CC is preserved.", "form": "relative", "name": "BRA", "operation": "Continue at the target. A branch to its own label forms a hold loop.", "sources": ["Atkinson (2009), pp. 43", "Motorola (1981), Appendix A, BRA", "Astle, LWTools 4.25, ch. 3"], "syntax": "target label"},
|
||||
{"category": "Instructions", "detail": "The signed 8-bit displacement is relative to the following instruction.", "flags": "CC is preserved.", "form": "relative", "name": "BRN", "operation": "Read the displacement and continue at the next instruction.", "sources": ["Atkinson (2009), pp. 44", "Motorola (1981), Appendix A, BRN", "Astle, LWTools 4.25, ch. 3"], "syntax": "target label"},
|
||||
{"category": "Instructions", "detail": "The signed 8-bit displacement is relative to the following instruction.", "flags": "CC is preserved.", "form": "relative", "name": "BSR", "operation": "Push the following instruction’s address on S, then continue at the target. RTS returns to the caller.", "sources": ["Atkinson (2009), pp. 45", "Motorola (1981), Appendix A, BSR", "Astle, LWTools 4.25, ch. 3"], "syntax": "target label"},
|
||||
{"category": "Instructions", "detail": "The signed 8-bit displacement is relative to the following instruction.", "flags": "CC is preserved.", "form": "relative", "name": "BVC", "operation": "Continue at the target when V is clear (no signed overflow). Otherwise execute the next instruction.", "sources": ["Atkinson (2009), pp. 46", "Motorola (1981), Appendix A, BVC", "Astle, LWTools 4.25, ch. 3"], "syntax": "target label"},
|
||||
{"category": "Instructions", "detail": "The signed 8-bit displacement is relative to the following instruction.", "flags": "CC is preserved.", "form": "relative", "name": "BVS", "operation": "Continue at the target when V is set (signed overflow). Otherwise execute the next instruction.", "sources": ["Atkinson (2009), pp. 47", "Motorola (1981), Appendix A, BVS", "Astle, LWTools 4.25, ch. 3"], "syntax": "target label"},
|
||||
{"category": "Registers & Flags", "name": "CC.C", "operation": "Carry or borrow. An unsigned addition sets C when the sum exceeds the register. A comparison sets C when the unsigned left operand is lower.", "sources": ["Motorola (1981), ch. 1"]},
|
||||
{"category": "Registers & Flags", "name": "CC.E", "operation": "Entire state stacked. RTI checks E in the saved condition byte to choose between the short and full interrupt frames.", "sources": ["Motorola (1981), ch. 1"]},
|
||||
{"category": "Registers & Flags", "name": "CC.F", "operation": "Fast interrupt request mask. Set F to mask FIRQ. A saved CC value can restore the previous mask.", "sources": ["Motorola (1981), ch. 1"]},
|
||||
{"category": "Registers & Flags", "name": "CC.H", "operation": "Half carry. An eight-bit addition places the carry from bit 3 here. DAA uses H to adjust a packed decimal result.", "sources": ["Motorola (1981), ch. 1"]},
|
||||
{"category": "Registers & Flags", "name": "CC.I", "operation": "Interrupt request mask. Set I to mask IRQ. Clear I to permit IRQ when the external request is active.", "sources": ["Motorola (1981), ch. 1"]},
|
||||
{"category": "Registers & Flags", "name": "CC.N", "operation": "Negative. For operations that set N from the result, it copies the most significant bit. A signed comparison also needs V.", "sources": ["Motorola (1981), ch. 1"]},
|
||||
{"category": "Registers & Flags", "name": "CC.V", "operation": "Signed overflow. For example, adding one to $7F produces $80 in a byte and sets V.", "sources": ["Motorola (1981), ch. 1"]},
|
||||
{"category": "Registers & Flags", "name": "CC.Z", "operation": "Zero. Many arithmetic and load instructions set Z when the result is zero. After a compare, BEQ uses Z to test equality.", "sources": ["Motorola (1981), ch. 1"]},
|
||||
{"category": "Instructions", "flags": "Z sets. N, V and C clear.", "form": "memory", "name": "CLR", "operation": "Operate on a memory byte. Write zero.", "sources": ["Atkinson (2009), pp. 48–49", "Motorola (1981), Appendix A, CLR", "Astle, LWTools 4.25, ch. 3"], "syntax": "<direct · offset,X · >address"},
|
||||
{"category": "Instructions", "flags": "Z sets. N, V and C clear.", "form": "inherent", "name": "CLRA", "operation": "Operate on register A. Write zero.", "sources": ["Atkinson (2009), pp. 48–49", "Motorola (1981), Appendix A, CLRA", "Astle, LWTools 4.25, ch. 3"], "syntax": "No operand"},
|
||||
{"category": "Instructions", "flags": "Z sets. N, V and C clear.", "form": "inherent", "name": "CLRB", "operation": "Operate on register B. Write zero.", "sources": ["Atkinson (2009), pp. 48–49", "Motorola (1981), Appendix A, CLRB", "Astle, LWTools 4.25, ch. 3"], "syntax": "No operand"},
|
||||
{"category": "Instructions", "flags": "Z sets. N, V and C clear.", "form": "inherent", "hd6309": true, "name": "CLRD", "operation": "Operate on register D. Write zero.", "sources": ["Atkinson (2009), pp. 48–49", "Astle, LWTools 4.25, ch. 3"], "syntax": "No operand"},
|
||||
{"category": "Instructions", "flags": "Z sets. N, V and C clear.", "form": "inherent", "hd6309": true, "name": "CLRE", "operation": "Operate on register E. Write zero.", "sources": ["Atkinson (2009), pp. 48–49", "Astle, LWTools 4.25, ch. 3"], "syntax": "No operand"},
|
||||
{"category": "Instructions", "flags": "Z sets. N, V and C clear.", "form": "inherent", "hd6309": true, "name": "CLRF", "operation": "Operate on register F. Write zero.", "sources": ["Atkinson (2009), pp. 48–49", "Astle, LWTools 4.25, ch. 3"], "syntax": "No operand"},
|
||||
{"category": "Instructions", "flags": "Z sets. N, V and C clear.", "form": "inherent", "hd6309": true, "name": "CLRW", "operation": "Operate on register W. Write zero.", "sources": ["Atkinson (2009), pp. 48–49", "Astle, LWTools 4.25, ch. 3"], "syntax": "No operand"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. V marks signed overflow. C marks a borrow. H is undefined.", "form": "value", "name": "CMPA", "operation": "Subtract the operand from A. Keep A intact for a later branch.", "sources": ["Atkinson (2009), pp. 50", "Motorola (1981), Appendix A, CMPA", "Astle, LWTools 4.25, ch. 3"], "syntax": "#literal · <direct · offset,X · >address"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. V marks signed overflow. C marks a borrow. H is undefined.", "form": "value", "name": "CMPB", "operation": "Subtract the operand from B. Keep B intact for a later branch.", "sources": ["Atkinson (2009), pp. 50", "Motorola (1981), Appendix A, CMPB", "Astle, LWTools 4.25, ch. 3"], "syntax": "#literal · <direct · offset,X · >address"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. V marks signed overflow. C marks a borrow.", "form": "value", "name": "CMPD", "operation": "Subtract the operand from D. Keep D intact for a later branch.", "sources": ["Atkinson (2009), pp. 51", "Motorola (1981), Appendix A, CMPD", "Astle, LWTools 4.25, ch. 3"], "syntax": "#literal · <direct · offset,X · >address"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. V marks signed overflow. C marks a borrow. H is undefined.", "form": "value", "hd6309": true, "name": "CMPE", "operation": "Subtract the operand from E. Keep E intact for a later branch.", "sources": ["Atkinson (2009), pp. 50", "Astle, LWTools 4.25, ch. 3"], "syntax": "#literal · <direct · offset,X · >address"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. V marks signed overflow. C marks a borrow. H is undefined.", "form": "value", "hd6309": true, "name": "CMPF", "operation": "Subtract the operand from F. Keep F intact for a later branch.", "sources": ["Atkinson (2009), pp. 50", "Astle, LWTools 4.25, ch. 3"], "syntax": "#literal · <direct · offset,X · >address"},
|
||||
{"category": "Instructions", "detail": "The destination selects the width. A word source supplies its low byte to a byte destination. For a word destination A/B supply D, E/F supply W, CC is zero-extended and DP supplies the high byte. PC is undefined in this family. See Atkinson, p. 143.", "flags": "N reflects the sign bit. Z marks a zero result. V marks signed overflow. C marks a borrow.", "form": "pair", "hd6309": true, "name": "CMPR", "operation": "Compare destination minus source, preserving both.", "sources": ["Atkinson (2009), pp. 52", "Astle, LWTools 4.25, ch. 3"], "syntax": "source register,destination register"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. V marks signed overflow. C marks a borrow.", "form": "value", "name": "CMPS", "operation": "Subtract the operand from S. Keep S intact for a later branch.", "sources": ["Atkinson (2009), pp. 51", "Motorola (1981), Appendix A, CMPS", "Astle, LWTools 4.25, ch. 3"], "syntax": "#literal · <direct · offset,X · >address"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. V marks signed overflow. C marks a borrow.", "form": "value", "name": "CMPU", "operation": "Subtract the operand from U. Keep U intact for a later branch.", "sources": ["Atkinson (2009), pp. 51", "Motorola (1981), Appendix A, CMPU", "Astle, LWTools 4.25, ch. 3"], "syntax": "#literal · <direct · offset,X · >address"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. V marks signed overflow. C marks a borrow.", "form": "value", "hd6309": true, "name": "CMPW", "operation": "Subtract the operand from W. Keep W intact for a later branch.", "sources": ["Atkinson (2009), pp. 51", "Astle, LWTools 4.25, ch. 3"], "syntax": "#literal · <direct · offset,X · >address"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. V marks signed overflow. C marks a borrow.", "form": "value", "name": "CMPX", "operation": "Subtract the operand from X. Keep X intact for a later branch.", "sources": ["Atkinson (2009), pp. 51", "Motorola (1981), Appendix A, CMPX", "Astle, LWTools 4.25, ch. 3"], "syntax": "#literal · <direct · offset,X · >address"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. V marks signed overflow. C marks a borrow.", "form": "value", "name": "CMPY", "operation": "Subtract the operand from Y. Keep Y intact for a later branch.", "sources": ["Atkinson (2009), pp. 51", "Motorola (1981), Appendix A, CMPY", "Astle, LWTools 4.25, ch. 3"], "syntax": "#literal · <direct · offset,X · >address"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. C sets and V clears.", "form": "memory", "name": "COM", "operation": "Operate on a memory byte. Invert every bit.", "sources": ["Atkinson (2009), pp. 53–54", "Motorola (1981), Appendix A, COM", "Astle, LWTools 4.25, ch. 3"], "syntax": "<direct · offset,X · >address"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. C sets and V clears.", "form": "inherent", "name": "COMA", "operation": "Operate on register A. Invert every bit.", "sources": ["Atkinson (2009), pp. 53–54", "Motorola (1981), Appendix A, COMA", "Astle, LWTools 4.25, ch. 3"], "syntax": "No operand"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. C sets and V clears.", "form": "inherent", "name": "COMB", "operation": "Operate on register B. Invert every bit.", "sources": ["Atkinson (2009), pp. 53–54", "Motorola (1981), Appendix A, COMB", "Astle, LWTools 4.25, ch. 3"], "syntax": "No operand"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. C sets and V clears.", "form": "inherent", "hd6309": true, "name": "COMD", "operation": "Operate on register D. Invert every bit.", "sources": ["Atkinson (2009), pp. 53–54", "Astle, LWTools 4.25, ch. 3"], "syntax": "No operand"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. C sets and V clears.", "form": "inherent", "hd6309": true, "name": "COME", "operation": "Operate on register E. Invert every bit.", "sources": ["Atkinson (2009), pp. 53–54", "Astle, LWTools 4.25, ch. 3"], "syntax": "No operand"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. C sets and V clears.", "form": "inherent", "hd6309": true, "name": "COMF", "operation": "Operate on register F. Invert every bit.", "sources": ["Atkinson (2009), pp. 53–54", "Astle, LWTools 4.25, ch. 3"], "syntax": "No operand"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. C sets and V clears.", "form": "inherent", "hd6309": true, "name": "COMW", "operation": "Operate on register W. Invert every bit.", "sources": ["Atkinson (2009), pp. 53–54", "Astle, LWTools 4.25, ch. 3"], "syntax": "No operand"},
|
||||
{"category": "Instructions", "flags": "The mask updates CC. E sets for the stacked full context.", "form": "immediate", "name": "CWAI", "operation": "AND CC with the mask, stack the full interrupt context on S, then wait for an eligible interrupt.", "sources": ["Atkinson (2009), pp. 55", "Motorola (1981), Appendix A, CWAI", "Astle, LWTools 4.25, ch. 3"], "syntax": "#mask"},
|
||||
{"aliases": ["NAM", "PAG", "PAGE", "SPC", "TTL", ".BANK", ".MODULE"], "category": "Dialect & Compatibility", "name": "Compatibility directives", "operation": "LWASM accepts these listing and tool-compatibility directives without generating code.", "sources": ["Astle, LWTools 4.25, ch. 3"]},
|
||||
{"aliases": ["CC"], "category": "Registers & Flags", "detail": "Branch choices depend on how the previous instruction defined these bits. For example, Z=1 after CMP means equal; C=1 after CMP means unsigned lower. An undefined bit cannot support a portable decision.", "name": "Condition codes", "operation": "CC holds eight one-bit values. E marks an entire interrupt frame. F masks FIRQ, H is half carry, I masks IRQ. N is negative, Z zero, V signed overflow and C carry or borrow.", "sources": ["Motorola (1981), ch. 1"]},
|
||||
{"category": "Registers & Flags", "name": "D", "operation": "Sixteen-bit accumulator built from A (high) and B (low). Writing D immediately changes both halves.", "sources": ["Motorola (1981), ch. 1"]},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. C reports decimal carry. V is undefined.", "form": "inherent", "name": "DAA", "operation": "Adjust A after adding packed BCD bytes, using H and C from the addition.", "sources": ["Atkinson (2009), pp. 56", "Motorola (1981), Appendix A, DAA", "Astle, LWTools 4.25, ch. 3"], "syntax": "No operand"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. V sets on crossing from minimum negative to maximum positive. C is preserved.", "form": "memory", "name": "DEC", "operation": "Operate on a memory byte. Subtract one.", "sources": ["Atkinson (2009), pp. 57–58", "Motorola (1981), Appendix A, DEC", "Astle, LWTools 4.25, ch. 3"], "syntax": "<direct · offset,X · >address"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. V sets on crossing from minimum negative to maximum positive. C is preserved.", "form": "inherent", "name": "DECA", "operation": "Operate on register A. Subtract one.", "sources": ["Atkinson (2009), pp. 57–58", "Motorola (1981), Appendix A, DECA", "Astle, LWTools 4.25, ch. 3"], "syntax": "No operand"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. V sets on crossing from minimum negative to maximum positive. C is preserved.", "form": "inherent", "name": "DECB", "operation": "Operate on register B. Subtract one.", "sources": ["Atkinson (2009), pp. 57–58", "Motorola (1981), Appendix A, DECB", "Astle, LWTools 4.25, ch. 3"], "syntax": "No operand"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. V sets on crossing from minimum negative to maximum positive. C is preserved.", "form": "inherent", "hd6309": true, "name": "DECD", "operation": "Operate on register D. Subtract one.", "sources": ["Atkinson (2009), pp. 57–58", "Astle, LWTools 4.25, ch. 3"], "syntax": "No operand"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. V sets on crossing from minimum negative to maximum positive. C is preserved.", "form": "inherent", "hd6309": true, "name": "DECE", "operation": "Operate on register E. Subtract one.", "sources": ["Atkinson (2009), pp. 57–58", "Astle, LWTools 4.25, ch. 3"], "syntax": "No operand"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. V sets on crossing from minimum negative to maximum positive. C is preserved.", "form": "inherent", "hd6309": true, "name": "DECF", "operation": "Operate on register F. Subtract one.", "sources": ["Atkinson (2009), pp. 57–58", "Astle, LWTools 4.25, ch. 3"], "syntax": "No operand"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. V sets on crossing from minimum negative to maximum positive. C is preserved.", "form": "inherent", "hd6309": true, "name": "DECW", "operation": "Operate on register W. Subtract one.", "sources": ["Atkinson (2009), pp. 57–58", "Astle, LWTools 4.25, ch. 3"], "syntax": "No operand"},
|
||||
{"category": "LWASM Directives", "detail": "LWASM directive. Its effects take place during assembly.", "name": "DEPHASE", "operation": "Resume the original address calculation after PHASE.", "sources": ["Astle, LWTools 4.25, ch. 3"], "syntax": "DEPHASE"},
|
||||
{"category": "Instructions", "flags": "For an in-range quotient, N and Z describe it, V clears, and C receives its low bit. Signed overflow sets V. Range overflow preserves the dividend and clears N, Z and C.", "form": "value", "hd6309": true, "name": "DIVD", "operation": "Divide signed D by a signed byte. The quotient goes in B and the remainder in A. A zero divisor traps.", "sources": ["Atkinson (2009), pp. 59", "Astle, LWTools 4.25, ch. 3"], "syntax": "#literal · <direct · offset,X · >address"},
|
||||
{"category": "Instructions", "detail": "VCC Plus’s retained core has differences in DIVQ overflow and carry handling. Treat these flags as processor documentation.", "flags": "For an in-range quotient, N and Z describe it, V clears, and C receives its low bit. Signed overflow sets V. Range overflow preserves the dividend and clears N, Z and C.", "form": "value", "hd6309": true, "name": "DIVQ", "operation": "Divide signed Q by a signed word. The quotient goes in W and the remainder in D. A zero divisor traps.", "sources": ["Atkinson (2009), pp. 60", "Astle, LWTools 4.25, ch. 3"], "syntax": "#literal · <direct · offset,X · >address"},
|
||||
{"category": "Registers & Flags", "name": "DP", "operation": "Direct-page register. Its byte supplies the upper address bits of a direct operand. LWASM SETDP describes your assumption during assembly.", "sources": ["Motorola (1981), ch. 1"]},
|
||||
{"category": "LWASM Directives", "detail": "LWASM directive. Its effects take place during assembly.", "name": "DTB", "operation": "Emit six host-local date and time bytes.", "sources": ["Astle, LWTools 4.25, ch. 3"], "syntax": "DTB"},
|
||||
{"category": "LWASM Directives", "detail": "LWASM directive. Its effects take place during assembly.", "name": "DTS", "operation": "Emit a textual build timestamp. Its value changes with the host clock.", "sources": ["Astle, LWTools 4.25, ch. 3"], "syntax": "DTS"},
|
||||
{"category": "Addressing Modes", "name": "Direct", "operation": "Join DP with the 8-bit operand to make the memory address. With DP=$12, LDA <$34 reads $1234.", "sources": ["Motorola (1981), ch. 2", "Astle, LWTools 4.25, ch. 3"], "syntax": "LDA <$34"},
|
||||
{"category": "Registers & Flags", "hd6309": true, "name": "E", "operation": "Eight-bit accumulator and high byte of the HD6309 W register. CC.E is a separate flag.", "sources": ["Burke (1993), register file"]},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. V clears. C is preserved.", "form": "maskMemory", "hd6309": true, "name": "EIM", "operation": "Combine the literal mask and the addressed byte with exclusive OR. Write the result to that address.", "sources": ["Atkinson (2009), pp. 61", "Astle, LWTools 4.25, ch. 3"], "syntax": "#mask,address · #mask,offset,X"},
|
||||
{"category": "LWASM Directives", "detail": "LWASM directive. Its effects take place during assembly.", "name": "ELSE", "operation": "Select the alternate branch of a conditional assembly block.", "sources": ["Astle, LWTools 4.25, ch. 3"], "syntax": "ELSE"},
|
||||
{"aliases": [".END"], "category": "LWASM Directives", "detail": "LWASM directive. Its effects take place during assembly.", "name": "END", "operation": "Finish the assembly and specify the DECB execution address. END itself emits no machine instruction.", "sources": ["Astle, LWTools 4.25, ch. 3"], "syntax": "END entry"},
|
||||
{"aliases": ["ENDIF"], "category": "LWASM Directives", "detail": "LWASM directive. Its effects take place during assembly.", "name": "ENDC", "operation": "Close the current conditional assembly block.", "sources": ["Astle, LWTools 4.25, ch. 3"], "syntax": "ENDC"},
|
||||
{"category": "LWASM Directives", "detail": "LWASM directive. Its effects take place during assembly.", "name": "ENDM", "operation": "Finish a macro definition.", "sources": ["Astle, LWTools 4.25, ch. 3"], "syntax": "ENDM"},
|
||||
{"aliases": ["ENDSTRUCT"], "category": "LWASM Directives", "detail": "LWASM directive. Its effects take place during assembly.", "name": "ENDS", "operation": "Close a structure definition.", "sources": ["Astle, LWTools 4.25, ch. 3"], "syntax": "ENDS"},
|
||||
{"aliases": ["ENDSECTION"], "category": "LWASM Directives", "detail": "LWASM directive. Its effects take place during assembly.", "name": "ENDSECT", "operation": "Finish the current object section.", "sources": ["Astle, LWTools 4.25, ch. 3"], "syntax": "ENDSECT"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. V clears. C is preserved.", "form": "value", "name": "EORA", "operation": "Set bits where the inputs differ. Combine A with the operand and save the result in A.", "sources": ["Atkinson (2009), pp. 62", "Motorola (1981), Appendix A, EORA", "Astle, LWTools 4.25, ch. 3"], "syntax": "#literal · <direct · offset,X · >address"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. V clears. C is preserved.", "form": "value", "name": "EORB", "operation": "Set bits where the inputs differ. Combine B with the operand and save the result in B.", "sources": ["Atkinson (2009), pp. 62", "Motorola (1981), Appendix A, EORB", "Astle, LWTools 4.25, ch. 3"], "syntax": "#literal · <direct · offset,X · >address"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. V clears. C is preserved.", "form": "value", "hd6309": true, "name": "EORD", "operation": "Set bits where the inputs differ. Combine D with the operand and save the result in D.", "sources": ["Atkinson (2009), pp. 63", "Astle, LWTools 4.25, ch. 3"], "syntax": "#literal · <direct · offset,X · >address"},
|
||||
{"category": "Instructions", "detail": "The destination selects the width. A word source supplies its low byte to a byte destination. For a word destination A/B supply D, E/F supply W, CC is zero-extended and DP supplies the high byte. PC is undefined in this family. See Atkinson, p. 143.", "flags": "N reflects the sign bit. Z marks a zero result. V clears. C is preserved.", "form": "pair", "hd6309": true, "name": "EORR", "operation": "Toggle destination bits selected by the source.", "sources": ["Atkinson (2009), pp. 64", "Astle, LWTools 4.25, ch. 3"], "syntax": "source register,destination register"},
|
||||
{"aliases": ["="], "category": "LWASM Directives", "detail": "LWASM directive. Its effects take place during assembly.", "name": "EQU", "operation": "Assign a fixed value to a symbol.", "sources": ["Astle, LWTools 4.25, ch. 3"], "syntax": "name EQU expression"},
|
||||
{"category": "LWASM Directives", "detail": "LWASM directive. Its effects take place during assembly.", "name": "ERROR", "operation": "Report an assembly error with the supplied text.", "sources": ["Astle, LWTools 4.25, ch. 3"], "syntax": "ERROR message"},
|
||||
{"category": "Instructions", "detail": "Use equal-width registers on the MC6809. The HD6309 has additional registers and defined mixed-width behavior. Writing PC transfers control.", "flags": "Writing CC replaces its flags.", "form": "pair", "name": "EXG", "operation": "Exchange the contents of the two registers.", "sources": ["Atkinson (2009), pp. 65–66", "Motorola (1981), Appendix A, EXG", "Astle, LWTools 4.25, ch. 3"], "syntax": "source register,destination register"},
|
||||
{"aliases": [".GLOBL"], "category": "LWASM Directives", "detail": "LWASM directive. Its effects take place during assembly.", "name": "EXPORT", "operation": "Expose a symbol to other object modules.", "sources": ["Astle, LWTools 4.25, ch. 3"], "syntax": "EXPORT name"},
|
||||
{"category": "LWASM Directives", "detail": "LWASM directive. Its effects take place during assembly.", "name": "EXTDEP", "operation": "Mark an external symbol as a link dependency without emitting storage for it.", "sources": ["Astle, LWTools 4.25, ch. 3"], "syntax": "name EXTDEP"},
|
||||
{"aliases": ["EXTERNAL", "IMPORT"], "category": "LWASM Directives", "detail": "LWASM directive. Its effects take place during assembly.", "name": "EXTERN", "operation": "Declare a name defined in another object module.", "sources": ["Astle, LWTools 4.25, ch. 3"], "syntax": "name EXTERN"},
|
||||
{"category": "Addressing Modes", "detail": "On the CoCo 3, the address in STA >$1A00 selects a byte through the CPU memory map. The MMU chooses the physical 8 KiB block and preserves the low 13 address bits. Use Mapped CPU in the debugger to inspect that store.", "name": "Extended", "operation": "Use the full 16-bit address in the instruction. LDA >$0400 reads a byte there.", "sources": ["Tepolt (1987), p. 20, fig. 3-4", "Motorola (1981), ch. 2", "Astle, LWTools 4.25, ch. 3"], "syntax": "LDA >$0400"},
|
||||
{"category": "Registers & Flags", "hd6309": true, "name": "F", "operation": "Eight-bit accumulator and low byte of W. CC.F is the fast-interrupt mask.", "sources": ["Burke (1993), register file"]},
|
||||
{"aliases": [".BYTE", ".DB"], "category": "LWASM Directives", "detail": "LWASM directive. Its effects take place during assembly.", "name": "FCB", "operation": "Emit each expression as one byte. The listing shows data at the current location.", "sources": ["Astle, LWTools 4.25, ch. 3"], "syntax": "FCB byte[,byte…]"},
|
||||
{"aliases": [".ASCII", ".STR"], "category": "LWASM Directives", "detail": "LWASM directive. Its effects take place during assembly.", "name": "FCC", "operation": "Emit character bytes between matching delimiters.", "sources": ["Astle, LWTools 4.25, ch. 3"], "syntax": "FCC /text/"},
|
||||
{"aliases": ["FCZ", ".ASCIZ", ".STRZ"], "category": "LWASM Directives", "detail": "LWASM directive. Its effects take place during assembly.", "name": "FCN", "operation": "Emit a string followed by a zero byte.", "sources": ["Astle, LWTools 4.25, ch. 3"], "syntax": "FCN /text/"},
|
||||
{"aliases": [".ASCIS", ".STRS"], "category": "LWASM Directives", "detail": "LWASM directive. Its effects take place during assembly.", "name": "FCS", "operation": "Emit a string with the high bit set in its last character.", "sources": ["Astle, LWTools 4.25, ch. 3"], "syntax": "FCS /text/"},
|
||||
{"aliases": [".WORD", ".DW"], "category": "LWASM Directives", "detail": "LWASM directive. Its effects take place during assembly.", "name": "FDB", "operation": "Emit 16-bit words, high byte first.", "sources": ["Astle, LWTools 4.25, ch. 3"], "syntax": "FDB word[,word…]"},
|
||||
{"category": "LWASM Directives", "detail": "LWASM directive. Its effects take place during assembly.", "name": "FDBS", "operation": "Emit 16-bit values low byte first, opposite to the processor’s normal word order.", "sources": ["Astle, LWTools 4.25, ch. 3"], "syntax": "FDBS word[,word…]"},
|
||||
{"category": "LWASM Directives", "detail": "LWASM directive. Its effects take place during assembly.", "name": "FILL", "operation": "Emit the given byte repeatedly.", "sources": ["Astle, LWTools 4.25, ch. 3"], "syntax": "FILL byte,count"},
|
||||
{"aliases": [".4BYTE", ".QUAD"], "category": "LWASM Directives", "detail": "LWASM directive. Its effects take place during assembly.", "name": "FQB", "operation": "Emit 32-bit quantities, high byte first.", "sources": ["Astle, LWTools 4.25, ch. 3"], "syntax": "FQB value"},
|
||||
{"category": "Addressing Modes", "hd6309": true, "name": "HD6309 indexed", "operation": "E, F and W can supply offsets for X, Y, U or S. W also supports ,W, offset,W, ,W++ and ,--W, including their indirect forms.", "sources": ["Atkinson (2009), p. 148", "Astle, LWTools 4.25, ch. 3"], "syntax": "LDA E,X · LDA ,W++"},
|
||||
{"category": "Registers & Flags", "detail": "MD bit 0 selects native mode. Bit 1 selects full FIRQ stacking. A native full-state interrupt frame includes E and F; the mode on return must agree with the frame. Cycle counts also depend on indexed postbytes, branch outcomes and transfer lengths. In VCC Plus, Step completes a TFM instruction across its byte transfers.", "hd6309": true, "name": "HD6309 modes", "operation": "The HD6309 starts in emulation mode. Many instructions take fewer cycles in native mode. LDMD #1 selects native mode with the ordinary short FIRQ frame. Mode selection is independent of the LWASM target.", "sources": ["Atkinson (2009), pp. 2, 120, 136, 144", "Burke (1993), mode register", "VCC Plus, Native Debugger, HD6309 Step"]},
|
||||
{"category": "LWASM Directives", "detail": "LWASM directive. Its effects take place during assembly.", "name": "IFDEF", "operation": "Test whether a symbol has already been defined.", "sources": ["Astle, LWTools 4.25, ch. 3"], "syntax": "IFDEF symbol"},
|
||||
{"category": "LWASM Directives", "detail": "LWASM directive. Its effects take place during assembly.", "name": "IFEQ", "operation": "Include the following block when the expression equals zero.", "sources": ["Astle, LWTools 4.25, ch. 3"], "syntax": "IFEQ expression"},
|
||||
{"category": "LWASM Directives", "detail": "LWASM directive. Its effects take place during assembly.", "name": "IFGE", "operation": "Include the block when the expression is zero or positive.", "sources": ["Astle, LWTools 4.25, ch. 3"], "syntax": "IFGE expression"},
|
||||
{"category": "LWASM Directives", "detail": "LWASM directive. Its effects take place during assembly.", "name": "IFGT", "operation": "Include the block when the expression is positive.", "sources": ["Astle, LWTools 4.25, ch. 3"], "syntax": "IFGT expression"},
|
||||
{"category": "LWASM Directives", "detail": "LWASM directive. Its effects take place during assembly.", "name": "IFLE", "operation": "Include the block when the expression is zero or negative.", "sources": ["Astle, LWTools 4.25, ch. 3"], "syntax": "IFLE expression"},
|
||||
{"category": "LWASM Directives", "detail": "LWASM directive. Its effects take place during assembly.", "name": "IFLT", "operation": "Include the block when the expression is negative.", "sources": ["Astle, LWTools 4.25, ch. 3"], "syntax": "IFLT expression"},
|
||||
{"category": "LWASM Directives", "detail": "LWASM directive. Its effects take place during assembly.", "name": "IFNDEF", "operation": "Test whether a symbol is still undefined.", "sources": ["Astle, LWTools 4.25, ch. 3"], "syntax": "IFNDEF symbol"},
|
||||
{"aliases": ["IF"], "category": "LWASM Directives", "detail": "LWASM directive. Its effects take place during assembly.", "name": "IFNE", "operation": "Include the block when the expression is nonzero.", "sources": ["Astle, LWTools 4.25, ch. 3"], "syntax": "IFNE expression"},
|
||||
{"category": "LWASM Directives", "detail": "LWASM directive. Its effects take place during assembly.", "name": "IFP1", "operation": "Legacy pass-number conditional. LWASM warns that it cannot reproduce pass-one assembly semantics.", "sources": ["Astle, LWTools 4.25, ch. 3"], "syntax": "IFP1"},
|
||||
{"category": "LWASM Directives", "detail": "LWASM directive. Its effects take place during assembly.", "name": "IFP2", "operation": "Legacy pass-number conditional. LWASM warns that it cannot reproduce pass-two assembly semantics.", "sources": ["Astle, LWTools 4.25, ch. 3"], "syntax": "IFP2"},
|
||||
{"aliases": ["IFOPT"], "category": "LWASM Directives", "detail": "LWASM directive. Its effects take place during assembly.", "name": "IFPRAGMA", "operation": "Include a block according to the current pragma setting.", "sources": ["Astle, LWTools 4.25, ch. 3"], "syntax": "IFPRAGMA option"},
|
||||
{"category": "LWASM Directives", "detail": "LWASM directive. Its effects take place during assembly.", "name": "IFSTR", "operation": "Include a block according to the specified string comparison.", "sources": ["Astle, LWTools 4.25, ch. 3"], "syntax": "IFSTR comparison,arguments"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. V sets on crossing from maximum positive to minimum negative. C is preserved.", "form": "memory", "name": "INC", "operation": "Operate on a memory byte. Add one.", "sources": ["Atkinson (2009), pp. 67–68", "Motorola (1981), Appendix A, INC", "Astle, LWTools 4.25, ch. 3"], "syntax": "<direct · offset,X · >address"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. V sets on crossing from maximum positive to minimum negative. C is preserved.", "form": "inherent", "name": "INCA", "operation": "Operate on register A. Add one.", "sources": ["Atkinson (2009), pp. 67–68", "Motorola (1981), Appendix A, INCA", "Astle, LWTools 4.25, ch. 3"], "syntax": "No operand"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. V sets on crossing from maximum positive to minimum negative. C is preserved.", "form": "inherent", "name": "INCB", "operation": "Operate on register B. Add one.", "sources": ["Atkinson (2009), pp. 67–68", "Motorola (1981), Appendix A, INCB", "Astle, LWTools 4.25, ch. 3"], "syntax": "No operand"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. V sets on crossing from maximum positive to minimum negative. C is preserved.", "form": "inherent", "hd6309": true, "name": "INCD", "operation": "Operate on register D. Add one.", "sources": ["Atkinson (2009), pp. 67–68", "Astle, LWTools 4.25, ch. 3"], "syntax": "No operand"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. V sets on crossing from maximum positive to minimum negative. C is preserved.", "form": "inherent", "hd6309": true, "name": "INCE", "operation": "Operate on register E. Add one.", "sources": ["Atkinson (2009), pp. 67–68", "Astle, LWTools 4.25, ch. 3"], "syntax": "No operand"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. V sets on crossing from maximum positive to minimum negative. C is preserved.", "form": "inherent", "hd6309": true, "name": "INCF", "operation": "Operate on register F. Add one.", "sources": ["Atkinson (2009), pp. 67–68", "Astle, LWTools 4.25, ch. 3"], "syntax": "No operand"},
|
||||
{"aliases": ["INCL", "LIB", "USE"], "category": "LWASM Directives", "detail": "LWASM directive. Its effects take place during assembly.", "name": "INCLUDE", "operation": "Read another source file at this location.", "sources": ["Astle, LWTools 4.25, ch. 3"], "syntax": "INCLUDE filename"},
|
||||
{"category": "LWASM Directives", "detail": "LWASM directive. Its effects take place during assembly.", "name": "INCLUDEBIN", "operation": "Copy bytes from a binary file into the assembly output.", "sources": ["Astle, LWTools 4.25, ch. 3"], "syntax": "INCLUDEBIN filename"},
|
||||
{"category": "LWASM Directives", "detail": "LWASM directive. Its effects take place during assembly.", "name": "INCLUDESTR", "operation": "Treat the contents of the given string as additional assembler source.", "sources": ["Astle, LWTools 4.25, ch. 3"], "syntax": "INCLUDESTR string"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. V sets on crossing from maximum positive to minimum negative. C is preserved.", "form": "inherent", "hd6309": true, "name": "INCW", "operation": "Operate on register W. Add one.", "sources": ["Atkinson (2009), pp. 67–68", "Astle, LWTools 4.25, ch. 3"], "syntax": "No operand"},
|
||||
{"category": "Addressing Modes", "name": "Immediate", "operation": "Use the following operand bytes as the value.", "sources": ["Motorola (1981), ch. 2", "Astle, LWTools 4.25, ch. 3"], "syntax": "LDA #$20"},
|
||||
{"category": "Addressing Modes", "name": "Indexed", "operation": "Calculate an address from a register and an offset. LDA ,X+ reads at the original X then increments X by one. Use ,X++ for a two-byte advance. Indexed operands can also use A, B or D as signed offsets.", "sources": ["Motorola (1981), ch. 2", "Astle, LWTools 4.25, ch. 3"], "syntax": "LDA ,X+ · LDD 2,S · LDA B,Y"},
|
||||
{"category": "Addressing Modes", "name": "Indirect", "operation": "Use square brackets to fetch a two-byte pointer at the intermediate address, then access the final address. Use a two-byte increment when walking a pointer table.", "sources": ["Motorola (1981), ch. 2", "Astle, LWTools 4.25, ch. 3"], "syntax": "LDA [,X++] · JMP [$4000]"},
|
||||
{"category": "Addressing Modes", "name": "Inherent", "operation": "The opcode specifies the operation and its operands. INCA, for example, acts on A.", "sources": ["Motorola (1981), ch. 2", "Astle, LWTools 4.25, ch. 3"], "syntax": "INCA"},
|
||||
{"category": "Instructions", "flags": "CC is preserved.", "form": "memory", "name": "JMP", "operation": "Set PC to the effective address.", "sources": ["Atkinson (2009), pp. 69", "Motorola (1981), Appendix A, JMP", "Astle, LWTools 4.25, ch. 3"], "syntax": "<direct · offset,X · >address"},
|
||||
{"category": "Instructions", "flags": "CC is preserved.", "form": "memory", "name": "JSR", "operation": "Push the return address on S, then set PC to the effective address.", "sources": ["Atkinson (2009), pp. 70", "Motorola (1981), Appendix A, JSR", "Astle, LWTools 4.25, ch. 3"], "syntax": "<direct · offset,X · >address"},
|
||||
{"aliases": ["LBHS"], "category": "Instructions", "detail": "The signed 16-bit displacement is relative to the following instruction.", "flags": "CC is preserved.", "form": "relative", "name": "LBCC", "operation": "Continue at the target when C is clear (unsigned higher or equal after a compare). Otherwise execute the next instruction.", "sources": ["Atkinson (2009), pp. 71", "Motorola (1981), Appendix A, LBCC", "Astle, LWTools 4.25, ch. 3"], "syntax": "target label"},
|
||||
{"aliases": ["LBLO"], "category": "Instructions", "detail": "The signed 16-bit displacement is relative to the following instruction.", "flags": "CC is preserved.", "form": "relative", "name": "LBCS", "operation": "Continue at the target when C is set (unsigned lower). Otherwise execute the next instruction.", "sources": ["Atkinson (2009), pp. 72", "Motorola (1981), Appendix A, LBCS", "Astle, LWTools 4.25, ch. 3"], "syntax": "target label"},
|
||||
{"category": "Instructions", "detail": "The signed 16-bit displacement is relative to the following instruction.", "flags": "CC is preserved.", "form": "relative", "name": "LBEQ", "operation": "Continue at the target when Z is set (equal). Otherwise execute the next instruction.", "sources": ["Atkinson (2009), pp. 73", "Motorola (1981), Appendix A, LBEQ", "Astle, LWTools 4.25, ch. 3"], "syntax": "target label"},
|
||||
{"category": "Instructions", "detail": "The signed 16-bit displacement is relative to the following instruction.", "flags": "CC is preserved.", "form": "relative", "name": "LBGE", "operation": "Continue at the target when N equals V (signed greater or equal). Otherwise execute the next instruction.", "sources": ["Atkinson (2009), pp. 74", "Motorola (1981), Appendix A, LBGE", "Astle, LWTools 4.25, ch. 3"], "syntax": "target label"},
|
||||
{"category": "Instructions", "detail": "The signed 16-bit displacement is relative to the following instruction.", "flags": "CC is preserved.", "form": "relative", "name": "LBGT", "operation": "Continue at the target when Z is clear and N equals V (signed greater). Otherwise execute the next instruction.", "sources": ["Atkinson (2009), pp. 75", "Motorola (1981), Appendix A, LBGT", "Astle, LWTools 4.25, ch. 3"], "syntax": "target label"},
|
||||
{"category": "Instructions", "detail": "The signed 16-bit displacement is relative to the following instruction.", "flags": "CC is preserved.", "form": "relative", "name": "LBHI", "operation": "Continue at the target when C and Z are both clear (unsigned higher). Otherwise execute the next instruction.", "sources": ["Atkinson (2009), pp. 76", "Motorola (1981), Appendix A, LBHI", "Astle, LWTools 4.25, ch. 3"], "syntax": "target label"},
|
||||
{"category": "Instructions", "detail": "The signed 16-bit displacement is relative to the following instruction.", "flags": "CC is preserved.", "form": "relative", "name": "LBLE", "operation": "Continue at the target when Z is set or N differs from V (signed less or equal). Otherwise execute the next instruction.", "sources": ["Atkinson (2009), pp. 78", "Motorola (1981), Appendix A, LBLE", "Astle, LWTools 4.25, ch. 3"], "syntax": "target label"},
|
||||
{"category": "Instructions", "detail": "The signed 16-bit displacement is relative to the following instruction.", "flags": "CC is preserved.", "form": "relative", "name": "LBLS", "operation": "Continue at the target when C or Z is set (unsigned lower or equal). Otherwise execute the next instruction.", "sources": ["Atkinson (2009), pp. 80", "Motorola (1981), Appendix A, LBLS", "Astle, LWTools 4.25, ch. 3"], "syntax": "target label"},
|
||||
{"category": "Instructions", "detail": "The signed 16-bit displacement is relative to the following instruction.", "flags": "CC is preserved.", "form": "relative", "name": "LBLT", "operation": "Continue at the target when N differs from V (signed less). Otherwise execute the next instruction.", "sources": ["Atkinson (2009), pp. 81", "Motorola (1981), Appendix A, LBLT", "Astle, LWTools 4.25, ch. 3"], "syntax": "target label"},
|
||||
{"category": "Instructions", "detail": "The signed 16-bit displacement is relative to the following instruction.", "flags": "CC is preserved.", "form": "relative", "name": "LBMI", "operation": "Continue at the target when N is set (negative). Otherwise execute the next instruction.", "sources": ["Atkinson (2009), pp. 82", "Motorola (1981), Appendix A, LBMI", "Astle, LWTools 4.25, ch. 3"], "syntax": "target label"},
|
||||
{"category": "Instructions", "detail": "The signed 16-bit displacement is relative to the following instruction.", "flags": "CC is preserved.", "form": "relative", "name": "LBNE", "operation": "Continue at the target when Z is clear (unequal). Otherwise execute the next instruction.", "sources": ["Atkinson (2009), pp. 83", "Motorola (1981), Appendix A, LBNE", "Astle, LWTools 4.25, ch. 3"], "syntax": "target label"},
|
||||
{"category": "Instructions", "detail": "The signed 16-bit displacement is relative to the following instruction.", "flags": "CC is preserved.", "form": "relative", "name": "LBPL", "operation": "Continue at the target when N is clear (nonnegative). Otherwise execute the next instruction.", "sources": ["Atkinson (2009), pp. 84", "Motorola (1981), Appendix A, LBPL", "Astle, LWTools 4.25, ch. 3"], "syntax": "target label"},
|
||||
{"category": "Instructions", "detail": "The signed 16-bit displacement is relative to the following instruction.", "flags": "CC is preserved.", "form": "relative", "name": "LBRA", "operation": "Continue at the target. A branch to its own label forms a hold loop.", "sources": ["Atkinson (2009), pp. 85", "Motorola (1981), Appendix A, LBRA", "Astle, LWTools 4.25, ch. 3"], "syntax": "target label"},
|
||||
{"category": "Instructions", "detail": "The signed 16-bit displacement is relative to the following instruction.", "flags": "CC is preserved.", "form": "relative", "name": "LBRN", "operation": "Read the displacement and continue at the next instruction.", "sources": ["Atkinson (2009), pp. 86", "Motorola (1981), Appendix A, LBRN", "Astle, LWTools 4.25, ch. 3"], "syntax": "target label"},
|
||||
{"category": "Instructions", "detail": "The signed 16-bit displacement is relative to the following instruction.", "flags": "CC is preserved.", "form": "relative", "name": "LBSR", "operation": "Push the following instruction’s address on S, then continue at the target. RTS returns to the caller.", "sources": ["Atkinson (2009), pp. 87", "Motorola (1981), Appendix A, LBSR", "Astle, LWTools 4.25, ch. 3"], "syntax": "target label"},
|
||||
{"category": "Instructions", "detail": "The signed 16-bit displacement is relative to the following instruction.", "flags": "CC is preserved.", "form": "relative", "name": "LBVC", "operation": "Continue at the target when V is clear (no signed overflow). Otherwise execute the next instruction.", "sources": ["Atkinson (2009), pp. 88", "Motorola (1981), Appendix A, LBVC", "Astle, LWTools 4.25, ch. 3"], "syntax": "target label"},
|
||||
{"category": "Instructions", "detail": "The signed 16-bit displacement is relative to the following instruction.", "flags": "CC is preserved.", "form": "relative", "name": "LBVS", "operation": "Continue at the target when V is set (signed overflow). Otherwise execute the next instruction.", "sources": ["Atkinson (2009), pp. 89", "Motorola (1981), Appendix A, LBVS", "Astle, LWTools 4.25, ch. 3"], "syntax": "target label"},
|
||||
{"category": "Instructions", "detail": "LDA #$20 places $20 in A. LDA $0400 reads the byte at $0400. LDA ,X+ reads at X, then advances X by one. The remaining CC bits keep their values. Immediate LDA takes 2 cycles. Extended LDA takes 5 on MC6809 or HD6309 emulation mode and 4 in HD6309 native mode. Indexed timing depends on the postbyte.", "flags": "N reflects the sign bit. Z marks a zero result. V clears. C is preserved.", "form": "value", "name": "LDA", "operation": "Copy the operand into A. Use # for a literal or read one byte from the addressed memory.", "sources": ["Atkinson (2009), pp. 90", "Motorola (1981), Appendix A, LDA", "Astle, LWTools 4.25, ch. 3"], "syntax": "#literal · <direct · offset,X · >address"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. V clears. C is preserved.", "form": "value", "name": "LDB", "operation": "Copy the operand into B. Use # for a literal or read one byte from the addressed memory.", "sources": ["Atkinson (2009), pp. 90", "Motorola (1981), Appendix A, LDB", "Astle, LWTools 4.25, ch. 3"], "syntax": "#literal · <direct · offset,X · >address"},
|
||||
{"category": "Instructions", "flags": "CC can change when a destination bit in CC is selected.", "form": "bit", "hd6309": true, "name": "LDBT", "operation": "Combine the selected memory bit with the destination register bit using copy. Only the destination bit changes.", "sources": ["Atkinson (2009), pp. 92", "Astle, LWTools 4.25, ch. 3"], "syntax": "A|B|CC,source bit,destination bit,direct address"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. V clears. C is preserved.", "form": "value", "name": "LDD", "operation": "Copy the operand into D. Use # for a literal or read two bytes from the addressed memory.", "sources": ["Atkinson (2009), pp. 91", "Motorola (1981), Appendix A, LDD", "Astle, LWTools 4.25, ch. 3"], "syntax": "#literal · <direct · offset,X · >address"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. V clears. C is preserved.", "form": "value", "hd6309": true, "name": "LDE", "operation": "Copy the operand into E. Use # for a literal or read one byte from the addressed memory.", "sources": ["Atkinson (2009), pp. 90", "Astle, LWTools 4.25, ch. 3"], "syntax": "#literal · <direct · offset,X · >address"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. V clears. C is preserved.", "form": "value", "hd6309": true, "name": "LDF", "operation": "Copy the operand into F. Use # for a literal or read one byte from the addressed memory.", "sources": ["Atkinson (2009), pp. 90", "Astle, LWTools 4.25, ch. 3"], "syntax": "#literal · <direct · offset,X · >address"},
|
||||
{"category": "Instructions", "flags": "CC is preserved.", "form": "immediate", "hd6309": true, "name": "LDMD", "operation": "Write the low two mode-control bits of MD.", "sources": ["Atkinson (2009), pp. 93", "Astle, LWTools 4.25, ch. 3"], "syntax": "#mask"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. V clears. C is preserved.", "form": "value", "hd6309": true, "name": "LDQ", "operation": "Copy the operand into Q. Use # for a literal or read four bytes from the addressed memory.", "sources": ["Atkinson (2009), pp. 94", "Astle, LWTools 4.25, ch. 3"], "syntax": "#literal · <direct · offset,X · >address"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. V clears. C is preserved.", "form": "value", "name": "LDS", "operation": "Copy the operand into S. Use # for a literal or read two bytes from the addressed memory.", "sources": ["Atkinson (2009), pp. 91", "Motorola (1981), Appendix A, LDS", "Astle, LWTools 4.25, ch. 3"], "syntax": "#literal · <direct · offset,X · >address"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. V clears. C is preserved.", "form": "value", "name": "LDU", "operation": "Copy the operand into U. Use # for a literal or read two bytes from the addressed memory.", "sources": ["Atkinson (2009), pp. 91", "Motorola (1981), Appendix A, LDU", "Astle, LWTools 4.25, ch. 3"], "syntax": "#literal · <direct · offset,X · >address"},
|
||||
{"category": "Instructions", "detail": "LDW #$1234 encodes as 10 86 12 34. E becomes $12 and F becomes $34 in either HD6309 execution mode.", "flags": "N reflects the sign bit. Z marks a zero result. V clears. C is preserved.", "form": "value", "hd6309": true, "name": "LDW", "operation": "Copy the operand into W. Use # for a literal or read two bytes from the addressed memory.", "sources": ["Atkinson (2009), pp. 91", "Astle, LWTools 4.25, ch. 3"], "syntax": "#literal · <direct · offset,X · >address"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. V clears. C is preserved.", "form": "value", "name": "LDX", "operation": "Copy the operand into X. Use # for a literal or read two bytes from the addressed memory.", "sources": ["Atkinson (2009), pp. 91", "Motorola (1981), Appendix A, LDX", "Astle, LWTools 4.25, ch. 3"], "syntax": "#literal · <direct · offset,X · >address"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. V clears. C is preserved.", "form": "value", "name": "LDY", "operation": "Copy the operand into Y. Use # for a literal or read two bytes from the addressed memory.", "sources": ["Atkinson (2009), pp. 91", "Motorola (1981), Appendix A, LDY", "Astle, LWTools 4.25, ch. 3"], "syntax": "#literal · <direct · offset,X · >address"},
|
||||
{"category": "Instructions", "flags": "CC is preserved.", "form": "indexed", "name": "LEAS", "operation": "Calculate an indexed address and place it in S. Indirect addressing reads a pointer before producing the address.", "sources": ["Atkinson (2009), pp. 95", "Motorola (1981), Appendix A, LEAS", "Astle, LWTools 4.25, ch. 3"], "syntax": "offset,index"},
|
||||
{"category": "Instructions", "flags": "CC is preserved.", "form": "indexed", "name": "LEAU", "operation": "Calculate an indexed address and place it in U. Indirect addressing reads a pointer before producing the address.", "sources": ["Atkinson (2009), pp. 95", "Motorola (1981), Appendix A, LEAU", "Astle, LWTools 4.25, ch. 3"], "syntax": "offset,index"},
|
||||
{"category": "Instructions", "flags": "Only Z changes, to indicate a zero address.", "form": "indexed", "name": "LEAX", "operation": "Calculate an indexed address and place it in X. Indirect addressing reads a pointer before producing the address.", "sources": ["Atkinson (2009), pp. 95", "Motorola (1981), Appendix A, LEAX", "Astle, LWTools 4.25, ch. 3"], "syntax": "offset,index"},
|
||||
{"category": "Instructions", "flags": "Only Z changes, to indicate a zero address.", "form": "indexed", "name": "LEAY", "operation": "Calculate an indexed address and place it in Y. Indirect addressing reads a pointer before producing the address.", "sources": ["Atkinson (2009), pp. 95", "Motorola (1981), Appendix A, LEAY", "Astle, LWTools 4.25, ch. 3"], "syntax": "offset,index"},
|
||||
{"category": "Instructions", "flags": "N clears. Z marks zero. C receives the old bit 0. V is preserved.", "form": "memory", "name": "LSR", "operation": "Operate on a memory byte. Shift right, bringing zero into the top bit.", "sources": ["Atkinson (2009), pp. 98–99", "Motorola (1981), Appendix A, LSR", "Astle, LWTools 4.25, ch. 3"], "syntax": "<direct · offset,X · >address"},
|
||||
{"category": "Instructions", "flags": "N clears. Z marks zero. C receives the old bit 0. V is preserved.", "form": "inherent", "name": "LSRA", "operation": "Operate on register A. Shift right, bringing zero into the top bit.", "sources": ["Atkinson (2009), pp. 98–99", "Motorola (1981), Appendix A, LSRA", "Astle, LWTools 4.25, ch. 3"], "syntax": "No operand"},
|
||||
{"category": "Instructions", "flags": "N clears. Z marks zero. C receives the old bit 0. V is preserved.", "form": "inherent", "name": "LSRB", "operation": "Operate on register B. Shift right, bringing zero into the top bit.", "sources": ["Atkinson (2009), pp. 98–99", "Motorola (1981), Appendix A, LSRB", "Astle, LWTools 4.25, ch. 3"], "syntax": "No operand"},
|
||||
{"category": "Instructions", "flags": "N clears. Z marks zero. C receives the old bit 0. V is preserved.", "form": "inherent", "hd6309": true, "name": "LSRD", "operation": "Operate on register D. Shift right, bringing zero into the top bit.", "sources": ["Atkinson (2009), pp. 98–99", "Astle, LWTools 4.25, ch. 3"], "syntax": "No operand"},
|
||||
{"category": "Instructions", "flags": "N clears. Z marks zero. C receives the old bit 0. V is preserved.", "form": "inherent", "hd6309": true, "name": "LSRW", "operation": "Operate on register W. Shift right, bringing zero into the top bit.", "sources": ["Atkinson (2009), pp. 98–99", "Astle, LWTools 4.25, ch. 3"], "syntax": "No operand"},
|
||||
{"aliases": ["MACR"], "category": "LWASM Directives", "detail": "LWASM directive. Its effects take place during assembly.", "name": "MACRO", "operation": "Begin defining a sequence of source lines for later expansion.", "sources": ["Astle, LWTools 4.25, ch. 3"], "syntax": "name MACRO"},
|
||||
{"aliases": ["ABA", "CBA", "CLC", "CLF", "CLI", "CLIF", "CLV", "CPX", "DES", "DEX", "DEY", "INS", "INX", "INY", "SBA", "SEC", "SEF", "SEI", "SEIF", "SEV", "TAB", "TAP", "TBA", "TPA", "TSX", "TXS", "WAI"], "category": "Dialect & Compatibility", "name": "MC6800 compatibility", "operation": "These optional LWASM spellings expand to 6809 encodings with the 6800compat pragma. Expansion can require several instructions. Inspect the listing when stepping.", "sources": ["Astle, LWTools 4.25, ch. 3"]},
|
||||
{"category": "Registers & Flags", "hd6309": true, "name": "MD", "operation": "Mode register. LDMD controls execution mode and FIRQ stacking. BITMD tests the latched illegal-instruction and division-by-zero status.", "sources": ["Burke (1993), register file"]},
|
||||
{"category": "Instructions", "flags": "Z marks a zero product. C receives product bit 7.", "form": "inherent", "name": "MUL", "operation": "Multiply unsigned A by B and place the 16-bit product in D.", "sources": ["Atkinson (2009), pp. 100", "Motorola (1981), Appendix A, MUL", "Astle, LWTools 4.25, ch. 3"], "syntax": "No operand"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. V and C clear.", "form": "value", "hd6309": true, "name": "MULD", "operation": "Multiply signed D by a signed 16-bit operand and store the 32-bit product in Q.", "sources": ["Atkinson (2009), pp. 101", "Astle, LWTools 4.25, ch. 3"], "syntax": "#literal · <direct · offset,X · >address"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. C sets for a nonzero input. V marks negation of the most negative value.", "form": "memory", "name": "NEG", "operation": "Operate on a memory byte. Subtract the value from zero.", "sources": ["Atkinson (2009), pp. 102–103", "Motorola (1981), Appendix A, NEG", "Astle, LWTools 4.25, ch. 3"], "syntax": "<direct · offset,X · >address"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. C sets for a nonzero input. V marks negation of the most negative value.", "form": "inherent", "name": "NEGA", "operation": "Operate on register A. Subtract the value from zero.", "sources": ["Atkinson (2009), pp. 102–103", "Motorola (1981), Appendix A, NEGA", "Astle, LWTools 4.25, ch. 3"], "syntax": "No operand"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. C sets for a nonzero input. V marks negation of the most negative value.", "form": "inherent", "name": "NEGB", "operation": "Operate on register B. Subtract the value from zero.", "sources": ["Atkinson (2009), pp. 102–103", "Motorola (1981), Appendix A, NEGB", "Astle, LWTools 4.25, ch. 3"], "syntax": "No operand"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. C sets for a nonzero input. V marks negation of the most negative value.", "form": "inherent", "hd6309": true, "name": "NEGD", "operation": "Operate on register D. Subtract the value from zero.", "sources": ["Atkinson (2009), pp. 102–103", "Astle, LWTools 4.25, ch. 3"], "syntax": "No operand"},
|
||||
{"category": "Instructions", "flags": "CC is preserved.", "form": "inherent", "name": "NOP", "operation": "Advance to the following instruction.", "sources": ["Atkinson (2009), pp. 104", "Motorola (1981), Appendix A, NOP", "Astle, LWTools 4.25, ch. 3"], "syntax": "No operand"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. V clears. C is preserved.", "form": "maskMemory", "hd6309": true, "name": "OIM", "operation": "Combine the literal mask and the addressed byte with OR. Write the result to that address.", "sources": ["Atkinson (2009), pp. 105", "Astle, LWTools 4.25, ch. 3"], "syntax": "#mask,address · #mask,offset,X"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. V clears. C is preserved.", "form": "value", "name": "ORA", "operation": "Set bits present in either input. Combine A with the operand and save the result in A.", "sources": ["Atkinson (2009), pp. 106", "Motorola (1981), Appendix A, ORA", "Astle, LWTools 4.25, ch. 3"], "syntax": "#literal · <direct · offset,X · >address"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. V clears. C is preserved.", "form": "value", "name": "ORB", "operation": "Set bits present in either input. Combine B with the operand and save the result in B.", "sources": ["Atkinson (2009), pp. 106", "Motorola (1981), Appendix A, ORB", "Astle, LWTools 4.25, ch. 3"], "syntax": "#literal · <direct · offset,X · >address"},
|
||||
{"category": "Instructions", "flags": "Any CC bit can set.", "form": "immediate", "name": "ORCC", "operation": "Set each CC bit selected by the mask.", "sources": ["Atkinson (2009), pp. 107", "Motorola (1981), Appendix A, ORCC", "Astle, LWTools 4.25, ch. 3"], "syntax": "#mask"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. V clears. C is preserved.", "form": "value", "hd6309": true, "name": "ORD", "operation": "Set bits present in either input. Combine D with the operand and save the result in D.", "sources": ["Atkinson (2009), pp. 108", "Astle, LWTools 4.25, ch. 3"], "syntax": "#literal · <direct · offset,X · >address"},
|
||||
{"category": "LWASM Directives", "detail": "LWASM directive. Its effects take place during assembly.", "name": "ORG", "operation": "Set the address of the following output. In DECB an origin determines where a data block loads.", "sources": ["Astle, LWTools 4.25, ch. 3"], "syntax": "ORG address"},
|
||||
{"category": "Instructions", "detail": "The destination selects the width. A word source supplies its low byte to a byte destination. For a word destination A/B supply D, E/F supply W, CC is zero-extended and DP supplies the high byte. PC is undefined in this family. See Atkinson, p. 143.", "flags": "N reflects the sign bit. Z marks a zero result. V clears. C is preserved.", "form": "pair", "hd6309": true, "name": "ORR", "operation": "Apply bitwise OR to the destination using the source.", "sources": ["Atkinson (2009), pp. 109", "Astle, LWTools 4.25, ch. 3"], "syntax": "source register,destination register"},
|
||||
{"aliases": ["OS9", "MOD", "EMOD"], "category": "Dialect & Compatibility", "name": "OS-9 output directives", "operation": "OS9 encodes SWI2 followed by a service byte for OS-9 or object output. MOD and EMOD frame an OS-9 module. Assembly Development runs standalone Disk BASIC block images.", "sources": ["Astle, LWTools 4.25, ch. 3"]},
|
||||
{"category": "Registers & Flags", "name": "PC", "operation": "Program counter. Branches, jumps, calls and returns change the address of the next instruction.", "sources": ["Motorola (1981), ch. 1"]},
|
||||
{"category": "LWASM Directives", "detail": "LWASM directive. Its effects take place during assembly.", "name": "PHASE", "operation": "Give following code a different logical address for labels and expressions while retaining its output placement.", "sources": ["Astle, LWTools 4.25, ch. 3"], "syntax": "PHASE expression"},
|
||||
{"aliases": ["*PRAGMA", "**PRAGMA", "OPT"], "category": "LWASM Directives", "detail": "LWASM directive. Its effects take place during assembly.", "name": "PRAGMA", "operation": "Change a LWASM dialect option. A target-changing pragma affects subsequent assembly.", "sources": ["Astle, LWTools 4.25, ch. 3"], "syntax": "PRAGMA option"},
|
||||
{"category": "Instructions", "detail": "Select CC, A, B, DP, X, Y, U or PC. LWASM also accepts D for A and B. Hardware determines the register order.", "flags": "CC is preserved.", "form": "stack", "name": "PSHS", "operation": "Save selected registers on S. The stack grows toward lower addresses.", "sources": ["Atkinson (2009), pp. 110", "Motorola (1981), Appendix A, PSHS", "Astle, LWTools 4.25, ch. 3"], "syntax": "register[,register…] · #mask"},
|
||||
{"category": "Instructions", "flags": "CC is preserved.", "form": "inherent", "hd6309": true, "name": "PSHSW", "operation": "Push both bytes of W onto S, subtracting two from the pointer.", "sources": ["Atkinson (2009), pp. 111", "Astle, LWTools 4.25, ch. 3"], "syntax": "No operand"},
|
||||
{"category": "Instructions", "detail": "Select CC, A, B, DP, X, Y, S or PC. LWASM also accepts D for A and B. Hardware determines the register order.", "flags": "CC is preserved.", "form": "stack", "name": "PSHU", "operation": "Save selected registers on U. The stack grows toward lower addresses.", "sources": ["Atkinson (2009), pp. 110", "Motorola (1981), Appendix A, PSHU", "Astle, LWTools 4.25, ch. 3"], "syntax": "register[,register…] · #mask"},
|
||||
{"category": "Instructions", "flags": "CC is preserved.", "form": "inherent", "hd6309": true, "name": "PSHUW", "operation": "Push both bytes of W onto U, subtracting two from the pointer.", "sources": ["Atkinson (2009), pp. 112", "Astle, LWTools 4.25, ch. 3"], "syntax": "No operand"},
|
||||
{"category": "Instructions", "detail": "Select CC, A, B, DP, X, Y, U or PC. LWASM also accepts D for A and B. Hardware determines the register order.", "flags": "Pulling CC replaces all its flags.", "form": "stack", "name": "PULS", "operation": "Restore selected registers from S, advancing the stack pointer. Pulling PC transfers control.", "sources": ["Atkinson (2009), pp. 113", "Motorola (1981), Appendix A, PULS", "Astle, LWTools 4.25, ch. 3"], "syntax": "register[,register…] · #mask"},
|
||||
{"category": "Instructions", "flags": "CC is preserved.", "form": "inherent", "hd6309": true, "name": "PULSW", "operation": "Pull two bytes into W from S, advancing the pointer by two.", "sources": ["Atkinson (2009), pp. 114", "Astle, LWTools 4.25, ch. 3"], "syntax": "No operand"},
|
||||
{"category": "Instructions", "detail": "Select CC, A, B, DP, X, Y, S or PC. LWASM also accepts D for A and B. Hardware determines the register order.", "flags": "Pulling CC replaces all its flags.", "form": "stack", "name": "PULU", "operation": "Restore selected registers from U, advancing the stack pointer. Pulling PC transfers control.", "sources": ["Atkinson (2009), pp. 113", "Motorola (1981), Appendix A, PULU", "Astle, LWTools 4.25, ch. 3"], "syntax": "register[,register…] · #mask"},
|
||||
{"category": "Instructions", "flags": "CC is preserved.", "form": "inherent", "hd6309": true, "name": "PULUW", "operation": "Pull two bytes into W from U, advancing the pointer by two.", "sources": ["Atkinson (2009), pp. 115", "Astle, LWTools 4.25, ch. 3"], "syntax": "No operand"},
|
||||
{"category": "Registers & Flags", "hd6309": true, "name": "Q", "operation": "Thirty-two-bit accumulator. From most to least significant its bytes are A, B, E, F. D is the high word and W the low word.", "sources": ["Burke (1993), register file"]},
|
||||
{"category": "LWASM Directives", "detail": "LWASM directive. Its effects take place during assembly.", "name": "REORG", "operation": "Restore the location associated with the previous ORG.", "sources": ["Astle, LWTools 4.25, ch. 3"], "syntax": "REORG"},
|
||||
{"aliases": [".BLKB", ".DS", ".RS"], "category": "LWASM Directives", "detail": "LWASM directive. Its effects take place during assembly.", "name": "RMB", "operation": "Advance the location counter by a number of bytes. Use ZMB when the load image must contain zeros.", "sources": ["Astle, LWTools 4.25, ch. 3"], "syntax": "RMB count"},
|
||||
{"aliases": ["RMW"], "category": "LWASM Directives", "detail": "LWASM directive. Its effects take place during assembly.", "name": "RMD", "operation": "Reserve 16-bit words.", "sources": ["Astle, LWTools 4.25, ch. 3"], "syntax": "RMD count"},
|
||||
{"category": "LWASM Directives", "detail": "LWASM directive. Its effects take place during assembly.", "name": "RMQ", "operation": "Reserve 32-bit values.", "sources": ["Astle, LWTools 4.25, ch. 3"], "syntax": "RMQ count"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. C receives the old top bit. V is N XOR C.", "form": "memory", "name": "ROL", "operation": "Operate on a memory byte. Shift left, moving the old carry into bit 0.", "sources": ["Atkinson (2009), pp. 116–117", "Motorola (1981), Appendix A, ROL", "Astle, LWTools 4.25, ch. 3"], "syntax": "<direct · offset,X · >address"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. C receives the old top bit. V is N XOR C.", "form": "inherent", "name": "ROLA", "operation": "Operate on register A. Shift left, moving the old carry into bit 0.", "sources": ["Atkinson (2009), pp. 116–117", "Motorola (1981), Appendix A, ROLA", "Astle, LWTools 4.25, ch. 3"], "syntax": "No operand"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. C receives the old top bit. V is N XOR C.", "form": "inherent", "name": "ROLB", "operation": "Operate on register B. Shift left, moving the old carry into bit 0.", "sources": ["Atkinson (2009), pp. 116–117", "Motorola (1981), Appendix A, ROLB", "Astle, LWTools 4.25, ch. 3"], "syntax": "No operand"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. C receives the old top bit. V is N XOR C.", "form": "inherent", "hd6309": true, "name": "ROLD", "operation": "Operate on register D. Shift left, moving the old carry into bit 0.", "sources": ["Atkinson (2009), pp. 116–117", "Astle, LWTools 4.25, ch. 3"], "syntax": "No operand"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. C receives the old top bit. V is N XOR C.", "form": "inherent", "hd6309": true, "name": "ROLW", "operation": "Operate on register W. Shift left, moving the old carry into bit 0.", "sources": ["Atkinson (2009), pp. 116–117", "Astle, LWTools 4.25, ch. 3"], "syntax": "No operand"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. C receives the old bit 0. V is preserved.", "form": "memory", "name": "ROR", "operation": "Operate on a memory byte. Shift right, moving the old carry into the top bit.", "sources": ["Atkinson (2009), pp. 118–119", "Motorola (1981), Appendix A, ROR", "Astle, LWTools 4.25, ch. 3"], "syntax": "<direct · offset,X · >address"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. C receives the old bit 0. V is preserved.", "form": "inherent", "name": "RORA", "operation": "Operate on register A. Shift right, moving the old carry into the top bit.", "sources": ["Atkinson (2009), pp. 118–119", "Motorola (1981), Appendix A, RORA", "Astle, LWTools 4.25, ch. 3"], "syntax": "No operand"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. C receives the old bit 0. V is preserved.", "form": "inherent", "name": "RORB", "operation": "Operate on register B. Shift right, moving the old carry into the top bit.", "sources": ["Atkinson (2009), pp. 118–119", "Motorola (1981), Appendix A, RORB", "Astle, LWTools 4.25, ch. 3"], "syntax": "No operand"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. C receives the old bit 0. V is preserved.", "form": "inherent", "hd6309": true, "name": "RORD", "operation": "Operate on register D. Shift right, moving the old carry into the top bit.", "sources": ["Atkinson (2009), pp. 118–119", "Astle, LWTools 4.25, ch. 3"], "syntax": "No operand"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. C receives the old bit 0. V is preserved.", "form": "inherent", "hd6309": true, "name": "RORW", "operation": "Operate on register W. Shift right, moving the old carry into the top bit.", "sources": ["Atkinson (2009), pp. 118–119", "Astle, LWTools 4.25, ch. 3"], "syntax": "No operand"},
|
||||
{"category": "Instructions", "flags": "Restores saved CC.", "form": "inherent", "name": "RTI", "operation": "Pull CC and the return state from S. Stacked E determines whether to restore a full frame.", "sources": ["Atkinson (2009), pp. 120", "Motorola (1981), Appendix A, RTI", "Astle, LWTools 4.25, ch. 3"], "syntax": "No operand"},
|
||||
{"category": "Instructions", "flags": "CC is preserved.", "form": "inherent", "name": "RTS", "operation": "Pull the return address from S into PC and advance S by two.", "sources": ["Atkinson (2009), pp. 121", "Motorola (1981), Appendix A, RTS", "Astle, LWTools 4.25, ch. 3"], "syntax": "No operand"},
|
||||
{"category": "Addressing Modes", "name": "Relative", "operation": "Add a signed displacement to PC after the operand. Branch targets are labels. Indexed PC-relative data references use PCR in LWASM.", "sources": ["Motorola (1981), ch. 2", "Astle, LWTools 4.25, ch. 3"], "syntax": "BNE again · LDA table,PCR"},
|
||||
{"category": "Registers & Flags", "name": "S", "operation": "Sixteen-bit hardware stack pointer. JSR, interrupts and PSHS use memory below S. Initialize a writable stack before making a standalone call.", "sources": ["Motorola (1981), ch. 1"]},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. V marks signed overflow. C marks a borrow. H is undefined.", "form": "value", "name": "SBCA", "operation": "Subtract the operand and incoming borrow from A. Write the difference to A.", "sources": ["Atkinson (2009), pp. 122", "Motorola (1981), Appendix A, SBCA", "Astle, LWTools 4.25, ch. 3"], "syntax": "#literal · <direct · offset,X · >address"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. V marks signed overflow. C marks a borrow. H is undefined.", "form": "value", "name": "SBCB", "operation": "Subtract the operand and incoming borrow from B. Write the difference to B.", "sources": ["Atkinson (2009), pp. 122", "Motorola (1981), Appendix A, SBCB", "Astle, LWTools 4.25, ch. 3"], "syntax": "#literal · <direct · offset,X · >address"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. V marks signed overflow. C marks a borrow.", "form": "value", "hd6309": true, "name": "SBCD", "operation": "Subtract the operand and incoming borrow from D. Write the difference to D.", "sources": ["Atkinson (2009), pp. 123", "Astle, LWTools 4.25, ch. 3"], "syntax": "#literal · <direct · offset,X · >address"},
|
||||
{"category": "Instructions", "detail": "The destination selects the width. A word source supplies its low byte to a byte destination. For a word destination A/B supply D, E/F supply W, CC is zero-extended and DP supplies the high byte. PC is undefined in this family. See Atkinson, p. 143.", "flags": "N reflects the sign bit. Z marks a zero result. V marks signed overflow. C marks a borrow.", "form": "pair", "hd6309": true, "name": "SBCR", "operation": "Subtract source and borrow from destination.", "sources": ["Atkinson (2009), pp. 124", "Astle, LWTools 4.25, ch. 3"], "syntax": "source register,destination register"},
|
||||
{"aliases": ["SECT", ".AREA"], "category": "LWASM Directives", "detail": "LWASM directive. Its effects take place during assembly.", "name": "SECTION", "operation": "Begin a section in an object module. The linker determines final placement.", "sources": ["Astle, LWTools 4.25, ch. 3"], "syntax": "SECTION name"},
|
||||
{"category": "LWASM Directives", "detail": "LWASM directive. Its effects take place during assembly.", "name": "SET", "operation": "Assign a symbol a value that later SET statements may change.", "sources": ["Astle, LWTools 4.25, ch. 3"], "syntax": "name SET expression"},
|
||||
{"category": "LWASM Directives", "detail": "LWASM directive. Its effects take place during assembly.", "name": "SETDP", "operation": "Tell the assembler the assumed direct page. Guest software must establish the matching DP value.", "sources": ["Astle, LWTools 4.25, ch. 3"], "syntax": "SETDP page"},
|
||||
{"category": "LWASM Directives", "detail": "LWASM directive. Its effects take place during assembly.", "name": "SETSTR", "operation": "Set an assembler string variable.", "sources": ["Astle, LWTools 4.25, ch. 3"], "syntax": "SETSTR name=string"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. V and C are preserved.", "form": "inherent", "name": "SEX", "operation": "Copy B’s sign bit across A to extend B into D.", "sources": ["Atkinson (2009), pp. 125", "Motorola (1981), Appendix A, SEX", "Astle, LWTools 4.25, ch. 3"], "syntax": "No operand"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. V and C are preserved.", "form": "inherent", "hd6309": true, "name": "SEXW", "operation": "Copy W’s sign bit across D to extend W into Q.", "sources": ["Atkinson (2009), pp. 126", "Astle, LWTools 4.25, ch. 3"], "syntax": "No operand"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. V clears. C is preserved.", "form": "memory", "name": "STA", "operation": "Copy A to the destination address. Multi-byte stores write the high byte first.", "sources": ["Atkinson (2009), pp. 127", "Motorola (1981), Appendix A, STA", "Astle, LWTools 4.25, ch. 3"], "syntax": "<direct · offset,X · >address"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. V clears. C is preserved.", "form": "memory", "name": "STB", "operation": "Copy B to the destination address. Multi-byte stores write the high byte first.", "sources": ["Atkinson (2009), pp. 127", "Motorola (1981), Appendix A, STB", "Astle, LWTools 4.25, ch. 3"], "syntax": "<direct · offset,X · >address"},
|
||||
{"category": "Instructions", "flags": "CC can change when a destination bit in CC is selected.", "form": "bit", "hd6309": true, "name": "STBT", "operation": "Copy the selected register bit to the destination bit in direct-page memory.", "sources": ["Atkinson (2009), pp. 129", "Astle, LWTools 4.25, ch. 3"], "syntax": "A|B|CC,source bit,destination bit,direct address"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. V clears. C is preserved.", "form": "memory", "name": "STD", "operation": "Copy D to the destination address. Multi-byte stores write the high byte first.", "sources": ["Atkinson (2009), pp. 128", "Motorola (1981), Appendix A, STD", "Astle, LWTools 4.25, ch. 3"], "syntax": "<direct · offset,X · >address"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. V clears. C is preserved.", "form": "memory", "hd6309": true, "name": "STE", "operation": "Copy E to the destination address. Multi-byte stores write the high byte first.", "sources": ["Atkinson (2009), pp. 127", "Astle, LWTools 4.25, ch. 3"], "syntax": "<direct · offset,X · >address"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. V clears. C is preserved.", "form": "memory", "hd6309": true, "name": "STF", "operation": "Copy F to the destination address. Multi-byte stores write the high byte first.", "sources": ["Atkinson (2009), pp. 127", "Astle, LWTools 4.25, ch. 3"], "syntax": "<direct · offset,X · >address"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. V clears. C is preserved.", "form": "memory", "hd6309": true, "name": "STQ", "operation": "Copy Q to the destination address. Multi-byte stores write the high byte first.", "sources": ["Atkinson (2009), pp. 130", "Astle, LWTools 4.25, ch. 3"], "syntax": "<direct · offset,X · >address"},
|
||||
{"category": "LWASM Directives", "detail": "LWASM directive. Its effects take place during assembly.", "name": "STRUCT", "operation": "Begin a structure layout. Field labels describe offsets in its instances.", "sources": ["Astle, LWTools 4.25, ch. 3"], "syntax": "name STRUCT"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. V clears. C is preserved.", "form": "memory", "name": "STS", "operation": "Copy S to the destination address. Multi-byte stores write the high byte first.", "sources": ["Atkinson (2009), pp. 128", "Motorola (1981), Appendix A, STS", "Astle, LWTools 4.25, ch. 3"], "syntax": "<direct · offset,X · >address"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. V clears. C is preserved.", "form": "memory", "name": "STU", "operation": "Copy U to the destination address. Multi-byte stores write the high byte first.", "sources": ["Atkinson (2009), pp. 128", "Motorola (1981), Appendix A, STU", "Astle, LWTools 4.25, ch. 3"], "syntax": "<direct · offset,X · >address"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. V clears. C is preserved.", "form": "memory", "hd6309": true, "name": "STW", "operation": "Copy W to the destination address. Multi-byte stores write the high byte first.", "sources": ["Atkinson (2009), pp. 128", "Astle, LWTools 4.25, ch. 3"], "syntax": "<direct · offset,X · >address"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. V clears. C is preserved.", "form": "memory", "name": "STX", "operation": "Copy X to the destination address. Multi-byte stores write the high byte first.", "sources": ["Atkinson (2009), pp. 128", "Motorola (1981), Appendix A, STX", "Astle, LWTools 4.25, ch. 3"], "syntax": "<direct · offset,X · >address"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. V clears. C is preserved.", "form": "memory", "name": "STY", "operation": "Copy Y to the destination address. Multi-byte stores write the high byte first.", "sources": ["Atkinson (2009), pp. 128", "Motorola (1981), Appendix A, STY", "Astle, LWTools 4.25, ch. 3"], "syntax": "<direct · offset,X · >address"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. V marks signed overflow. C marks a borrow. H is undefined.", "form": "value", "name": "SUBA", "operation": "Subtract the operand from A. Write the difference to A.", "sources": ["Atkinson (2009), pp. 131", "Motorola (1981), Appendix A, SUBA", "Astle, LWTools 4.25, ch. 3"], "syntax": "#literal · <direct · offset,X · >address"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. V marks signed overflow. C marks a borrow. H is undefined.", "form": "value", "name": "SUBB", "operation": "Subtract the operand from B. Write the difference to B.", "sources": ["Atkinson (2009), pp. 131", "Motorola (1981), Appendix A, SUBB", "Astle, LWTools 4.25, ch. 3"], "syntax": "#literal · <direct · offset,X · >address"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. V marks signed overflow. C marks a borrow.", "form": "value", "name": "SUBD", "operation": "Subtract the operand from D. Write the difference to D.", "sources": ["Atkinson (2009), pp. 132", "Motorola (1981), Appendix A, SUBD", "Astle, LWTools 4.25, ch. 3"], "syntax": "#literal · <direct · offset,X · >address"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. V marks signed overflow. C marks a borrow. H is undefined.", "form": "value", "hd6309": true, "name": "SUBE", "operation": "Subtract the operand from E. Write the difference to E.", "sources": ["Atkinson (2009), pp. 131", "Astle, LWTools 4.25, ch. 3"], "syntax": "#literal · <direct · offset,X · >address"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. V marks signed overflow. C marks a borrow. H is undefined.", "form": "value", "hd6309": true, "name": "SUBF", "operation": "Subtract the operand from F. Write the difference to F.", "sources": ["Atkinson (2009), pp. 131", "Astle, LWTools 4.25, ch. 3"], "syntax": "#literal · <direct · offset,X · >address"},
|
||||
{"category": "Instructions", "detail": "The destination selects the width. A word source supplies its low byte to a byte destination. For a word destination A/B supply D, E/F supply W, CC is zero-extended and DP supplies the high byte. PC is undefined in this family. See Atkinson, p. 143.", "flags": "N reflects the sign bit. Z marks a zero result. V marks signed overflow. C marks a borrow.", "form": "pair", "hd6309": true, "name": "SUBR", "operation": "Subtract source from destination.", "sources": ["Atkinson (2009), pp. 133", "Astle, LWTools 4.25, ch. 3"], "syntax": "source register,destination register"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. V marks signed overflow. C marks a borrow.", "form": "value", "hd6309": true, "name": "SUBW", "operation": "Subtract the operand from W. Write the difference to W.", "sources": ["Atkinson (2009), pp. 132", "Astle, LWTools 4.25, ch. 3"], "syntax": "#literal · <direct · offset,X · >address"},
|
||||
{"category": "Instructions", "flags": "E sets. I and F set after stacking.", "form": "inherent", "name": "SWI", "operation": "Save a full interrupt frame on S and fetch the new PC from $FFFA.", "sources": ["Atkinson (2009), pp. 134", "Motorola (1981), Appendix A, SWI", "Astle, LWTools 4.25, ch. 3"], "syntax": "No operand"},
|
||||
{"category": "Instructions", "flags": "E sets. I and F keep their values.", "form": "inherent", "name": "SWI2", "operation": "Save a full interrupt frame on S and fetch the new PC from $FFF4.", "sources": ["Atkinson (2009), pp. 134", "Motorola (1981), Appendix A, SWI", "Astle, LWTools 4.25, ch. 3"], "syntax": "No operand"},
|
||||
{"category": "Instructions", "flags": "E sets. I and F keep their values.", "form": "inherent", "name": "SWI3", "operation": "Save a full interrupt frame on S and fetch the new PC from $FFF2.", "sources": ["Atkinson (2009), pp. 134", "Motorola (1981), Appendix A, SWI", "Astle, LWTools 4.25, ch. 3"], "syntax": "No operand"},
|
||||
{"category": "Instructions", "flags": "CC is preserved.", "form": "inherent", "name": "SYNC", "operation": "Wait for an interrupt request. Even a masked request can release the wait.", "sources": ["Atkinson (2009), pp. 135", "Motorola (1981), Appendix A, SYNC", "Astle, LWTools 4.25, ch. 3"], "syntax": "No operand"},
|
||||
{"aliases": ["COPY", "COPY+", "COPY-", "TFRP", "TFRM", "IMP", "IMPLODE", "TFRS", "EXP", "EXPAND", "TFRR"], "category": "Instructions", "detail": "LWASM’s alternative spellings take two bare registers. COPY/COPY+/TFRP advance both, COPY-/TFRM retreat both, IMP/IMPLODE/TFRS advance the source and EXP/EXPAND/TFRR advance the destination. In VCC Plus, debugger Step finishes the block. Continue can hit a breakpoint again between bytes.", "flags": "CC is preserved.", "form": "transfer", "hd6309": true, "name": "TFM", "operation": "Copy W bytes between addresses held in D, X, Y, U or S. Each suffix advances, retreats or holds its pointer after a byte. W counts down to zero. Without interruption the transfer costs 6 cycles plus 3 per byte.", "sources": ["Atkinson (2009), pp. 136", "VCC Plus, Native Debugger, HD6309 Step", "Astle, LWTools 4.25, ch. 3"], "syntax": "r+,r+ · r-,r- · r+,r · r,r+"},
|
||||
{"category": "Instructions", "detail": "Use equal-width registers on the MC6809. The HD6309 has additional registers and defined mixed-width behavior. Writing PC transfers control.", "flags": "Writing CC replaces its flags.", "form": "pair", "name": "TFR", "operation": "Copy the source register to the destination.", "sources": ["Atkinson (2009), pp. 137–138", "Motorola (1981), Appendix A, TFR", "Astle, LWTools 4.25, ch. 3"], "syntax": "source register,destination register"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. V clears. C is preserved.", "form": "maskMemory", "hd6309": true, "name": "TIM", "operation": "Combine the literal mask and the addressed byte with AND. Use the result only to test flags.", "sources": ["Atkinson (2009), pp. 139", "Astle, LWTools 4.25, ch. 3"], "syntax": "#mask,address · #mask,offset,X"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. V clears. C is preserved.", "form": "memory", "name": "TST", "operation": "Operate on a memory byte. Test the value while preserving it.", "sources": ["Atkinson (2009), pp. 140–141", "Motorola (1981), Appendix A, TST", "Astle, LWTools 4.25, ch. 3"], "syntax": "<direct · offset,X · >address"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. V clears. C is preserved.", "form": "inherent", "name": "TSTA", "operation": "Operate on register A. Test the value while preserving it.", "sources": ["Atkinson (2009), pp. 140–141", "Motorola (1981), Appendix A, TSTA", "Astle, LWTools 4.25, ch. 3"], "syntax": "No operand"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. V clears. C is preserved.", "form": "inherent", "name": "TSTB", "operation": "Operate on register B. Test the value while preserving it.", "sources": ["Atkinson (2009), pp. 140–141", "Motorola (1981), Appendix A, TSTB", "Astle, LWTools 4.25, ch. 3"], "syntax": "No operand"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. V clears. C is preserved.", "form": "inherent", "hd6309": true, "name": "TSTD", "operation": "Operate on register D. Test the value while preserving it.", "sources": ["Atkinson (2009), pp. 140–141", "Astle, LWTools 4.25, ch. 3"], "syntax": "No operand"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. V clears. C is preserved.", "form": "inherent", "hd6309": true, "name": "TSTE", "operation": "Operate on register E. Test the value while preserving it.", "sources": ["Atkinson (2009), pp. 140–141", "Astle, LWTools 4.25, ch. 3"], "syntax": "No operand"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. V clears. C is preserved.", "form": "inherent", "hd6309": true, "name": "TSTF", "operation": "Operate on register F. Test the value while preserving it.", "sources": ["Atkinson (2009), pp. 140–141", "Astle, LWTools 4.25, ch. 3"], "syntax": "No operand"},
|
||||
{"category": "Instructions", "flags": "N reflects the sign bit. Z marks a zero result. V clears. C is preserved.", "form": "inherent", "hd6309": true, "name": "TSTW", "operation": "Operate on register W. Test the value while preserving it.", "sources": ["Atkinson (2009), pp. 140–141", "Astle, LWTools 4.25, ch. 3"], "syntax": "No operand"},
|
||||
{"category": "Registers & Flags", "name": "U", "operation": "Sixteen-bit user stack pointer, also available as an index register. PSHU and PULU use this stack.", "sources": ["Motorola (1981), ch. 1"]},
|
||||
{"aliases": ["HCF", "RHF", "RESET", "HALT", "BREAK", "LOG"], "category": "Dialect & Compatibility", "name": "Undocumented and emulator opcodes", "operation": "LWASM lists HCF, RHF and RESET for certain 6809 encodings. Behavior outside the documented instruction set can differ by chip. BREAK and LOG are emulator extensions. VCC Plus’s Mac decoder also excludes the optional HALT/BREAK encodings.", "sources": ["Atkinson (2009), p. 153", "Astle, LWTools 4.25, ch. 3", "VCC Plus, Native Debugger, disassembly"]},
|
||||
{"category": "Registers & Flags", "hd6309": true, "name": "V", "operation": "Additional 16-bit HD6309 register used in register operations. CC.V is a separate overflow flag.", "sources": ["Burke (1993), register file"]},
|
||||
{"category": "Registers & Flags", "hd6309": true, "name": "W", "operation": "Sixteen-bit accumulator combining E (high) and F (low). TFM uses W as a byte count.", "sources": ["Burke (1993), register file"]},
|
||||
{"aliases": ["MSG"], "category": "LWASM Directives", "detail": "LWASM directive. Its effects take place during assembly.", "name": "WARNING", "operation": "Report a warning with the supplied text.", "sources": ["Astle, LWTools 4.25, ch. 3"], "syntax": "WARNING message"},
|
||||
{"category": "Registers & Flags", "name": "X", "operation": "Sixteen-bit index register. Use X to address a table or traverse bytes.", "sources": ["Motorola (1981), ch. 1"]},
|
||||
{"category": "Registers & Flags", "name": "Y", "operation": "Sixteen-bit index register. X and Y can walk independent buffers.", "sources": ["Motorola (1981), ch. 1"]},
|
||||
{"aliases": ["BSZ", "FZB"], "category": "LWASM Directives", "detail": "LWASM directive. Its effects take place during assembly.", "name": "ZMB", "operation": "Emit the requested number of zero bytes.", "sources": ["Astle, LWTools 4.25, ch. 3"], "syntax": "ZMB count"},
|
||||
{"category": "LWASM Directives", "detail": "LWASM directive. Its effects take place during assembly.", "name": "ZMD", "operation": "Emit zero-filled words.", "sources": ["Astle, LWTools 4.25, ch. 3"], "syntax": "ZMD count"},
|
||||
{"category": "LWASM Directives", "detail": "LWASM directive. Its effects take place during assembly.", "name": "ZMQ", "operation": "Emit zero-filled four-byte quantities.", "sources": ["Astle, LWTools 4.25, ch. 3"], "syntax": "ZMQ count"}
|
||||
]}
|
||||
Reference in new issue
Block a user