From f51cef9c342ff25a62ca73d4dcd69b548ec9ea58 Mon Sep 17 00:00:00 2001 From: jespergravgaard Date: Sat, 17 Aug 2019 14:13:15 +0200 Subject: [PATCH] Added more missing fragments. --- src/main/fragment/vwuz1=pwuc1_derefidx_vbuxx_plus_1.asm | 8 ++++++++ src/main/fragment/vwuz1=pwuc1_derefidx_vbuyy_plus_1.asm | 8 ++++++++ .../fragment/vwuz1_gt_pwuc1_derefidx_vbuxx_then_la1.asm | 8 ++++++++ .../fragment/vwuz1_gt_pwuc1_derefidx_vbuyy_then_la1.asm | 8 ++++++++ .../fragment/vwuz1_lt_pwuc1_derefidx_vbuxx_then_la1.asm | 8 ++++++++ .../fragment/vwuz1_lt_pwuc1_derefidx_vbuyy_then_la1.asm | 1 - 6 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 src/main/fragment/vwuz1=pwuc1_derefidx_vbuxx_plus_1.asm create mode 100644 src/main/fragment/vwuz1=pwuc1_derefidx_vbuyy_plus_1.asm create mode 100644 src/main/fragment/vwuz1_gt_pwuc1_derefidx_vbuxx_then_la1.asm create mode 100644 src/main/fragment/vwuz1_gt_pwuc1_derefidx_vbuyy_then_la1.asm create mode 100644 src/main/fragment/vwuz1_lt_pwuc1_derefidx_vbuxx_then_la1.asm diff --git a/src/main/fragment/vwuz1=pwuc1_derefidx_vbuxx_plus_1.asm b/src/main/fragment/vwuz1=pwuc1_derefidx_vbuxx_plus_1.asm new file mode 100644 index 000000000..02d4c85f3 --- /dev/null +++ b/src/main/fragment/vwuz1=pwuc1_derefidx_vbuxx_plus_1.asm @@ -0,0 +1,8 @@ +lda {c1},x +clc +adc #1 +sta {z1} +lda {c1}+1,x +adc #0 +sta {z1}+1 + diff --git a/src/main/fragment/vwuz1=pwuc1_derefidx_vbuyy_plus_1.asm b/src/main/fragment/vwuz1=pwuc1_derefidx_vbuyy_plus_1.asm new file mode 100644 index 000000000..b6d855a63 --- /dev/null +++ b/src/main/fragment/vwuz1=pwuc1_derefidx_vbuyy_plus_1.asm @@ -0,0 +1,8 @@ +lda {c1},y +clc +adc #1 +sta {z1} +lda {c1}+1,y +adc #0 +sta {z1}+1 + diff --git a/src/main/fragment/vwuz1_gt_pwuc1_derefidx_vbuxx_then_la1.asm b/src/main/fragment/vwuz1_gt_pwuc1_derefidx_vbuxx_then_la1.asm new file mode 100644 index 000000000..8ef12ec23 --- /dev/null +++ b/src/main/fragment/vwuz1_gt_pwuc1_derefidx_vbuxx_then_la1.asm @@ -0,0 +1,8 @@ +lda {c1}+1,x +cmp {z1}+1 +bcc {la1} +bne !+ +lda {c1},x +cmp {z1} +bcc {la1} +!: diff --git a/src/main/fragment/vwuz1_gt_pwuc1_derefidx_vbuyy_then_la1.asm b/src/main/fragment/vwuz1_gt_pwuc1_derefidx_vbuyy_then_la1.asm new file mode 100644 index 000000000..b968fbccd --- /dev/null +++ b/src/main/fragment/vwuz1_gt_pwuc1_derefidx_vbuyy_then_la1.asm @@ -0,0 +1,8 @@ +lda {c1}+1,y +cmp {z1}+1 +bcc {la1} +bne !+ +lda {c1},y +cmp {z1} +bcc {la1} +!: diff --git a/src/main/fragment/vwuz1_lt_pwuc1_derefidx_vbuxx_then_la1.asm b/src/main/fragment/vwuz1_lt_pwuc1_derefidx_vbuxx_then_la1.asm new file mode 100644 index 000000000..4859fd5c2 --- /dev/null +++ b/src/main/fragment/vwuz1_lt_pwuc1_derefidx_vbuxx_then_la1.asm @@ -0,0 +1,8 @@ +lda {z1}+1 +cmp {c1}+1,x +bcc {la1} +bne !+ +lda {z1} +cmp {c1},x +bcc {la1} +!: diff --git a/src/main/fragment/vwuz1_lt_pwuc1_derefidx_vbuyy_then_la1.asm b/src/main/fragment/vwuz1_lt_pwuc1_derefidx_vbuyy_then_la1.asm index 51e5e110a..e0baf98a9 100644 --- a/src/main/fragment/vwuz1_lt_pwuc1_derefidx_vbuyy_then_la1.asm +++ b/src/main/fragment/vwuz1_lt_pwuc1_derefidx_vbuyy_then_la1.asm @@ -2,7 +2,6 @@ lda {z1}+1 cmp {c1}+1,y bcc {la1} bne !+ -dey lda {z1} cmp {c1},y bcc {la1}