Fixed an error: When guessing the address size of an expression used in an

instruction that contains undefined symbols, and the effective address allows
just one address size, use this size instead of the default data segment size.


git-svn-id: svn://svn.cc65.org/cc65/trunk@5658 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
uz
2012-05-25 16:28:46 +00:00
parent 7d62062bd2
commit 47c87eb335
3 changed files with 38 additions and 15 deletions

View File

@@ -90,7 +90,7 @@ void GetEA (EffAddr* A)
/* #val */
NextTok ();
A->Expr = Expression ();
A->AddrModeSet = AM65_IMM;
A->AddrModeSet = AM65_ALL_IMM;
} else if (CurTok.Tok == TOK_A) {
@@ -203,4 +203,4 @@ void GetEA (EffAddr* A)