home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-387-Vol-3of3.iso
/
c
/
cug292wk.zip
/
ASCIS.MOD
next >
Wrap
Text File
|
1993-01-22
|
1KB
|
30 lines
To add the assember directive .ascis, which sets the high order bit
of the last character in a string, to any asxxxx assembler:
Add the following line to asm.h
#define S_ASCIS 26 /* .ascis */
Add the following line to all ___pst.c files
NULL, ".ascis", S_ASCIS, 0, 0,
Add the following code to asmain.c
case S_ASCIS:
if ((d = getnb()) == '\0')
qerr();
c = getmap(d);
while (c >= 0) {
if ((n = getmap(d)) >= 0) {
outab(c);
} else {
outab(c ! 0x80);
}
c = n;
}
break;