top logo menu kitty mascot
AROS.ORG Developers Localization Bounties

m68kemu

Index


RunHunk()      

RunHunk()

Synopsis

LONG RunHunk(
         BPTR segList,
         ULONG stackSize,
         CONST_STRPTR argPtr,
         ULONG argSize );

Function

Execute an m68k AmigaOS hunk binary under emulation.
All library calls from the m68k code are trapped and
dispatched to native AROS implementations.

Inputs

segList   - Loaded m68k hunk segment list (from LoadSeg)
stackSize - Stack size for the emulated process
argPtr    - Command arguments string
argSize   - Length of arguments

Result

Return code from the m68k program, or -1 on failure.