1
0
mirror of https://github.com/fadden/6502bench.git synced 2025-08-06 01:25:11 +00:00
Files
6502bench/SourceGen
Andy McFadden d65ab59461 Don't reject strings with "invalid" characters
When formatting one or more strings with the Edit Data Operand dialog,
the code must determine which options to present.  If the selected
bytes appear to represent one or more null-terminated strings, that
option is enabled in the UI.

The "format recognizers" enforce some strict rules, e.g. null-
terminated strings must end in $00, and also try to confirm that the
data looks like a printable string.  The algorithm rejects strings
with "illegal" characters in them.  This is simpler on some systems
than others.  For example, C64 PETSCII defines quite a few control
characters in ways that make them useful for embedding in printable
strings.

The "recognizers" are only used by the operand edit feature, not as
part of an automated string detector, so there's no real upside in
overriding the user's desire to form a string with arbitrary bytes.

This removes the quick rejection from the four recognizers (null-term,
len8, len16, dci).  It does not alter the high-level code, which
still insists on a certain percentage of the string being printable;
that may be worth revisiting as well.

(issue #100)
2021-08-01 17:50:32 -07:00
..
2020-07-10 21:22:18 -07:00
2020-10-18 13:22:24 -07:00
2021-07-31 15:15:21 -07:00
2020-07-19 13:20:18 -07:00
2020-10-15 16:55:29 -07:00
2020-10-15 16:55:29 -07:00
2019-07-20 17:36:12 -07:00
2019-12-04 15:59:37 -08:00
2021-07-20 13:20:32 -07:00
2019-11-08 21:02:15 -08:00
2020-03-30 16:50:52 -07:00
2021-05-23 15:28:30 -07:00
2019-10-23 13:25:50 -07:00
2019-12-25 11:15:22 -08:00
2019-11-01 19:47:56 -07:00
2019-10-10 11:57:36 -07:00
2021-07-31 14:42:36 -07:00
2020-07-16 10:14:28 -07:00