TIP: Click on subject to list as thread! ANSI
echo: aust_c_here
to: Toby Corkindale
from: andrew clarke
date: 1996-03-25 02:56:08
subject: ASM functions in Watcom

23 Mar 96 04:10, david nugent wrote to Toby Corkindale:

 TC>> If I write a #pragma aux "asm stuff here" caller [blah]
 TC>> modify [blah]; in Watcom (ver 10), how can I return a
 TC>> value?

 > The return value is specified as part of the #pragma.

From \WATCOM\H\BIOS.H:

  #pragma aux     _bios_equiplist = 0xcd 0x11 value [ax];

Presumably this means call INT 11h and specify that the return value from
_bios_equiplist is in the AX register.  I can't be sure though - I've never
used #pragma aux before, and at first glance it seems a little awkward. 
:-)

Regards
Andrew

--- Msgedsq/2 3.30
* Origin: Blizzard of Ozz, Melbourne, Australia (3:635/727.4{at}fidonet)
SEEN-BY: 50/99 78/0 620/243 623/630 632/349 634/395 635/503 544 727 711/401
SEEN-BY: 711/409 410 413 430 510 808 809 932 934 712/515 713/888 714/906
SEEN-BY: 800/1 7877/2809
@PATH: 635/727 544 50/99 711/808 809 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™.