1
0
mirror of https://github.com/fadden/6502bench.git synced 2024-07-04 16:30:01 +00:00
6502bench/Asm65
Andy McFadden f33cd7d8a6 Replace character operand output method
The previous code output a character in single-quotes if it was
standard ASCII, double-quotes if high ASCII, or hex if it was neither
of those.  If a flag was set, high ASCII would also be output as
hex.

The new system takes the character value and an encoding identifier.
The identifier selects the character converter and delimiter
pattern, and puts the two together to generate the operand.

While doing this I realized that I could trivially support high
ASCII character arguments in all assemblers by setting the delimiter
pattern to "'#' | $80".

In FormatDescriptor, I had previously renamed the "Ascii" sub-type
"LowAscii" so it wouldn't be confused, but I dislike filling the
project file with "LowAscii" when "Ascii" is more accurate and less
confusing.  So I switched it back, and we now check the project
file version number when deciding what to do with an ASCII item.
The CharEncoding tests/converters were also renamed.

Moved the default delimiter patterns to the string table.

Widened the delimiter pattern input fields slightly.  Added a read-
only TextBox with assorted non-typewriter quotes and things so
people have something to copy text from.
2019-08-11 22:11:00 -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 Replace character operand output method 2019-08-11 22:11:00 -07:00
CpuDef.cs Treat BRK as a 1-byte instruction 2019-08-02 17:21:50 -07:00
Formatter.cs Replace character operand output method 2019-08-11 22:11:00 -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 Initial file commit 2018-09-28 10:05:11 -07:00
OpDef.cs Treat BRK as a 1-byte instruction 2019-08-02 17:21:50 -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 Rework string operand formatting 2019-08-09 17:46:33 -07:00
TriState16.cs Initial file commit 2018-09-28 10:05:11 -07:00