RE: Suggestion for 2.3

new topic     » goto parent     » topic index » view thread      » older message » newer message

> -----Original Message-----
> From: sephiroth _ [mailto:euman2376 at yahoo.com]

I'm not familiar with DOS interrupts, but... 

> 2. make that code CAPABLE OF RESTORING ALL REGISTERS. any destroyed 
> registers could mean disaster

I believe that all compilers should do this.  AFAIK, it's a requirement that
any called procedure leave the registers as they found them (the exception
being EAX, which is used to return a value)--unless maybe you're using
Watcom with the fastcall calling convention (args passed in registers).  

Anything you're calling in exw/exu (can't use c_func stuff in ex, although
if you can get the pointer to the procedure you can call it through asm) has
to be stdcall, although it shouldn't be too difficult to call cdecl, and
fastcall is probably doable, too.

Matt Lewis

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu