TIP: Click on subject to list as thread! ANSI
echo: 80xxx
to: ROBERT GLODT
from: JAMES VAHN
date: 1997-10-01 06:51:00
subject: Re: the lds function

> 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)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.