Explicit z: should suppress "Suspicious address expression" warning #194

This commit is contained in:
bbbradsmith
2023-05-03 01:01:21 -04:00
parent 805e98a7aa
commit 65f773f5ee
3 changed files with 9 additions and 1 deletions

View File

@@ -72,11 +72,13 @@ void GetEA (EffAddr* A)
/* Clear the output struct */
A->AddrModeSet = 0;
A->Expr = 0;
A->Flags = 0;
/* Handle an addressing size override */
switch (CurTok.Tok) {
case TOK_OVERRIDE_ZP:
Restrictions = AM65_DIR | AM65_DIR_X | AM65_DIR_Y;
A->Flags |= EFFADDR_OVERRIDE_ZP;
NextTok ();
break;