From: rivie AT intergate DOT daautah DOT com (Roger Ivie (a known boogerhead)) Newsgroups: comp.os.msdos.djgpp Subject: Re: porting watcom progs Date: 21 Oct 1996 15:20:56 GMT Organization: Vyzynz Lines: 22 Message-ID: References: <32628507 DOT 3B61824 AT mercury DOT execulink DOT com> Reply-To: ivie AT cc DOT usu DOT edu NNTP-Posting-Host: onx08.onlinex.net To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp In article <32628507 DOT 3B61824 AT mercury DOT execulink DOT com>, Jeff Weeks wrote: [[[ snip ]]] >parm [ebx] [cx] [al]\ >value [ebx]\ >modify exact [ax cx ebx] nomemory; > >Most of the code should just be a switch from Intel to AT&T asm right? >But what about the three lines at the end? What are they all about (the >parm, value and modify lines)? And how to I convert those to DJGPP V2 >assembly. I do lots of work with Watcom, so I can tell you about those three lines. I can't tell you how to convert them to DJGPP V2, though. These lines tell the Watcom compiler about the register usage of the procedure. It takes parameter #1 in ebx, parameter #2 in cx, and paramter #3 in al. It returns its value in ebx. It modifies only registers ax, cx, and ebx and does not touch memory. Roger Ivie ivie AT cc DOT usu DOT edu