• I threw together a MINIX 1.5 (68K) system call emulator

    From Chris Hanson@21:1/5 to All on Mon Dec 9 14:01:39 2024
    I’ve wanted to port MINIX 1.5 for M68000 to other systems besides Amiga, Atari ST, and the classic Mac, but trying to do that within a system
    emulator is a pain and doesn’t help you use a modern editor or SCM
    system. So I took the Musashi M68000 emulator and, using the MINIX 1.5
    sources for Atari ST for reference, I’ve implemented a system call
    emulator that’s now _almost_ sufficient to run /usr/bin/cc. (I figure
    that's a good target since my goal is to use this to build MINIX itself.)

    It’s up on GitHub at https://github.com/eschaton/MINIXCompat and I’ve released it under an MIT license. It requires my forked version of the
    Musashi project that supports implementing a TRAP instruction via a
    callback, which is necessary for implementing system calls on the host
    side. I reference this via a submodule so it can be kept at least
    logically distinct from the rest of the code.

    I primarily use macOS so there's an Xcode 16.1 project, but thanks to
    Juhani Krekelä there's also a Makefile so it can be built on Linux and
    NetBSD.

    -- Chris

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)