Referring to the info below, is there any way to hand jam the trap code
into whatever environment you are using?


#define m68kTrapInstr                 0x4E40
#define sysDispatchTrapNum   15

#define sysTrapOEMDispatch   0xA349
#define sysTrapHsSelector       sysTrapOEMDispatch

#define hsVerStrSerialNo         1
#define hsSelGetVersionString  0xB5


HsGetVersionString (UInt16 /*HsVerStrEnum*/selector, Char* outStrP,
UInt16* sizeP) SYS_SEL_TRAP (sysTrapHsSelector, hsSelGetVersionString);


#ifdef GNU

#define SYS_SEL_TRAP(trapNum, selector) \
 __attribute__ ((
  inline (0x3f3c, selector, m68kTrapInstr+sysDispatchTrapNum,trapNum)
 ))

#elif MWKS

#define SYS_SEL_TRAP(trapNum, selector) \
 = {0x3f3c, selector, m68kTrapInstr+sysDispatchTrapNum,trapNum}

#endif



On 5/25/06, Guilherme C. Hazan <[EMAIL PROTECTED]> wrote:
Because i'm using a third-party tool that doesnt support calls to HS. And 
there's no way
to bypass it.

guich

--
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/



--
yisdersomenimororsisasisdenderisorsis?
Jeff Loucks

--
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/

Reply via email to