From d6af9dd779d7ccb23e1d5b87799be08e97dfe8c6 Mon Sep 17 00:00:00 2001 From: jespergravgaard Date: Mon, 11 Oct 2021 07:48:38 +0200 Subject: [PATCH] Added two fragments for @Sepa. --- .../fragment/mos6502-common/pvom1=_deref_qvom2.asm | 10 ++++++++++ .../mos6502-common/pvom1=qvom2_derefidx_vbuyy.asm | 9 +++++++++ 2 files changed, 19 insertions(+) create mode 100644 src/main/fragment/mos6502-common/pvom1=_deref_qvom2.asm create mode 100644 src/main/fragment/mos6502-common/pvom1=qvom2_derefidx_vbuyy.asm diff --git a/src/main/fragment/mos6502-common/pvom1=_deref_qvom2.asm b/src/main/fragment/mos6502-common/pvom1=_deref_qvom2.asm new file mode 100644 index 000000000..c0d02354a --- /dev/null +++ b/src/main/fragment/mos6502-common/pvom1=_deref_qvom2.asm @@ -0,0 +1,10 @@ +lda {m2} +sta $fe +lda {m2}+1 +sta $ff +ldy #0 +lda ($fe),y +sta {m1} +iny +lda ($fe),y +sta {m1}+1 \ No newline at end of file diff --git a/src/main/fragment/mos6502-common/pvom1=qvom2_derefidx_vbuyy.asm b/src/main/fragment/mos6502-common/pvom1=qvom2_derefidx_vbuyy.asm new file mode 100644 index 000000000..0cf8df4a3 --- /dev/null +++ b/src/main/fragment/mos6502-common/pvom1=qvom2_derefidx_vbuyy.asm @@ -0,0 +1,9 @@ +lda {m2} +sta $fe +lda {m2}+1 +sta $ff +lda ($fe),y +sta {m1} +iny +lda ($fe),y +sta {m1}+1 \ No newline at end of file