From 4735c8940b0453035fb2cac7df517d80a2f92b14 Mon Sep 17 00:00:00 2001 From: jespergravgaard Date: Sat, 27 Apr 2019 08:13:44 +0200 Subject: [PATCH] Added fixed comments to sandbox --- src/test/kc/sandbox.kc | 4 ++-- src/test/ref/sandbox.asm | 2 +- src/test/ref/sandbox.log | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/test/kc/sandbox.kc b/src/test/kc/sandbox.kc index 14c8800b0..403776835 100644 --- a/src/test/kc/sandbox.kc +++ b/src/test/kc/sandbox.kc @@ -48,7 +48,7 @@ byte myprintf(byte *dst, byte *str, word w1, word w2, word w3) { if (bTrailing != 0 && bDigits > b) for (; bDigits > b; --bDigits) dst[bLen++] = ' '; } else if (b == 'x' || b == 'X'){ // hex b = (w >> 4) & 0xF; - dst[bLen++] = (b < 10 ? '0' : 0x57) + b; // "('a' - 10)" is the normal way -- not supported -- https://gitlab.com/camelot/kickc/issues/184 + dst[bLen++] = (b < 10 ? '0' : 0x57) + b; // "('a' - 10)" is the normal way -- not supported -- https://gitlab.com/camelot/kickc/issues/184 [FIXED] b = w & 0xF; dst[bLen++] = (b < 10 ? '0' : 0x57) + b; } bFormat = 0; @@ -57,7 +57,7 @@ byte myprintf(byte *dst, byte *str, word w1, word w2, word w3) { if (b == '%') { bFormat = 1; bLeadZero = 0; bDigits = 1; bTrailing = 0; // default format - //w = (bArg == 0) ? w1 : ((bArg == 1) ? w2 : w3); -- "?" is the normal way, but error "sequence does not contain all blocks" -- https://gitlab.com/camelot/kickc/issues/185 + //w = (bArg == 0) ? w1 : ((bArg == 1) ? w2 : w3); -- "?" is the normal way, but error "sequence does not contain all blocks" -- https://gitlab.com/camelot/kickc/issues/185 [FIXED] if (bArg == 0) w = w1; else if (bArg == 1) w = w2; else w = w3; diff --git a/src/test/ref/sandbox.asm b/src/test/ref/sandbox.asm index 3b8c30fa4..83029cccc 100644 --- a/src/test/ref/sandbox.asm +++ b/src/test/ref/sandbox.asm @@ -361,7 +361,7 @@ myprintf: { cpx #'%' bne b28 // default format - //w = (bArg == 0) ? w1 : ((bArg == 1) ? w2 : w3); -- "?" is the normal way, but error "sequence does not contain all blocks" -- https://gitlab.com/camelot/kickc/issues/185 + //w = (bArg == 0) ? w1 : ((bArg == 1) ? w2 : w3); -- "?" is the normal way, but error "sequence does not contain all blocks" -- https://gitlab.com/camelot/kickc/issues/185 [FIXED] lda bArg cmp #0 beq b42 diff --git a/src/test/ref/sandbox.log b/src/test/ref/sandbox.log index 7ff508c4e..85ed8585f 100644 --- a/src/test/ref/sandbox.log +++ b/src/test/ref/sandbox.log @@ -4713,7 +4713,7 @@ myprintf: { b32: //SEG268 [120] if((byte) myprintf::bArg#12==(byte/signed byte/word/signed word/dword/signed dword) 0) goto myprintf::@42 -- vbuz1_eq_0_then_la1 // default format - //w = (bArg == 0) ? w1 : ((bArg == 1) ? w2 : w3); -- "?" is the normal way, but error "sequence does not contain all blocks" -- https://gitlab.com/camelot/kickc/issues/185 + //w = (bArg == 0) ? w1 : ((bArg == 1) ? w2 : w3); -- "?" is the normal way, but error "sequence does not contain all blocks" -- https://gitlab.com/camelot/kickc/issues/185 [FIXED] lda bArg cmp #0 beq b42 @@ -6601,7 +6601,7 @@ myprintf: { b32: //SEG268 [120] if((byte) myprintf::bArg#12==(byte/signed byte/word/signed word/dword/signed dword) 0) goto myprintf::@42 -- vbuz1_eq_0_then_la1 // default format - //w = (bArg == 0) ? w1 : ((bArg == 1) ? w2 : w3); -- "?" is the normal way, but error "sequence does not contain all blocks" -- https://gitlab.com/camelot/kickc/issues/185 + //w = (bArg == 0) ? w1 : ((bArg == 1) ? w2 : w3); -- "?" is the normal way, but error "sequence does not contain all blocks" -- https://gitlab.com/camelot/kickc/issues/185 [FIXED] lda bArg cmp #0 beq b42 @@ -8463,7 +8463,7 @@ myprintf: { //SEG267 myprintf::@32 //SEG268 [120] if((byte) myprintf::bArg#12==(byte/signed byte/word/signed word/dword/signed dword) 0) goto myprintf::@42 -- vbuz1_eq_0_then_la1 // default format - //w = (bArg == 0) ? w1 : ((bArg == 1) ? w2 : w3); -- "?" is the normal way, but error "sequence does not contain all blocks" -- https://gitlab.com/camelot/kickc/issues/185 + //w = (bArg == 0) ? w1 : ((bArg == 1) ? w2 : w3); -- "?" is the normal way, but error "sequence does not contain all blocks" -- https://gitlab.com/camelot/kickc/issues/185 [FIXED] lda bArg cmp #0 beq b42