1
0
mirror of https://github.com/fadden/6502bench.git synced 2024-11-13 13:10:51 +00:00
6502bench/SourceGen/SGTestData/Expected
Andy McFadden dfd5bcab1b Optionally treat BRKs as two-byte instructions
Early data sheets listed BRK as one byte, but RTI after a BRK skips
the following byte, effectively making BRK a 2-byte instruction.
Sometimes, such as when diassembling Apple /// SOS code, it's handy
to treat it that way explicitly.

This change makes two-byte BRKs optional, controlled by a checkbox
in the project settings.  In the system definitions it defaults to
true for Apple ///, false for all others.

ACME doesn't allow BRK to have an arg, and cc65 only allows it for
65816 code (?), so it's emitted as a hex blob for those assemblers.
Anyone wishing to target those assemblers should stick to 1-byte mode.

Extension scripts have to switch between formatting one byte of
inline data and formatting an instruction with a one-byte operand.
A helper function has been added to the plugin Util class.

To get some regression test coverage, 2022-extension-scripts has
been configured to use two-byte BRK.

Also, added/corrected some SOS constants.

See also issue #44.
2019-10-09 14:55:56 -07:00
..
1000-allops-value-65816_64tass.S Improve multi-encoding output in 64tass 2019-08-21 13:46:05 -07:00
1000-allops-value-65816_acme.S Finish ACME v0.96.4 support 2019-08-04 14:48:42 -07:00
1000-allops-value-65816_cc65.cfg Attempt to generate segment names for cc65 2018-11-18 15:11:29 -08:00
1000-allops-value-65816_cc65.S Reverse position on '#' in block move operands 2019-08-08 13:02:01 -07:00
1000-allops-value-65816_Merlin32.S Reverse position on '#' in block move operands 2019-08-08 13:02:01 -07:00
1001-allops-zero-65816_64tass.S Improve multi-encoding output in 64tass 2019-08-21 13:46:05 -07:00
1001-allops-zero-65816_acme.S Finish ACME v0.96.4 support 2019-08-04 14:48:42 -07:00
1001-allops-zero-65816_cc65.cfg Attempt to generate segment names for cc65 2018-11-18 15:11:29 -08:00
1001-allops-zero-65816_cc65.S Reverse position on '#' in block move operands 2019-08-08 13:02:01 -07:00
1001-allops-zero-65816_Merlin32.S Reverse position on '#' in block move operands 2019-08-08 13:02:01 -07:00
1002-embedded-instructions_64tass.S Improve multi-encoding output in 64tass 2019-08-21 13:46:05 -07:00
1002-embedded-instructions_acme.S Finish ACME v0.96.4 support 2019-08-04 14:48:42 -07:00
1002-embedded-instructions_cc65.cfg Attempt to generate segment names for cc65 2018-11-18 15:11:29 -08:00
1002-embedded-instructions_cc65.S Treat BRK as a 1-byte instruction 2019-08-02 17:21:50 -07:00
1002-embedded-instructions_Merlin32.S Treat BRK as a 1-byte instruction 2019-08-02 17:21:50 -07:00
1003-flags-and-branches_64tass.S Fix code tracing bug 2019-09-17 14:38:16 -07:00
1003-flags-and-branches_acme.S Fix code tracing bug 2019-09-17 14:38:16 -07:00
1003-flags-and-branches_cc65.cfg Fix code tracing bug 2019-09-17 14:38:16 -07:00
1003-flags-and-branches_cc65.S Fix code tracing bug 2019-09-17 14:38:16 -07:00
1003-flags-and-branches_Merlin32.S Fix code tracing bug 2019-09-17 14:38:16 -07:00
1004-data-recognition_64tass.S Change the way ASCII is handled for 64tass 2019-08-20 11:21:30 -07:00
1004-data-recognition_acme.S Finish ACME v0.96.4 support 2019-08-04 14:48:42 -07:00
1004-data-recognition_cc65.cfg Attempt to generate segment names for cc65 2018-11-18 15:11:29 -08:00
1004-data-recognition_cc65.S Attempt to generate segment names for cc65 2018-11-18 15:11:29 -08:00
1004-data-recognition_Merlin32.S Initial file commit 2018-09-28 10:05:11 -07:00
2000-allops-value-6502_64tass.S Improve multi-encoding output in 64tass 2019-08-21 13:46:05 -07:00
2000-allops-value-6502_acme.S Finish ACME v0.96.4 support 2019-08-04 14:48:42 -07:00
2000-allops-value-6502_cc65.cfg Attempt to generate segment names for cc65 2018-11-18 15:11:29 -08:00
2000-allops-value-6502_cc65.S Treat BRK as a 1-byte instruction 2019-08-02 17:21:50 -07:00
2000-allops-value-6502_Merlin32.S Treat BRK as a 1-byte instruction 2019-08-02 17:21:50 -07:00
2001-allops-zero-6502_64tass.S Improve multi-encoding output in 64tass 2019-08-21 13:46:05 -07:00
2001-allops-zero-6502_acme.S Finish ACME v0.96.4 support 2019-08-04 14:48:42 -07:00
2001-allops-zero-6502_cc65.cfg Attempt to generate segment names for cc65 2018-11-18 15:11:29 -08:00
2001-allops-zero-6502_cc65.S Treat BRK as a 1-byte instruction 2019-08-02 17:21:50 -07:00
2001-allops-zero-6502_Merlin32.S Treat BRK as a 1-byte instruction 2019-08-02 17:21:50 -07:00
2002-allops-value-65C02_64tass.S Improve multi-encoding output in 64tass 2019-08-21 13:46:05 -07:00
2002-allops-value-65C02_acme.S Finish ACME v0.96.4 support 2019-08-04 14:48:42 -07:00
2002-allops-value-65C02_cc65.cfg Attempt to generate segment names for cc65 2018-11-18 15:11:29 -08:00
2002-allops-value-65C02_cc65.S Treat BRK as a 1-byte instruction 2019-08-02 17:21:50 -07:00
2002-allops-value-65C02_Merlin32.S Treat BRK as a 1-byte instruction 2019-08-02 17:21:50 -07:00
2003-allops-zero-65C02_64tass.S Improve multi-encoding output in 64tass 2019-08-21 13:46:05 -07:00
2003-allops-zero-65C02_acme.S Finish ACME v0.96.4 support 2019-08-04 14:48:42 -07:00
2003-allops-zero-65C02_cc65.cfg Attempt to generate segment names for cc65 2018-11-18 15:11:29 -08:00
2003-allops-zero-65C02_cc65.S Treat BRK as a 1-byte instruction 2019-08-02 17:21:50 -07:00
2003-allops-zero-65C02_Merlin32.S Treat BRK as a 1-byte instruction 2019-08-02 17:21:50 -07:00
2004-numeric-types_64tass.S Improve multi-encoding output in 64tass 2019-08-21 13:46:05 -07:00
2004-numeric-types_acme.S Finish ACME v0.96.4 support 2019-08-04 14:48:42 -07:00
2004-numeric-types_cc65.cfg Attempt to generate segment names for cc65 2018-11-18 15:11:29 -08:00
2004-numeric-types_cc65.S Attempt to generate segment names for cc65 2018-11-18 15:11:29 -08:00
2004-numeric-types_Merlin32.S Initial file commit 2018-09-28 10:05:11 -07:00
2005-string-types_64tass.S Improve multi-encoding output in 64tass 2019-08-21 13:46:05 -07:00
2005-string-types_acme.S Improve ACME high ASCII handling 2019-08-17 17:35:01 -07:00
2005-string-types_cc65.cfg Attempt to generate segment names for cc65 2018-11-18 15:11:29 -08:00
2005-string-types_cc65.S Update expected output for test 2005-string-types 2019-08-09 16:41:05 -07:00
2005-string-types_Merlin32.S Update expected output for test 2005-string-types 2019-08-09 16:41:05 -07:00
2006-operand-formats_64tass.S Improve multi-encoding output in 64tass 2019-08-21 13:46:05 -07:00
2006-operand-formats_acme.S Correctly handle delimiters in character operands 2019-08-14 17:31:15 -07:00
2006-operand-formats_cc65.cfg Correctly handle delimiters in character operands 2019-08-14 17:31:15 -07:00
2006-operand-formats_cc65.S Correctly handle delimiters in character operands 2019-08-14 17:31:15 -07:00
2006-operand-formats_Merlin32.S Correctly handle delimiters in character operands 2019-08-14 17:31:15 -07:00
2007-labels-and-symbols_64tass.S Change the way ASCII is handled for 64tass 2019-08-20 11:21:30 -07:00
2007-labels-and-symbols_acme.S Finish ACME v0.96.4 support 2019-08-04 14:48:42 -07:00
2007-labels-and-symbols_cc65.cfg Attempt to generate segment names for cc65 2018-11-18 15:11:29 -08:00
2007-labels-and-symbols_cc65.S Reverse position on '#' in block move operands 2019-08-08 13:02:01 -07:00
2007-labels-and-symbols_Merlin32.S Reverse position on '#' in block move operands 2019-08-08 13:02:01 -07:00
2008-address-changes_64tass.S Allow explicit widths in project/platform symbols, part 3 2019-10-02 16:50:15 -07:00
2008-address-changes_acme.S Allow explicit widths in project/platform symbols, part 3 2019-10-02 16:50:15 -07:00
2008-address-changes_cc65.cfg Attempt to generate segment names for cc65 2018-11-18 15:11:29 -08:00
2008-address-changes_cc65.S Allow explicit widths in project/platform symbols, part 3 2019-10-02 16:50:15 -07:00
2008-address-changes_Merlin32.S Allow explicit widths in project/platform symbols, part 3 2019-10-02 16:50:15 -07:00
2009-branches-and-banks_64tass.S Improve multi-encoding output in 64tass 2019-08-21 13:46:05 -07:00
2009-branches-and-banks_acme.S Finish ACME v0.96.4 support 2019-08-04 14:48:42 -07:00
2009-branches-and-banks_cc65.cfg Attempt to generate segment names for cc65 2018-11-18 15:11:29 -08:00
2009-branches-and-banks_cc65.S Attempt to generate segment names for cc65 2018-11-18 15:11:29 -08:00
2009-branches-and-banks_Merlin32.S Initial file commit 2018-09-28 10:05:11 -07:00
2010-target-adjustment_64tass.S Change the way ASCII is handled for 64tass 2019-08-20 11:21:30 -07:00
2010-target-adjustment_acme.S Finish ACME v0.96.4 support 2019-08-04 14:48:42 -07:00
2010-target-adjustment_cc65.cfg Attempt to generate segment names for cc65 2018-11-18 15:11:29 -08:00
2010-target-adjustment_cc65.S Attempt to generate segment names for cc65 2018-11-18 15:11:29 -08:00
2010-target-adjustment_Merlin32.S Initial file commit 2018-09-28 10:05:11 -07:00
2011-hinting_64tass.S Fix handling of data formatting that overlaps with code 2019-09-14 11:44:17 -07:00
2011-hinting_acme.S Fix handling of data formatting that overlaps with code 2019-09-14 11:44:17 -07:00
2011-hinting_cc65.cfg Fix handling of data formatting that overlaps with code 2019-09-14 11:44:17 -07:00
2011-hinting_cc65.S Fix handling of data formatting that overlaps with code 2019-09-14 11:44:17 -07:00
2011-hinting_Merlin32.S Fix handling of data formatting that overlaps with code 2019-09-14 11:44:17 -07:00
2012-label-localizer_64tass.S Remap labels that use opcode mnemonics 2019-09-20 15:29:34 -07:00
2012-label-localizer_acme.S Remap labels that use opcode mnemonics 2019-09-20 15:29:34 -07:00
2012-label-localizer_cc65.cfg Remap labels that use opcode mnemonics 2019-09-20 15:29:34 -07:00
2012-label-localizer_cc65.S Remap labels that use opcode mnemonics 2019-09-20 15:29:34 -07:00
2012-label-localizer_Merlin32.S Remap labels that use opcode mnemonics 2019-09-20 15:29:34 -07:00
2013-notes-and-comments_64tass.S Improve multi-encoding output in 64tass 2019-08-21 13:46:05 -07:00
2013-notes-and-comments_acme.S Finish ACME v0.96.4 support 2019-08-04 14:48:42 -07:00
2013-notes-and-comments_cc65.cfg Attempt to generate segment names for cc65 2018-11-18 15:11:29 -08:00
2013-notes-and-comments_cc65.S Attempt to generate segment names for cc65 2018-11-18 15:11:29 -08:00
2013-notes-and-comments_Merlin32.S Initial file commit 2018-09-28 10:05:11 -07:00
2014-label-dp_64tass.S Improve multi-encoding output in 64tass 2019-08-21 13:46:05 -07:00
2014-label-dp_acme.S Finish ACME v0.96.4 support 2019-08-04 14:48:42 -07:00
2014-label-dp_cc65.cfg Attempt to generate segment names for cc65 2018-11-18 15:11:29 -08:00
2014-label-dp_cc65.S Reverse position on '#' in block move operands 2019-08-08 13:02:01 -07:00
2014-label-dp_Merlin32.S Reverse position on '#' in block move operands 2019-08-08 13:02:01 -07:00
2015-64k-nops_64tass.S Improve multi-encoding output in 64tass 2019-08-21 13:46:05 -07:00
2015-64k-nops_acme.S Add 2015-64k-nops test 2019-08-04 16:54:01 -07:00
2015-64k-nops_cc65.cfg Add 2015-64k-nops test 2019-08-04 16:54:01 -07:00
2015-64k-nops_cc65.S Add 2015-64k-nops test 2019-08-04 16:54:01 -07:00
2015-64k-nops_Merlin32.S Add 2015-64k-nops test 2019-08-04 16:54:01 -07:00
2016-char-encoding-a_64tass.S Improve multi-encoding output in 64tass 2019-08-21 13:46:05 -07:00
2016-char-encoding-a_acme.S PETSCII does DCI 2019-08-20 17:55:12 -07:00
2016-char-encoding-a_cc65.cfg Add 2016-char-encoding-a and variations 2019-08-16 15:01:11 -07:00
2016-char-encoding-a_cc65.S PETSCII does DCI 2019-08-20 17:55:12 -07:00
2016-char-encoding-a_Merlin32.S PETSCII does DCI 2019-08-20 17:55:12 -07:00
2017-char-encoding-p_64tass.S Improve multi-encoding output in 64tass 2019-08-21 13:46:05 -07:00
2017-char-encoding-p_acme.S PETSCII does DCI 2019-08-20 17:55:12 -07:00
2017-char-encoding-p_cc65.cfg Add 2016-char-encoding-a and variations 2019-08-16 15:01:11 -07:00
2017-char-encoding-p_cc65.S PETSCII does DCI 2019-08-20 17:55:12 -07:00
2017-char-encoding-p_Merlin32.S PETSCII does DCI 2019-08-20 17:55:12 -07:00
2018-char-encoding-s_64tass.S Improve multi-encoding output in 64tass 2019-08-21 13:46:05 -07:00
2018-char-encoding-s_acme.S PETSCII does DCI 2019-08-20 17:55:12 -07:00
2018-char-encoding-s_cc65.cfg Add 2016-char-encoding-a and variations 2019-08-16 15:01:11 -07:00
2018-char-encoding-s_cc65.S PETSCII does DCI 2019-08-20 17:55:12 -07:00
2018-char-encoding-s_Merlin32.S PETSCII does DCI 2019-08-20 17:55:12 -07:00
2019-local-variables_64tass.S Work around two assembler issues 2019-09-20 14:05:17 -07:00
2019-local-variables_acme.S Work around two assembler issues 2019-09-20 14:05:17 -07:00
2019-local-variables_cc65.cfg Work around two assembler issues 2019-09-20 14:05:17 -07:00
2019-local-variables_cc65.S Work around two assembler issues 2019-09-20 14:05:17 -07:00
2019-local-variables_Merlin32.S Work around two assembler issues 2019-09-20 14:05:17 -07:00
2020-cycle-counts-65816_64tass.S Remove excess whitespace after cycle count comments 2019-09-15 17:13:29 -07:00
2020-cycle-counts-65816_acme.S Remove excess whitespace after cycle count comments 2019-09-15 17:13:29 -07:00
2020-cycle-counts-65816_cc65.cfg Rename regression test 2020 to reflect the CPU configuration 2019-09-15 17:02:21 -07:00
2020-cycle-counts-65816_cc65.S Remove excess whitespace after cycle count comments 2019-09-15 17:13:29 -07:00
2020-cycle-counts-65816_Merlin32.S Remove excess whitespace after cycle count comments 2019-09-15 17:13:29 -07:00
2021-external-symbols_64tass.S Allow explicit widths in project/platform symbols, part 4 (of 4) 2019-10-03 10:32:54 -07:00
2021-external-symbols_acme.S Allow explicit widths in project/platform symbols, part 4 (of 4) 2019-10-03 10:32:54 -07:00
2021-external-symbols_cc65.cfg Allow explicit widths in project/platform symbols, part 4 (of 4) 2019-10-03 10:32:54 -07:00
2021-external-symbols_cc65.S Allow explicit widths in project/platform symbols, part 4 (of 4) 2019-10-03 10:32:54 -07:00
2021-external-symbols_Merlin32.S Allow explicit widths in project/platform symbols, part 4 (of 4) 2019-10-03 10:32:54 -07:00
2022-extension-scripts_64tass.S Optionally treat BRKs as two-byte instructions 2019-10-09 14:55:56 -07:00
2022-extension-scripts_acme.S Optionally treat BRKs as two-byte instructions 2019-10-09 14:55:56 -07:00
2022-extension-scripts_cc65.cfg Exercise address-to-offset function in plugin 2019-10-07 14:21:26 -07:00
2022-extension-scripts_cc65.S Optionally treat BRKs as two-byte instructions 2019-10-09 14:55:56 -07:00
2022-extension-scripts_Merlin32.S Optionally treat BRKs as two-byte instructions 2019-10-09 14:55:56 -07:00