1
0
mirror of https://gitlab.com/camelot/kickc.git synced 2024-11-25 20:32:25 +00:00

Fixed new addressing modes.

This commit is contained in:
jespergravgaard 2022-02-04 07:06:02 +01:00
parent 517b2af6d5
commit 0b4a53ae12
2 changed files with 4 additions and 2 deletions

View File

@ -182,13 +182,13 @@ public enum CpuAddressingMode {
* #imm,zp Immediate, zeropage <br>
* IMMEDIATE ADDRESSING, ZEROPAGE Two parameters, one immediate the other a zeropage address. Only used by HUC6280 TST.
*/
IMMANDZP("#imm,zp", "%i #%p,%q", 3),
IMMANDZP("#imm,zp", "%i #%p,%q", 2),
/**
* #imm,abs Immediate, absolute <br>
* IMMEDIATE ADDRESSING, ABSOLUTE Two parameters, one immediate the other an absolute address. Only used by HUC6280 TST.
*/
IMMANDABS("#imm,abs", "%i #%p,%q", 4);
IMMANDABS("#imm,abs", "%i #%p,%q", 3);
/** The short name of the addressing mode. */

View File

@ -139,6 +139,8 @@ public class TestCpuFamilyKickAssCompatibility {
map.put(CpuAddressingMode.ISY, Collections.singletonList(_65xxArgType.indirectStackZeropageY));
map.put(CpuAddressingMode.REL, Arrays.asList(_65xxArgType.relative, _65xxArgType.relativeWord));
map.put(CpuAddressingMode.REZ, Collections.singletonList(_65xxArgType.zeropageRelative));
map.put(CpuAddressingMode.IMMANDZP, Collections.singletonList(_65xxArgType.immediateAndZeropage));
map.put(CpuAddressingMode.IMMANDABS, Collections.singletonList(_65xxArgType.immediateAndAbsolute));
return map;
}