Re: Replace a byte
- From: Dirk Wolfgang Glomp <dirk@xxxxxxxxxxxxxxxxxxx>
- Date: Tue, 8 Apr 2008 08:22:04 +0200
Am Tue, 8 Apr 2008 01:48:12 +0200 schrieb almas:
Hi every body.
I can replace any byte by Space, or others particulars bytes. ( alt 168 for
example )
Then, i can destroy all the "alt 168" found in the file
I use SREP.EXE, but it exist anothers usefull tools.
I try to do it my self
Sure i must open the file, read it then find the byte value... i must
resize the file before saving it an close
.. but it do not works !
Where is the problem?
If some body can find an useful code, i will appréciate
My part of code remove all carriage return(CR), but the file must be
lesser than 64KB.
SEARCH: cmp si, cx ; Ende of File?
ja short ZMA
cmp BYTE PTR es:[si], 0Dh
jz short SCHR
inc si
jmp short SEARCH
;--------
SCHR: dec WORD PTR[FILEN]
sub cx, si
mov di, si
inc si
mov ds, FILSEG
dec cx
mov dx, si
rep movsb
mov ax, DATEN
mov ds, ax
mov si, dx
mov cx, FILEN
jmp short SEARCH
;------------------------------------
ZMA:
Dirk
.
- Follow-Ups:
- Re: Replace a byte
- From: almas
- Re: Replace a byte
- From: almas
- Re: Replace a byte
- References:
- Replace a byte
- From: almas
- Replace a byte
- Prev by Date: Re: Replace a byte
- Next by Date: Re: Windows 95
- Previous by thread: Re: Replace a byte
- Next by thread: Re: Replace a byte
- Index(es):
Relevant Pages
|