From 46f6690b6d4dceaf72f5d2adbbfc610870dffb55 Mon Sep 17 00:00:00 2001 From: jespergravgaard Date: Sat, 8 Jan 2022 13:41:11 +0100 Subject: [PATCH] added missing fragments. closes #749 --- .../pwsm1_derefidx_vbuyy_lt_vbsc1_then_la1.asm | 13 +++++++++++++ .../pwsm1_derefidx_vbuyy_lt_vwsc1_then_la1.asm | 13 +++++++++++++ .../pwsz1_derefidx_vbuyy_lt_vbsc1_then_la1.asm | 9 +++++++++ .../pwsz1_derefidx_vbuyy_lt_vwsc1_then_la1.asm | 9 +++++++++ 4 files changed, 44 insertions(+) create mode 100644 src/main/fragment/mos6502-common/pwsm1_derefidx_vbuyy_lt_vbsc1_then_la1.asm create mode 100644 src/main/fragment/mos6502-common/pwsm1_derefidx_vbuyy_lt_vwsc1_then_la1.asm create mode 100644 src/main/fragment/mos6502-common/pwsz1_derefidx_vbuyy_lt_vbsc1_then_la1.asm create mode 100644 src/main/fragment/mos6502-common/pwsz1_derefidx_vbuyy_lt_vwsc1_then_la1.asm diff --git a/src/main/fragment/mos6502-common/pwsm1_derefidx_vbuyy_lt_vbsc1_then_la1.asm b/src/main/fragment/mos6502-common/pwsm1_derefidx_vbuyy_lt_vbsc1_then_la1.asm new file mode 100644 index 000000000..21813bfa7 --- /dev/null +++ b/src/main/fragment/mos6502-common/pwsm1_derefidx_vbuyy_lt_vbsc1_then_la1.asm @@ -0,0 +1,13 @@ +lda {m1} +sta $fe +lda {m1}+1 +sta $ff +lda ($fe),y +cmp #<{c1} +iny +lda ($fe),y +sbc #>{c1} +bvc !+ +eor #$80 +!: +bmi {la1} \ No newline at end of file diff --git a/src/main/fragment/mos6502-common/pwsm1_derefidx_vbuyy_lt_vwsc1_then_la1.asm b/src/main/fragment/mos6502-common/pwsm1_derefidx_vbuyy_lt_vwsc1_then_la1.asm new file mode 100644 index 000000000..21813bfa7 --- /dev/null +++ b/src/main/fragment/mos6502-common/pwsm1_derefidx_vbuyy_lt_vwsc1_then_la1.asm @@ -0,0 +1,13 @@ +lda {m1} +sta $fe +lda {m1}+1 +sta $ff +lda ($fe),y +cmp #<{c1} +iny +lda ($fe),y +sbc #>{c1} +bvc !+ +eor #$80 +!: +bmi {la1} \ No newline at end of file diff --git a/src/main/fragment/mos6502-common/pwsz1_derefidx_vbuyy_lt_vbsc1_then_la1.asm b/src/main/fragment/mos6502-common/pwsz1_derefidx_vbuyy_lt_vbsc1_then_la1.asm new file mode 100644 index 000000000..d6fe1350f --- /dev/null +++ b/src/main/fragment/mos6502-common/pwsz1_derefidx_vbuyy_lt_vbsc1_then_la1.asm @@ -0,0 +1,9 @@ +lda ({z1}),y +cmp #<{c1} +iny +lda ({z1}),y +sbc #>{c1} +bvc !+ +eor #$80 +!: +bmi {la1} \ No newline at end of file diff --git a/src/main/fragment/mos6502-common/pwsz1_derefidx_vbuyy_lt_vwsc1_then_la1.asm b/src/main/fragment/mos6502-common/pwsz1_derefidx_vbuyy_lt_vwsc1_then_la1.asm new file mode 100644 index 000000000..d6fe1350f --- /dev/null +++ b/src/main/fragment/mos6502-common/pwsz1_derefidx_vbuyy_lt_vwsc1_then_la1.asm @@ -0,0 +1,9 @@ +lda ({z1}),y +cmp #<{c1} +iny +lda ({z1}),y +sbc #>{c1} +bvc !+ +eor #$80 +!: +bmi {la1} \ No newline at end of file