diff --git a/src/test/java/dk/camelot64/kickc/test/TestPrograms.java b/src/test/java/dk/camelot64/kickc/test/TestPrograms.java index ba9aea3ad..e348acde8 100644 --- a/src/test/java/dk/camelot64/kickc/test/TestPrograms.java +++ b/src/test/java/dk/camelot64/kickc/test/TestPrograms.java @@ -45,7 +45,7 @@ public class TestPrograms { @Test public void testVarModelMaMem4() throws IOException, URISyntaxException { - compileAndCompare("varmodel-ma_mem-4", log()); + compileAndCompare("varmodel-ma_mem-4"); } @Test diff --git a/src/test/kc/complex/tetris/tetris-render.kc b/src/test/kc/complex/tetris/tetris-render.kc index 651a29395..7a6f2241f 100644 --- a/src/test/kc/complex/tetris/tetris-render.kc +++ b/src/test/kc/complex/tetris/tetris-render.kc @@ -106,16 +106,16 @@ void render_score() { char* score_bytes = (byte*)(&score_bcd); unsigned int score_offset = 40*0x05 + 0x1c; - render_bcd( screen, score_offset, score_bytes[2], 0); - render_bcd( screen, score_offset+2, score_bytes[1], 0); - render_bcd( screen, score_offset+4, score_bytes[0], 0); + render_bcd( screen, score_offset, score_bytes[2], 0); + render_bcd( screen, score_offset+2, score_bytes[1], 0); + render_bcd( screen, score_offset+4, score_bytes[0], 0); unsigned int lines_offset = 40*0x01 + 0x16; - render_bcd( screen, lines_offset, >lines_bcd, 1); - render_bcd( screen, lines_offset+1, lines_bcd, 1); + render_bcd( screen, lines_offset+1, render_bcd#3] -- register_copy jsr render_bcd // render_score::@3 - // render_bcd( screen, score_offset+2, score_bytes[1], 0) + // render_bcd( screen, score_offset+2, score_bytes[1], 0) // [81] (byte*) render_bcd::screen#1 ← (byte*) render_score::screen#3 // [82] (byte) render_bcd::bcd#1 ← *((const byte*) render_score::score_bytes+(byte) 1) -- vbuxx=_deref_pbuc1 ldx score_bytes+1 @@ -22615,7 +22615,7 @@ render_score: { // [97] phi (byte*) render_bcd::screen#6 = (byte*) render_bcd::screen#1 [phi:render_score::@3->render_bcd#3] -- register_copy jsr render_bcd // render_score::@4 - // render_bcd( screen, score_offset+4, score_bytes[0], 0) + // render_bcd( screen, score_offset+4, score_bytes[0], 0) // [84] (byte*) render_bcd::screen#2 ← (byte*) render_score::screen#3 // [85] (byte) render_bcd::bcd#2 ← *((const byte*) render_score::score_bytes) -- vbuxx=_deref_pbuc1 ldx.z score_bytes @@ -22632,7 +22632,7 @@ render_score: { // [97] phi (byte*) render_bcd::screen#6 = (byte*) render_bcd::screen#2 [phi:render_score::@4->render_bcd#3] -- register_copy jsr render_bcd // render_score::@5 - // render_bcd( screen, lines_offset, >lines_bcd, 1) + // render_bcd( screen, lines_offset, >lines_bcd, 1) // [87] (byte) render_bcd::bcd#3 ← > (word) lines_bcd#15 -- vbuxx=_hi_vwuz1 lda.z lines_bcd+1 tax @@ -22650,7 +22650,7 @@ render_score: { // [97] phi (byte*) render_bcd::screen#6 = (byte*) render_bcd::screen#3 [phi:render_score::@5->render_bcd#3] -- register_copy jsr render_bcd // render_score::@6 - // render_bcd( screen, lines_offset+1, render_bcd#3] -- register_copy jsr render_bcd // render_score::@7 - // render_bcd( screen, level_offset, level_bcd, 0) + // render_bcd( screen, level_offset, level_bcd, 0) // [93] (byte*) render_bcd::screen#5 ← (byte*) render_score::screen#3 // [94] (byte) render_bcd::bcd#5 ← (byte) level_bcd#17 -- vbuxx=vbuz1 ldx.z level_bcd