Character maps.

This commit is contained in:
stag019
2013-12-22 20:55:14 -05:00
parent fd4b5c8925
commit 1218da79a9
8 changed files with 252 additions and 2 deletions

View File

@@ -8,6 +8,7 @@
#include "asm/symbol.h"
#include "asm/asm.h"
#include "asm/charmap.h"
#include "asm/output.h"
#include "asm/mylink.h"
#include "asm/fstack.h"
@@ -42,6 +43,21 @@ ULONG str2int( char *s )
return( r );
}
ULONG str2int2( char *s, int length )
{
int i;
ULONG r=0;
i = (length - 4 < 0 ? 0 : length - 4);
while(i < length)
{
r<<=8;
r|=(UBYTE)(s[i]);
i++;
}
return( r );
}
ULONG isWhiteSpace( char s )
{
return( s==' ' || s=='\t' || s=='\0' || s=='\n' );
@@ -401,6 +417,7 @@ void if_skip_to_endc( void )
%token T_POP_ENDM
%token T_POP_RSRESET T_POP_RSSET
%token T_POP_INCBIN T_POP_REPT
%token T_POP_CHARMAP
%token T_POP_SHIFT
%token T_POP_ENDR
%token T_POP_FAIL