From 0d546d215f65f985e6c8d14385df842b75cb5e50 Mon Sep 17 00:00:00 2001 From: jespergravgaard Date: Wed, 31 Mar 2021 20:23:35 +0200 Subject: [PATCH] Added a fragment and the start of a line drawing mega65 program. --- .../mos6502-common/vdum1=vduc1_plus_vwum2.asm | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/main/fragment/mos6502-common/vdum1=vduc1_plus_vwum2.asm diff --git a/src/main/fragment/mos6502-common/vdum1=vduc1_plus_vwum2.asm b/src/main/fragment/mos6502-common/vdum1=vduc1_plus_vwum2.asm new file mode 100644 index 000000000..618d257dd --- /dev/null +++ b/src/main/fragment/mos6502-common/vdum1=vduc1_plus_vwum2.asm @@ -0,0 +1,13 @@ +lda {m2} +clc +adc #<{c1} +sta {m1} +lda {m2}+1 +adc #>{c1} +sta {m1}+1 +lda #0 +adc #<{c1}>>$10 +sta {m1}+2 +lda #0 +adc #>{c1}>>$10 +sta {m1}+3