1
0
mirror of https://github.com/cc65/cc65.git synced 2025-04-09 10:39:40 +00:00

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;
case ADDR_SIZE_ZP:
/* Not supported by None and Sweet16 */
return (CPU != CPU_NONE && CPU != CPU_SWEET16);
/* Not supported by Sweet16 */
return (CPU != CPU_SWEET16);
case ADDR_SIZE_ABS:
/* Not supported by None */
return (CPU != CPU_NONE);
/* Always supported */
return 1;
case ADDR_SIZE_FAR:
/* Only supported by 65816 */
return (CPU == CPU_65816);
/* Supported by "none" and 65816 */
return (CPU == CPU_NONE && CPU == CPU_65816);
case ADDR_SIZE_LONG:
/* Not supported by any CPU */
return 0;
/* "none" supports all sizes */
return (CPU == CPU_NONE);
default:
FAIL ("Invalid address size");