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

@@ -46,6 +46,7 @@
#include "objcode.h"
#include "objfile.h"
#include "symtab.h"
#include "target.h"
#include "toklist.h"
#include "ulabel.h"
#include "expr.h"
@@ -478,11 +479,15 @@ static ExprNode* Factor (void)
switch (Tok) {
case TOK_INTCON:
case TOK_CHARCON:
N = LiteralExpr (IVal);
NextTok ();
break;
case TOK_CHARCON:
N = LiteralExpr ((unsigned char) XlatChar ((char)IVal));
NextTok ();
break;
case TOK_NAMESPACE:
NextTok ();
if (Tok != TOK_IDENT) {