small 65C02 optimizations in many places

This commit is contained in:
FeralChild64 committed 2019-10-10 19:45:40 +02:00
1 parent 3e5c80bbf1
commit ce8c84a20c
22 files changed
+103 -159

No files matched your search

+45
View File
@@ -0,0 +1,45 @@
//
// Provide pseudocommands to make CPU optimizations easier
//
.pseudocommand _phx
{
#if CONFIG_CPU_WDC_65C02 || CONFIG_CPU_WDC_65816
phx
#else
txa
pha
#endif
}
.pseudocommand _phy
{
#if CONFIG_CPU_WDC_65C02 || CONFIG_CPU_WDC_65816
phy
#else
tya
pha
#endif
}
.pseudocommand _plx
{
#if CONFIG_CPU_WDC_65C02 || CONFIG_CPU_WDC_65816
plx
#else
pla
tax
#endif
}
.pseudocommand _ply
{
#if CONFIG_CPU_WDC_65C02 || CONFIG_CPU_WDC_65816
ply
#else
pla
tay
#endif
}