Hullo Christian Iversen, hope you are having a nice day!!
05-Mar-98 14:50:42, Christian Iversen wrote to All
Subject: Memory Access
CI> I wan't to know wheater or not it is possible to write 3 bytes to
CI> memory without for example moving on byte and one word?
Yes..:
You could use movsb, with the rep prefix..
ds:si points to the source string
es:di points to the destination address
cx holds the number of bytes you want to copy
for example:
mov ax, cs
mov es, ax
mov ds, ax
mov cx, 10
mov si, offset source
mov di, offset destination
rep movsb
[....]
source db "123"
destination label byte
May be you won't like to use "rep movsb" to copy only three bytes, but...
-=> Yours sincerely, Fernando Ariel Gont <=-
e-mail: FGont@siscor.bibnal.edu.ar
e-mail "Good Stuff!" _*Magazine*_ : gstuff@siscor.bibnal.edu.ar
FidoNet: 4:900/470.10
Sk-Network (Argentina): Murdock's Point (200:201/300.27)
--- Terminate 5.00 UnReg(145)
(4:900/470.10)
---------------
* Origin: If a doctor examines me, I'll turn out to be an idol!
|