1
0
mirror of https://github.com/fachat/xa65.git synced 2024-06-01 22:41:32 +00:00

fix escape char tests, wrong fallthrough for params

This commit is contained in:
Andre Fachat 2023-10-11 16:22:22 +02:00
parent beb55ab9ef
commit b0ef07addc
3 changed files with 14 additions and 18 deletions

View File

@ -240,6 +240,7 @@ int main(int argc,char *argv[])
fprintf(stderr, "Compatibility set '%s' unknown - ignoring! (check case?)\n", name);
}
}
break;
case 'S':
ppinstr = 1; /* preprocessor substitution in strings ok */
fprintf(stderr, "Warning: -S is deprecated and will be removed in 2.4+!\n");

View File

@ -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 right
lda #4<<1 ; test with shift left
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
.byt "//" // test with comment in quotes
.byt "//" ; test with comment in quotes
; tests with escaped and quoted quotes
.byt "^"" ; test xa65 specific escape code
.byt "^"" // test
.byt '"' ; test xa65 specific escape code
.byt '"' // test
.byt '"' ; test
.byt "'" ; test xa65 specific escape code
.byt "'" // test
.byt "'" ; test
.byt '^'' ; test xa65 specific escape code
.byt '^'' // test

View File

@ -1 +1 @@
ゥ/ゥ//////""""''''
ゥ/ゥ//////""''