Category : Files from Magazines
Archive   : PCTV1N2.ZIP
Filename : XLAT.ASM

Output of file : XLAT.ASM contained in archive : PCTV1N2.ZIP
; Input: DS:BX = pointer to 256-byte character table, with
; characters to be filtered designated by 0 and
; other characters designated by themselves.
; CX = # of characters in input buffer.
; DS:SI = pointer to source buffer to filter from.
; ES:DI = pointer to destination buffer to filter to.
; The direction flag (DF) must be set to 0 (CLD).
; Output: DX = # of characters stored in output buffer.
SUB DX,DX ;zero characters transferred counter
LODSB ;get next character from source buffer
XLAT ;look it up in filter table
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

  3 Responses to “Category : Files from Magazines
Archive   : PCTV1N2.ZIP
Filename : XLAT.ASM

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: