> Could someone describe the 'lds' function to me, or atleast quote
> the code i posted (the 'lds' parts of it) so that i could better
> understand it. I think i've gotten the idea of it, but i'm not sure.
> So far i think it does the following:
>
> mov ds,100
> mov ax,102 ;add 2 to the number put into dx
But remember MOV uses DS as a segment pointer, here you've changed DS
first and therefore loaded AX from a new location...
Use segment overrides to force things:
mov ax,cs:[100h]
mov ds,ax
mov ax,cs:[102h]
This should be equal to lds ax,cs:[100h]. I hope. ;-)
--- ifmail-tx (i386 Linux)
---------------
* Origin: jvahn@short.circuit.com (1:346/15.1@fidonet)
|