From ff2afd7c9e53652ea0f37af3f99430e779660770 Mon Sep 17 00:00:00 2001 From: jespergravgaard Date: Wed, 3 Nov 2021 06:54:43 +0100 Subject: [PATCH] added fragment. --- src/main/fragment/cache/fragment-cache-csg65ce02.asm | 2 +- src/main/fragment/cache/fragment-cache-mega45gs02.asm | 2 +- src/main/fragment/cache/fragment-cache-mos6502.asm | 2 +- src/main/fragment/cache/fragment-cache-mos6502x.asm | 2 +- src/main/fragment/cache/fragment-cache-rom6502x.asm | 2 +- src/main/fragment/cache/fragment-cache-wdc65c02.asm | 2 +- .../vbuxx_neq_pbum1_derefidx_vbuyy_then_la1.asm | 8 ++++++++ .../java/dk/camelot64/kickc/test/TestProgramsFast.java | 2 +- 8 files changed, 15 insertions(+), 7 deletions(-) create mode 100644 src/main/fragment/mos6502-common/vbuxx_neq_pbum1_derefidx_vbuyy_then_la1.asm diff --git a/src/main/fragment/cache/fragment-cache-csg65ce02.asm b/src/main/fragment/cache/fragment-cache-csg65ce02.asm index 603dd3acf..dde05f90c 100644 --- a/src/main/fragment/cache/fragment-cache-csg65ce02.asm +++ b/src/main/fragment/cache/fragment-cache-csg65ce02.asm @@ -1,4 +1,4 @@ -//KICKC FRAGMENT CACHE e65dd24b5 e65dd4993 +//KICKC FRAGMENT CACHE cabdd9118 cabddb616 //FRAGMENT vbuzz=vbuc1 ldz #{c1} //FRAGMENT vbuzz_lt_vbuc1_then_la1 diff --git a/src/main/fragment/cache/fragment-cache-mega45gs02.asm b/src/main/fragment/cache/fragment-cache-mega45gs02.asm index a94aeb5f9..d6eac23a4 100644 --- a/src/main/fragment/cache/fragment-cache-mega45gs02.asm +++ b/src/main/fragment/cache/fragment-cache-mega45gs02.asm @@ -1,4 +1,4 @@ -//KICKC FRAGMENT CACHE e65dd24b5 e65dd4993 +//KICKC FRAGMENT CACHE cabdd9118 cabddb616 //FRAGMENT vbuz1=vbuc1 ldz #{c1} stz {z1} diff --git a/src/main/fragment/cache/fragment-cache-mos6502.asm b/src/main/fragment/cache/fragment-cache-mos6502.asm index 6fed965f1..231d092a0 100644 --- a/src/main/fragment/cache/fragment-cache-mos6502.asm +++ b/src/main/fragment/cache/fragment-cache-mos6502.asm @@ -1,4 +1,4 @@ -//KICKC FRAGMENT CACHE e65dd24b5 e65dd4993 +//KICKC FRAGMENT CACHE cabdd9118 cabddb616 //FRAGMENT vbuz1=vbuc1 lda #{c1} sta {z1} diff --git a/src/main/fragment/cache/fragment-cache-mos6502x.asm b/src/main/fragment/cache/fragment-cache-mos6502x.asm index 1f414618d..8a2323820 100644 --- a/src/main/fragment/cache/fragment-cache-mos6502x.asm +++ b/src/main/fragment/cache/fragment-cache-mos6502x.asm @@ -1,4 +1,4 @@ -//KICKC FRAGMENT CACHE e65dd24b5 e65dd4993 +//KICKC FRAGMENT CACHE cabdd9118 cabddb616 //FRAGMENT vbuz1=vbuc1 lda #{c1} sta {z1} diff --git a/src/main/fragment/cache/fragment-cache-rom6502x.asm b/src/main/fragment/cache/fragment-cache-rom6502x.asm index 449c23309..fb1cdea38 100644 --- a/src/main/fragment/cache/fragment-cache-rom6502x.asm +++ b/src/main/fragment/cache/fragment-cache-rom6502x.asm @@ -1,4 +1,4 @@ -//KICKC FRAGMENT CACHE e65dd24b5 e65dd4993 +//KICKC FRAGMENT CACHE cabdd9118 cabddb616 //FRAGMENT _deref_pbuc1=_inc__deref_pbuc1 inc {c1} //FRAGMENT isr_hardware_all_entry diff --git a/src/main/fragment/cache/fragment-cache-wdc65c02.asm b/src/main/fragment/cache/fragment-cache-wdc65c02.asm index 49d87deac..b30cf9f9f 100644 --- a/src/main/fragment/cache/fragment-cache-wdc65c02.asm +++ b/src/main/fragment/cache/fragment-cache-wdc65c02.asm @@ -1,4 +1,4 @@ -//KICKC FRAGMENT CACHE e65dd24b5 e65dd4993 +//KICKC FRAGMENT CACHE cabdd9118 cabddb616 //FRAGMENT vbuz1=_deref_pbuc1 lda {c1} sta {z1} diff --git a/src/main/fragment/mos6502-common/vbuxx_neq_pbum1_derefidx_vbuyy_then_la1.asm b/src/main/fragment/mos6502-common/vbuxx_neq_pbum1_derefidx_vbuyy_then_la1.asm new file mode 100644 index 000000000..08c243f07 --- /dev/null +++ b/src/main/fragment/mos6502-common/vbuxx_neq_pbum1_derefidx_vbuyy_then_la1.asm @@ -0,0 +1,8 @@ +stx $fd +lda {m1} +sta $fe +lda {m1}+1 +sta $ff +lda ($fe),y +cmp $fd +bne {la1} \ No newline at end of file diff --git a/src/test/java/dk/camelot64/kickc/test/TestProgramsFast.java b/src/test/java/dk/camelot64/kickc/test/TestProgramsFast.java index 610d8940f..5031a40d6 100644 --- a/src/test/java/dk/camelot64/kickc/test/TestProgramsFast.java +++ b/src/test/java/dk/camelot64/kickc/test/TestProgramsFast.java @@ -11,7 +11,7 @@ public class TestProgramsFast extends TestPrograms { @Test public void testTmpZpProblem() throws IOException { - compileAndCompare("tmp-zp-problem.c", log()); + compileAndCompare("tmp-zp-problem.c"); } @Test