1
0
mirror of https://github.com/fadden/6502bench.git synced 2024-12-28 16:31:17 +00:00
6502bench/Asm65
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
..
Properties Initial file commit 2018-09-28 10:05:11 -07:00
Address.cs Initial file commit 2018-09-28 10:05:11 -07:00
Asm65.csproj Initial file commit 2018-09-28 10:05:11 -07:00
CharEncoding.cs PETSCII does DCI 2019-08-20 17:55:12 -07:00
CpuDef.cs Optionally treat BRKs as two-byte instructions 2019-10-09 14:55:56 -07:00
Formatter.cs Optionally treat BRKs as two-byte instructions 2019-10-09 14:55:56 -07:00
Helper.cs Initial file commit 2018-09-28 10:05:11 -07:00
Label.cs Initial file commit 2018-09-28 10:05:11 -07:00
Number.cs Allow explicit widths in project/platform symbols, part 1 2019-10-01 16:00:08 -07:00
OpDef.cs Optionally treat BRKs as two-byte instructions 2019-10-09 14:55:56 -07:00
OpDescription.cs Show "assembling" when assembling 2018-10-30 16:41:56 -07:00
OpName.cs Rename undocumented 6502 opcodes to match Unintended Opcodes doc 2018-10-05 14:28:45 -07:00
StatusFlags.cs Initial file commit 2018-09-28 10:05:11 -07:00
StringOpFormatter.cs Define and use "delimiter sets" 2019-08-14 16:10:04 -07:00
TriState16.cs Initial file commit 2018-09-28 10:05:11 -07:00