TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Alex King
from: Jonathan de Boyne Pollard
date: 1996-05-30 04:11:24
subject: Help with ASM & C

AK>
  > I am currently writing programs in EMX C using the 16 bit
  > OS2 API calls documented in PRCP.INF.  Is there any way to
  > get the 32 bit documentation (for free, or a low price?).
AK>

  The OS/2 Online Book Collection CD-ROM comes with API documentation.

  When I bought mine, a couple of years ago, it cost roughly 35 quid :
  about the same price as the printed version of one of the books that it
  contained.

AK>
  >            I presume that to use the 16 bit API from ASM I
  > push the arguments on the stack and do a far call?
AK>

  The 16-bit OS/2 API is a set of far function calls that use the Pascal
  calling convention and Pascal name mangling.

  The import library for the 16-bit OS/2 API is either DOSCALLS.LIB or
  OS2286.LIB, depending from which toolkit you happen to have.

  I strongly suggest that if you are beginning OS/2 assembly language
  work, and you aren't doing IFS or device driver work, that you go
  straight to 32-bit.  If you learn 16-bit first, you'll have to unlearn a
  lot of things when you switch to 32-bit.  The API is subtly different,
  and the process architecture is obviously different.

  32-bit assemblers for OS/2 :

    Watcom's WASM, shipped with Watcom C++

    Borland's TASM, shipped with Borland C++

    Microsoft MASM 6.0 (small model with .386 enabled will fake flat model)

    IBM's ALP, shipped on the DevCon CD-ROMs

    GNU AS, a port of the FSF assembler (unconventional syntax)

  Tip :

    Don't buy MASM if you don't already have it, or code written for it.
    TASM with QUIRKS enabled will almost certainly be a lot easier to use.

  > JdeBP <
___
 X MegaMail 2.10 #0:

--- Maximus/2 3.01
* Origin: DoNoR/2,Woking UK (44-1483-725167) (2:440/4)
SEEN-BY: 50/99 270/101 620/243 711/401 409 410 413 430 808 809 934 955
SEEN-BY: 712/407 515 517 628 713/888 800/1
@PATH: 440/4 141/209 270/101 712/515 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™.