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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user