more 65CE02 optimizations

This commit is contained in:
FeralChild64 committed 2019-12-23 17:56:14 +01:00
1 parent 1031e44f77
commit 0f843beda1
5 files changed
+45 -2

No files matched your search

+24
View File
@@ -47,6 +47,30 @@
}
//
// Some additional 65CE02 instructions
//
#if HAS_OPCODES_65CE02
.pseudocommand dew addr
{
.var arg = addr.getValue()
.if (arg > $FF) .error "DEW requires zeropage address"
.byte $C3, arg
}
.pseudocommand inw addr
{
.var arg = addr.getValue()
.if (arg > $FF) .error "INW requires zeropage address"
.byte $E3, arg
}
#endif
//
// Stack manipulation - some CPUs will leave .A unchanged, some will use it as temporary storage, so consider .A trashed
//