Made the "none" CPU allow all address sizes.

This commit is contained in:
Greg King
2019-10-02 10:09:48 -04:00
parent 9dfc8f84bc
commit 2e5fbe89cd

View File

@@ -95,20 +95,20 @@ int ValidAddrSizeForCPU (unsigned char AddrSize)
return 1; return 1;
case ADDR_SIZE_ZP: case ADDR_SIZE_ZP:
/* Not supported by None and Sweet16 */ /* Not supported by Sweet16 */
return (CPU != CPU_NONE && CPU != CPU_SWEET16); return (CPU != CPU_SWEET16);
case ADDR_SIZE_ABS: case ADDR_SIZE_ABS:
/* Not supported by None */ /* Always supported */
return (CPU != CPU_NONE); return 1;
case ADDR_SIZE_FAR: case ADDR_SIZE_FAR:
/* Only supported by 65816 */ /* Supported by "none" and 65816 */
return (CPU == CPU_65816); return (CPU == CPU_NONE && CPU == CPU_65816);
case ADDR_SIZE_LONG: case ADDR_SIZE_LONG:
/* Not supported by any CPU */ /* "none" supports all sizes */
return 0; return (CPU == CPU_NONE);
default: default:
FAIL ("Invalid address size"); FAIL ("Invalid address size");