| www.delorie.com/archives/browse.cgi | search |
| From: | Dave <shirleyd AT cs DOT curtin DOT edu DOT au> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Pointers to buffers in GaS |
| Date: | Thu, 19 Jun 1997 21:05:12 +0800 |
| Organization: | iiNet Technologies |
| Lines: | 23 |
| Message-ID: | <33A92E88.3136C133@cs.curtin.edu.au> |
| Reply-To: | shirleyd AT cs DOT curtin DOT edu DOT au |
| NNTP-Posting-Host: | grunge172.nv.iinet.net.au |
| Mime-Version: | 1.0 |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
hey all again :)
i have another problem...
i have read the faq concering buffers and segments/offset how ever it
doesn't seem to work....
what i need to do is get the ipxaddress now to do this u put 0x09 into
BX and a pointer to a 10 byte buffer into ES:SI and then call INT 0x7a.
now i cant work out how to do this. This is my code so far...
void IPXAddress(unsigned char buffer[10])
{
regs.x.bx = 0x09;
regs.x.si = &buffer;
int86x(0x7a,®s,®s,&sregs);
}
now hopefully the ipxaddress should be stored in the 10 byte buffer....
but it doesn't.
can someone plz help :?
Dave.
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |