From 1b283b30847e4d6060c2c4913e0a4510db21d974 Mon Sep 17 00:00:00 2001 From: jespergravgaard Date: Sun, 6 Dec 2020 01:13:48 +0100 Subject: [PATCH] Added missing fragments for Richard-William Loerakker --- .../mos6502-common/vdum1_ge_vduc1_then_la1.asm | 16 ++++++++++++++++ .../mos6502-common/vwum1=vbsaa_plus_vbum2.asm | 11 +++++++++++ .../mos6502-common/vwum1=vbuaa_rol_4.asm | 11 +++++++++++ 3 files changed, 38 insertions(+) create mode 100644 src/main/fragment/mos6502-common/vdum1_ge_vduc1_then_la1.asm create mode 100644 src/main/fragment/mos6502-common/vwum1=vbsaa_plus_vbum2.asm create mode 100644 src/main/fragment/mos6502-common/vwum1=vbuaa_rol_4.asm diff --git a/src/main/fragment/mos6502-common/vdum1_ge_vduc1_then_la1.asm b/src/main/fragment/mos6502-common/vdum1_ge_vduc1_then_la1.asm new file mode 100644 index 000000000..9fa9038eb --- /dev/null +++ b/src/main/fragment/mos6502-common/vdum1_ge_vduc1_then_la1.asm @@ -0,0 +1,16 @@ +lda {m1}+3 +cmp #>{c1}>>$10 +bcc !+ +bne {la1} +lda {m1}+2 +cmp #<{c1}>>$10 +bcc !+ +bne {la1} +lda {m1}+1 +cmp #>{c1} +bcc !+ +bne {la1} +lda {m1} +cmp #<{c1} +bcs {la1} +!: diff --git a/src/main/fragment/mos6502-common/vwum1=vbsaa_plus_vbum2.asm b/src/main/fragment/mos6502-common/vwum1=vbsaa_plus_vbum2.asm new file mode 100644 index 000000000..87d8d9752 --- /dev/null +++ b/src/main/fragment/mos6502-common/vwum1=vbsaa_plus_vbum2.asm @@ -0,0 +1,11 @@ +pha +clc +adc {m2} +sta {m1} +pla +ora #$7f +bmi !+ +lda #0 +!: +adc #0 +sta {m1}+1 \ No newline at end of file diff --git a/src/main/fragment/mos6502-common/vwum1=vbuaa_rol_4.asm b/src/main/fragment/mos6502-common/vwum1=vbuaa_rol_4.asm new file mode 100644 index 000000000..cc21997af --- /dev/null +++ b/src/main/fragment/mos6502-common/vwum1=vbuaa_rol_4.asm @@ -0,0 +1,11 @@ +asl +sta {m1} +lda #0 +rol +sta {m1}+1 +asl {m1} +rol {m1}+1 +asl {m1} +rol {m1}+1 +asl {m1} +rol {m1}+1 \ No newline at end of file