Hullo Jeff Quindlen, hope you are having a nice day!!
22-Jan-98 10:25:34, Jeff Quindlen wrote to All
Subject: Directly writing to memory
JQ> numerous times over. That task is moving data into a specific
JQ> address. If somebody could help me I would deeply apreciate it,
JQ> as it has given me headaches for days. Would code like this work
JQ> (to place the value 1h into memory at 0000:0000)
JQ> mov ax,01h
JQ> mov [00000],ax
JQ> or maybe something like this?
JQ> mov ax,01h xchg
JQ> [00000],ax
Well, the error you have is that you don't specify the Code segment.
So that you're not putting 01h to 0000:0000, but to DS:0000 instead...
You should do something like this:
xor bx,bx
mov es, bx
mov ah, 01h
mov es:[bx], ah
Bye! :)
-=> 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/200.1)
--- Terminate 5.00 UnReg(103)
---------------
* Origin: Where is my head? (Just another nosense origin)... (4:900/470.10)
|