home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
magazine
/
pctchnqs
/
1990
/
number2
/
noxlat.asm
< prev
next >
Wrap
Assembly Source File
|
1990-01-28
|
577b
|
17 lines
FILTER:
SUB DX,DX ;zero characters transferred counter
SUB AH,AH ;preconvert AL to a word value
FILTER_LOOP:
LODSB ;get next character from source buffer
PUSH BX
ADD BX,AX ;generate total offset of entry
MOV AL,[BX] ;look it up in filter table
POP BX
AND AL,AL ;is it wanted?
JZ FILTER_NEXT ;if not, go to next character
STOSB ;it's wanted, store it in output buffer
INC DX ;count this character as usable
FILTER_NEXT:
LOOP FILTER_LOOP
RET