1
0
mirror of https://github.com/fadden/6502bench.git synced 2024-08-19 20:29:36 +00:00
6502bench/SourceGen/AsmGen
Andy McFadden 3368182e14 Allow single-character DCI strings
The DCI string format uses character values where the high bit of the
last byte differs from the rest of the string.  Usually all the high
bits are clear except on the last byte, but SourceGen generally allows
either polarity.

This gets a little uncertain with single-character strings, because
SourceGen can't auto-detect DCI very effectively.  A series of bytes
with the high bit set could be a single high-ASCII string or a series
of single-byte DCI strings.

The motivation for allowing them is C64 PETSCII.  While ASCII allows
"high ASCII" as an escape hatch, PETSCII doesn't have that option, so
there's no way to mark the data as a character or a string.  We still
want to do a bit of screening, but if the user specifies a non-ASCII
character set and the selected bytes have their high bits set, we
want to just treat the whole set as 1-byte DCI.

Some minor adjustments were needed for a couple of validity checks
that expected longer strings.

This adds some short DCI strings in different character sets to the
char-encoding regression tests.

(for issue #102)
2021-08-08 15:38:39 -07:00
..
WpfGui Improve handling of C64 PRG header 2020-10-17 16:45:13 -07:00
AsmAcme.cs Tweak backslash escaping 2021-07-31 20:22:21 -07:00
AsmCc65.cs Fix the "target assembler" comment 2021-07-31 14:56:17 -07:00
AsmMerlin32.cs Fix the "target assembler" comment 2021-07-31 14:56:17 -07:00
AsmTass64.cs Allow single-character DCI strings 2021-08-08 15:38:39 -07:00
AssemblerConfig.cs Move WPF code from SourceGenWPF to SourceGen 2019-07-20 13:28:37 -07:00
AssemblerInfo.cs First pass at ACME support 2019-08-03 20:54:07 -07:00
AssemblerVersion.cs Move WPF code from SourceGenWPF to SourceGen 2019-07-20 13:28:37 -07:00
GenCommon.cs Fix 64tass output for non-loadable files 2021-08-01 17:21:20 -07:00
IAssembler.cs Improve handling of C64 PRG header 2020-10-17 16:45:13 -07:00
IGenerator.cs Improve handling of C64 PRG header 2020-10-17 16:45:13 -07:00
LabelLocalizer.cs Rename project/platform symbols that clash with opcode mnemonics 2020-01-17 18:29:20 -08:00