Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions f9dasm.c
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,12 @@
See
https://github.com/Arakula/f9dasm/issues/24
for details.
V1.84 2024-09-28 Print characters 'c with high bit set as 'c|$80 (AS/A09-compatible)
(Orig. added 2019-07-27 in alternate 1.79 version.)

*/

#define ID "1.83"
#define ID "1.84"

#if RB_VARIANT
#define VERSION ID "-RB"
Expand Down Expand Up @@ -1930,7 +1933,14 @@ if ((nDigits == 2) && /* if 2-digit value */
sprintf(s, "'%c", W);
#endif
else
sprintf(s, "$%02x", W);
if (isprint(W & 0x7f))
#if RB_VARIANT
sprintf(s, "'%c'|$80", W & 0x7f);
#else
sprintf(s, "'%c|$80", W & 0x7f);
#endif
else
sprintf(s, "$%02x", W);
}
else if (IS_BINARY(addr)) /* if a binary */
{
Expand Down