From 81b638f060a55445dd68ba0a622513cc84228a2d Mon Sep 17 00:00:00 2001 From: jespergravgaard Date: Mon, 28 Sep 2020 08:51:20 +0200 Subject: [PATCH] Added missing fragments. --- .../_deref_pwuz1=_deref_pwuz2_bxor_vwuc1.asm | 8 ++++++++ .../_deref_pwuz1=_deref_pwuz2_plus__deref_pwuz3.asm | 9 +++++++++ .../_deref_pwuz1=_deref_pwuz2_plus_vwuc1.asm | 9 +++++++++ .../fragment/mos6502-common/vwum1=_deref_pwuz2_ror_8.asm | 5 +++++ .../fragment/mos6502-common/vwuz1=_deref_pwuz1_ror_8.asm | 5 +++++ 5 files changed, 36 insertions(+) create mode 100644 src/main/fragment/mos6502-common/_deref_pwuz1=_deref_pwuz2_bxor_vwuc1.asm create mode 100644 src/main/fragment/mos6502-common/_deref_pwuz1=_deref_pwuz2_plus__deref_pwuz3.asm create mode 100644 src/main/fragment/mos6502-common/_deref_pwuz1=_deref_pwuz2_plus_vwuc1.asm create mode 100644 src/main/fragment/mos6502-common/vwum1=_deref_pwuz2_ror_8.asm create mode 100644 src/main/fragment/mos6502-common/vwuz1=_deref_pwuz1_ror_8.asm diff --git a/src/main/fragment/mos6502-common/_deref_pwuz1=_deref_pwuz2_bxor_vwuc1.asm b/src/main/fragment/mos6502-common/_deref_pwuz1=_deref_pwuz2_bxor_vwuc1.asm new file mode 100644 index 000000000..81f84553b --- /dev/null +++ b/src/main/fragment/mos6502-common/_deref_pwuz1=_deref_pwuz2_bxor_vwuc1.asm @@ -0,0 +1,8 @@ +ldy #0 +lda #<{c1} +eor ({z2}),y +sta ({z1}),y +iny +lda #>{c1} +eor ({z2}),y +sta ({z1}),y \ No newline at end of file diff --git a/src/main/fragment/mos6502-common/_deref_pwuz1=_deref_pwuz2_plus__deref_pwuz3.asm b/src/main/fragment/mos6502-common/_deref_pwuz1=_deref_pwuz2_plus__deref_pwuz3.asm new file mode 100644 index 000000000..f56c79735 --- /dev/null +++ b/src/main/fragment/mos6502-common/_deref_pwuz1=_deref_pwuz2_plus__deref_pwuz3.asm @@ -0,0 +1,9 @@ +ldy #0 +lda ({z2}),y +clc +adc ({z3}),y +sta ({z1}),y +iny +lda ({z2}),y +adc ({z3}),y +sta ({z1}),y \ No newline at end of file diff --git a/src/main/fragment/mos6502-common/_deref_pwuz1=_deref_pwuz2_plus_vwuc1.asm b/src/main/fragment/mos6502-common/_deref_pwuz1=_deref_pwuz2_plus_vwuc1.asm new file mode 100644 index 000000000..927bc59e3 --- /dev/null +++ b/src/main/fragment/mos6502-common/_deref_pwuz1=_deref_pwuz2_plus_vwuc1.asm @@ -0,0 +1,9 @@ +ldy #0 +lda ({z2}),y +clc +adc #<{c1} +sta ({z1}),y +iny +lda ({z2}),y +adc #>{c1} +sta ({z1}),y \ No newline at end of file diff --git a/src/main/fragment/mos6502-common/vwum1=_deref_pwuz2_ror_8.asm b/src/main/fragment/mos6502-common/vwum1=_deref_pwuz2_ror_8.asm new file mode 100644 index 000000000..061cf27ad --- /dev/null +++ b/src/main/fragment/mos6502-common/vwum1=_deref_pwuz2_ror_8.asm @@ -0,0 +1,5 @@ +ldy #1 +lda ({z2}),y +sta {m1} +lda #0 +sta {m1}+1 diff --git a/src/main/fragment/mos6502-common/vwuz1=_deref_pwuz1_ror_8.asm b/src/main/fragment/mos6502-common/vwuz1=_deref_pwuz1_ror_8.asm new file mode 100644 index 000000000..e0dd3cbfd --- /dev/null +++ b/src/main/fragment/mos6502-common/vwuz1=_deref_pwuz1_ror_8.asm @@ -0,0 +1,5 @@ +ldy #1 +lda ({z1}),y +sta {z1} +dey +sty {z1}+1 \ No newline at end of file