mirror of
https://github.com/fachat/xa65.git
synced 2025-08-08 19:25:14 +00:00
fix escape char tests, wrong fallthrough for params
This commit is contained in:
@@ -240,6 +240,7 @@ int main(int argc,char *argv[])
|
|||||||
fprintf(stderr, "Compatibility set '%s' unknown - ignoring! (check case?)\n", name);
|
fprintf(stderr, "Compatibility set '%s' unknown - ignoring! (check case?)\n", name);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
case 'S':
|
case 'S':
|
||||||
ppinstr = 1; /* preprocessor substitution in strings ok */
|
ppinstr = 1; /* preprocessor substitution in strings ok */
|
||||||
fprintf(stderr, "Warning: -S is deprecated and will be removed in 2.4+!\n");
|
fprintf(stderr, "Warning: -S is deprecated and will be removed in 2.4+!\n");
|
||||||
|
@@ -1,33 +1,28 @@
|
|||||||
|
|
||||||
// this tests the double-slash quote in lines with various disturbances...
|
; this tests the double-slash quote in lines with various disturbances...
|
||||||
|
|
||||||
lda #1 // test1
|
lda #1 ; test1
|
||||||
|
|
||||||
lda #2/1 // test2 with a constant division
|
lda #2/1 ; test2 with a constant division
|
||||||
|
|
||||||
lda #3*2 // test3 with multi
|
lda #3*2 ; test3 with multi
|
||||||
|
|
||||||
lda #4<<1 // test with shift left
|
lda #4<<1 ; test with shift left
|
||||||
lda #4>>1 // test with shift right
|
lda #4>>1 ; test with shift right
|
||||||
|
|
||||||
lda #"/" // test with quotes
|
lda #"/" ; test with quotes
|
||||||
|
|
||||||
lda #'/' // test with single quotes
|
lda #'/' ; test with single quotes
|
||||||
|
|
||||||
.byt "/", "/", '/' // test with multiple quotes
|
.byt "/", "/", '/' ; test with multiple quotes
|
||||||
|
|
||||||
; test with comments in quotes
|
; test with comments in quotes
|
||||||
.byt "//" // test with comment in quotes
|
.byt "//" ; test with comment in quotes
|
||||||
|
|
||||||
; tests with escaped and quoted quotes
|
; tests with escaped and quoted quotes
|
||||||
.byt "^"" ; test xa65 specific escape code
|
|
||||||
.byt "^"" // test
|
|
||||||
|
|
||||||
.byt '"' ; test xa65 specific escape code
|
.byt '"' ; test xa65 specific escape code
|
||||||
.byt '"' // test
|
.byt '"' ; test
|
||||||
|
|
||||||
.byt "'" ; test xa65 specific escape code
|
.byt "'" ; test xa65 specific escape code
|
||||||
.byt "'" // test
|
.byt "'" ; test
|
||||||
|
|
||||||
.byt '^'' ; test xa65 specific escape code
|
|
||||||
.byt '^'' // test
|
|
||||||
|
@@ -1 +1 @@
|
|||||||
<EFBFBD><01><02><06><08><02>/<2F>//////""""''''
|
<EFBFBD><01><02><06><08><02>/<2F>//////""''
|
Reference in New Issue
Block a user