TIP: Click on subject to list as thread! ANSI
echo: aust_c_here
to: All
from: Frank Adam
date: 1996-06-28 19:39:08
subject: Regs

Hi guys,


Just curious why is REGS a union and not a struct ? It feels like one..


And can anyone show or guide me to a C snippet,on how to retrieve the 
adress of DTA(Disk Transfer Adress) ?  
The following should work ( i thought ), but it just boots.
Perhaps the bit between the braces is wrong ? :o) 

char* Get_DTA() 
{
char far* ptr;
union REGS regs; 
struct SREGS sregs;
  
regs.x.ax = 0x2f00;
int86x(0x21,®s,®s,&sregs);
ptr = (char far*) MK_FP((unsigned)sregs.es,(usigned)regs.x.dx);
 };
         
Thanks,
  
    L8r Frank(fadam{at}ozemail.com.au)
___ Blue Wave/DOS v2.21

--- Maximus 3.01
* Origin: The Software Parlour (3:635/544)
SEEN-BY: 50/99 620/243 623/630 632/349 635/503 544 727 711/401 409 410 413
SEEN-BY: 711/430 808 809 932 934 712/515 713/888 714/906 800/1
@PATH: 635/544 50/99 711/808 934

SOURCE: echomail via fidonet.ozzmosis.com

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™.