From: almas on
Hi every body.

I try my solution...but it do not works...
Below, you can see my code

; i use A86

mov cx, byte size_file
mov si, offset come_from ; 1st file
mov di, offset go_to ; the new file

work:
cmp byte [si], "��"
jz next
mov di,[si]
inc word calculate_new_size
next:
inc si
inc di
loop work
nop
calculate_new_size dw: ,0,0,0,0 ; I obtain 0B
nop
nop
nop
size_file db: ,0Ch,00
; mistake, i should read more bytes...

come_from db: "ici est ��mon Te��Te" ,40h,40h,40h

; DEBUG can read thooses bytes above.
; but when debug read below.... bytes still have value 0

go_to db ,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
nop
nop
nop
nop
nop
nop ; many nop...
nop ; the aim read a NOP
nop
nop
nop
int 20h

Best regards.
Almas


 | 
Pages: 1
Prev: need sticky key feature
Next: Replace bytes