Skip to content

Commit

Permalink
Fix for Issue #24
Browse files Browse the repository at this point in the history
  • Loading branch information
Arakula committed Jul 4, 2023
1 parent 1c7c88e commit ba84291
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions f9dasm.c
Expand Up @@ -118,9 +118,15 @@
See
https://github.com/Arakula/f9dasm/issues/22
for details on V1.81 and V1.82.
V1.83 2023-07-04 operations like LDA [-1,X] could lead to code that would
be assembled to a different instruction.
Thanks to Github user "mjwurtz" for reporting the issue.
See
https://github.com/Arakula/f9dasm/issues/24
for details.
*/

#define ID "1.82"
#define ID "1.83"

#if RB_VARIANT
#define VERSION ID "-RB"
Expand Down Expand Up @@ -2166,11 +2172,13 @@ if (T & 0x80)
sprintf(buf,"[A,%c]", R);
break;
case 0x18:
T = ARGBYTE(PC);
{
signed char c = (signed char)ARGBYTE(PC);
PC++;
sprintf(buf,"[%s,%c]",
number_string(T, 2, (word)(PC - 1)),
signed_string(c, 2, (word)(PC - 1)),
R);
}
break;
case 0x19:
bGetLabel = !IS_CONST(PC);
Expand Down

0 comments on commit ba84291

Please sign in to comment.