diff --git a/src/main/fragment/mos6502-common/pwsz1_derefidx_vbuyy=vwsc1.asm b/src/main/fragment/mos6502-common/pwsz1_derefidx_vbuyy=vwsc1.asm new file mode 100644 index 000000000..1fca3f46d --- /dev/null +++ b/src/main/fragment/mos6502-common/pwsz1_derefidx_vbuyy=vwsc1.asm @@ -0,0 +1,5 @@ +lda #<{c1} +sta ({z1}),y +iny +lda #>{c1} +sta ({z1}),y diff --git a/src/main/fragment/mos6502-common/pwsz1_derefidx_vbuyy=vwsm2.asm b/src/main/fragment/mos6502-common/pwsz1_derefidx_vbuyy=vwsm2.asm new file mode 100644 index 000000000..1bfb19391 --- /dev/null +++ b/src/main/fragment/mos6502-common/pwsz1_derefidx_vbuyy=vwsm2.asm @@ -0,0 +1,5 @@ +lda {m2} +sta ({z1}),y +iny +lda {m2}+1 +sta ({z1}),y diff --git a/src/main/fragment/mos6502-common/vwsm1=_deref_pwsc1_minus_vwsc2.asm b/src/main/fragment/mos6502-common/vwsm1=_deref_pwsc1_minus_vwsc2.asm new file mode 100644 index 000000000..1d4899c0a --- /dev/null +++ b/src/main/fragment/mos6502-common/vwsm1=_deref_pwsc1_minus_vwsc2.asm @@ -0,0 +1,7 @@ +sec +lda {c1} +sbc #<{c2} +sta {m1} +lda {c1}+1 +sbc #>{c2} +sta {m1}+1 \ No newline at end of file diff --git a/src/main/fragment/mos6502-common/vwsm1=_deref_pwsc1_plus_vwsc2.asm b/src/main/fragment/mos6502-common/vwsm1=_deref_pwsc1_plus_vwsc2.asm new file mode 100644 index 000000000..ad90b2507 --- /dev/null +++ b/src/main/fragment/mos6502-common/vwsm1=_deref_pwsc1_plus_vwsc2.asm @@ -0,0 +1,7 @@ +clc +lda {c1} +adc #<{c2} +sta {m1} +lda {c1}+1 +adc #>{c2} +sta {m1}+1 \ No newline at end of file