From 97de4308bee7a2332caca8ae46a989a11dcf7b4b Mon Sep 17 00:00:00 2001 From: glenda Date: Sat, 5 Nov 2022 15:41:50 +0000 Subject: [PATCH] Ditch string literals --- asm.c | 5 +++-- tests/hello.asm | 1 - 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/asm.c b/asm.c index b1fbe28..c5fa4d3 100644 --- a/asm.c +++ b/asm.c @@ -361,7 +361,8 @@ parseline(char *l) return 1; } else if(strcmp(t,".STRINGZ") == 0) { l++; - if(l[0] == 'x'){ + if(l[0] == 'x' && 0==1){ //This shit doesn't work so let's case it out + // FIXME: byte packing is all kinds of fucked up l++; gettoken(&t, l); for(int i = 0; i<=strlen(t); i+=2){ @@ -405,7 +406,7 @@ parseline(char *l) } } } else { - syntaxerr(".STRINGZ only supports hex and string literals"); + syntaxerr(".STRINGZ only supports string literals"); } goto Nop; return 1; diff --git a/tests/hello.asm b/tests/hello.asm index 56d4bb7..cd51382 100644 --- a/tests/hello.asm +++ b/tests/hello.asm @@ -29,6 +29,5 @@ O .FILL x6f BRnp x0 BR x0 HALT -HXWRLD .STRINGZ x20776f726c64210a WRLD .STRINGZ " world\n" .END -- 2.38.5