Implement character set translation and different target systems

git-svn-id: svn://svn.cc65.org/cc65/trunk@295 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz
2000-08-21 21:20:40 +00:00
parent 6f4a92b259
commit c77d0dea94
5 changed files with 45 additions and 9 deletions

View File

@@ -58,6 +58,7 @@
#include "options.h"
#include "repeat.h"
#include "symtab.h"
#include "target.h"
#include "pseudo.h"
@@ -268,6 +269,8 @@ static void DoASCIIZ (void)
ErrorSkip (ERR_STRCON_EXPECTED);
return;
}
/* Translate into target charset and emit */
XlatStr (SVal);
EmitData ((unsigned char*) SVal, strlen (SVal));
NextTok ();
if (Tok == TOK_COMMA) {
@@ -302,7 +305,8 @@ static void DoByte (void)
{
while (1) {
if (Tok == TOK_STRCON) {
/* A string */
/* A string, translate into target charset and emit */
XlatStr (SVal);
EmitData ((unsigned char*) SVal, strlen (SVal));
NextTok ();
} else {