nfg.forums

NFG Forums => SIG X68000 => Topic started by: vampirefrog on November 05, 2024, 11:04:05 PM

Title: v68: new CUI emulator with sound
Post by: vampirefrog on November 05, 2024, 11:04:05 PM
Howdy! Again an older project, a tool similar to run68 but with sound capability.

I got it to the point where it can run mxdrv and pcm8a and play some MDX files (https://twitter.com/vampirefrog/status/1328113865272549377). It builds and runs on linux and in msys. There are some tests in the tests/ folder.

Some features:

- Using musashi 68k emulator
- DOS calls: EXIT, EXIT2, PRINT, PUTCHAR, KEEPPR, SUPER, IOCTRL, SETBLOCK, MALLOC, FPUTS, VERNUM, GETDATE, GETTIME, GETTIM2, CREATE, OPEN, CLOSE, WRITE, READ, FGETC, SEEK, INTVCS, INTVCG, PRNSNS, CONCTRL, NAMECK, GETPDB, CURDRV, CHGDRV
- IOCS calls: B_PUTC, ONTIME, B_MEMSTR, ADPCMOUT, B_INTVCS, B_LPEEK, B_BPEEK
- FE calls: LTOS, CLMOD, CLDIV, CLMUL, CLTOD, DTST, POWER, CDTOL, IDIV, UMOD
- It has utf8 conversion support on linux (probably on newer msys too).
- VGM logging

If anyone wants to contribute to it, the plan was to:

- make a better windows port
- test more programs with it and implement the missing DOS calls
- make more tests
- add a debugger (currently I debugged it by logging all the instructions to a file and comparing those to a working emulator)
- test with more music drivers
- compile a WASM binary and run it in the browser with mxdrv and pcm8a on my MDX database (https://mdx.vampi.tech/)

Let me know if anyone finds this interesting and wants to contribute to it. The DOS calls are fairly easy to add, it's just a switch statement in v68doscall.c.
Title: Re: v68: new CUI emulator with sound
Post by: vampirefrog on November 06, 2024, 06:06:33 PM
Added a pre-release v0.1a (https://github.com/vampirefrog/v68/releases/tag/v0.1a) to make it easy for windows folks.
Title: Re: v68: new CUI emulator with sound
Post by: rezb1t on November 07, 2024, 02:15:58 PM
This is really cool! I've been using run68x up to this point, but I think I will switch to this. I already made a quick port of v68 to macOS and it seems to be working!

I will clean up my changes and submit a pull request soon.

Thanks for sharing!
Title: Re: v68: new CUI emulator with sound
Post by: human on December 04, 2024, 01:52:51 AM
Really cool project. Could v68 run music sequencers or painting applications one day? Such applications tend to be awkward to run under emulation, compared to games, because the user needs to transfer files to/from a virtual harddrive.