mirror of
https://gitlab.com/camelot/kickc.git
synced 2024-12-25 11:32:07 +00:00
Added byte casting fragments
This commit is contained in:
parent
96f2610d25
commit
c8e3b36893
@ -115,6 +115,7 @@ public class AsmFragmentManager {
|
||||
synths.add(new FragmentSynthesis("zpsby1=(.*)", ".*=.*zpsby1.*", null, "asby=$1", "sta {zpsby1}\n", mapZpsby));
|
||||
synths.add(new FragmentSynthesis("_deref_cowo1=(.*)", null, null, "aby=$1", "sta {cowo1}\n", mapConst));
|
||||
synths.add(new FragmentSynthesis("_deref_zpptrby1=(.*)", ".*=.*zpptrby1.*", null, "aby=$1", "ldy #0\n" + "sta ({zpptrby1}),y\n", mapZpptrby));
|
||||
synths.add(new FragmentSynthesis("cowo1_derefidx_zpby1=(.*)", null, null, "aby=$1", "ldx {zpby1}\n"+"sta {cowo1},x\n", mapZpby));
|
||||
|
||||
synths.add(new FragmentSynthesis("(.*)=xby(.*)", ".*=.*as?by.*", "txa\n", "$1=aby$2", null, null));
|
||||
synths.add(new FragmentSynthesis("(.*)=yby(.*)", ".*=.*as?by.*", "tya\n", "$1=aby$2", null, null));
|
||||
|
@ -0,0 +1 @@
|
||||
txa
|
@ -0,0 +1 @@
|
||||
tya
|
@ -1,3 +0,0 @@
|
||||
lda {zpby2}
|
||||
ldx {zpby1}
|
||||
sta {cowo1},x
|
@ -0,0 +1 @@
|
||||
tax
|
@ -0,0 +1,2 @@
|
||||
sty $ff
|
||||
ldx $ff
|
@ -0,0 +1 @@
|
||||
ldx {zpsby1}
|
@ -0,0 +1 @@
|
||||
tay
|
@ -0,0 +1,2 @@
|
||||
stx $ff
|
||||
ldy $ff
|
@ -0,0 +1 @@
|
||||
ldy {zpsby1}
|
Loading…
Reference in New Issue
Block a user