Skip to content

An exception list to call a native (host) app instead of the DOS one #123

@thelastpsion

Description

@thelastpsion

I'm in the process of rewriting the tools in Psion's SIBO C SDK. The SDK targets EPOC16 machines, such as the Series 3 range. My new tools are written in Free Pascal.

I discovered emu2 recently. With is, I can now run the old TopSpeed C compiler and the old SDK tools directly in the Linux terminal, without needing to start DOSBox. I love it!

Image

Would it be possible to have an exception list which runs a native app instead of a DOS app?

For example, if there was a file or environment variable that included this:

c:\sibosdk\sys\ctran.exe=/path/to/native/ctran

The following would happen:

  1. emu2 launches tsc.exe
  2. tsc steps through its project script
  3. tsc tries to run ctran.exe
  4. emu2 intercepts the call and checks if ctran.exe is in the exception list
  5. emu2 finds ctran.exe in the exception list and launches the native ctran instead, passing all the arguments through
  6. When native ctran ends, emu2 continues emulation, possibly passing an exit code back to tsc as %ERRORLEVEL% in case native ctran fails

I don't know how feasible this would be, and I don't know if this fits into your vision of emu2, but it would be really handy.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions