Compiling Xtal Basic

Software discussion & Emulation
Post Reply
User avatar
yevrowl
Posts: 15
Joined: Thu Mar 05, 2026 12:47 am

Compiling Xtal Basic

Post by yevrowl »

In general, there is a source code for a logic game — viewtopic.php?p=1573#p1573
Using EDIP, write the source code to a floppy disk and load it through the MAME emulator.
It works in Xtal Basic 4.2 and 5.0.

However, cannot save it with the SAVE command in any form due to a “Bad Data” error, and have the same problem with compilation.
compile.png
compile.png (713 Bytes) Viewed 1817 times
What could be the reason?
÷)
User avatar
MikeDHalliday
Posts: 243
Joined: Fri Oct 25, 2019 9:52 am
Location: Crewe
Contact:

Re: Compiling Xtal Basic

Post by MikeDHalliday »

The reason is that mame does not support Einstein disk write operations. Or, that is what the old excuse used to be. I haven't updated my mame for a while, but suspect it's stills the same issue.
Ex owner of a real TC01 with Gotek boot drive and second drive, Joysticks, DAC hardware (Built but untested) and loads of manuals, books and mags. Living the emulation life now!
User avatar
yevrowl
Posts: 15
Joined: Thu Mar 05, 2026 12:47 am

Re: Compiling Xtal Basic

Post by yevrowl »

MikeDHalliday wrote: Thu Mar 12, 2026 5:56 pmThe reason is that mame does not support Einstein disk write operations. Or, that is what the old excuse used to be. I haven't updated my mame for a while, but suspect it's stills the same issue.
Perhaps it will work with ColecoDS? Is it worth trying?
÷)
User avatar
MikeDHalliday
Posts: 243
Joined: Fri Oct 25, 2019 9:52 am
Location: Crewe
Contact:

Re: Compiling Xtal Basic

Post by MikeDHalliday »

Yes, from what I recall is was only mame/mess that did not write to the drive. I am sure there was another emulator I used years ago that wrote back to disk without issue, but I can't remember which. I will have a look at my emulators and see which ones I still have that might do it.

Give colecoDS a go and see what happens. That is one emulator I haven't tried.
Ex owner of a real TC01 with Gotek boot drive and second drive, Joysticks, DAC hardware (Built but untested) and loads of manuals, books and mags. Living the emulation life now!
User avatar
yevrowl
Posts: 15
Joined: Thu Mar 05, 2026 12:47 am

Re: Compiling Xtal Basic

Post by yevrowl »

MikeDHalliday wrote: Fri Mar 13, 2026 6:23 amGive colecoDS a go and see what happens. That is one emulator I haven't tried.
As far as can tell, it’s a touchscreen keyboard for the actual Nintendo DS console. Don’t own the console itself, and emulators (DeSmuME and melonDS) don’t support it.
÷)
User avatar
yevrowl
Posts: 15
Joined: Thu Mar 05, 2026 12:47 am

Re: Compiling Xtal Basic

Post by yevrowl »

Compiled it using a CP/M-compatible operating system on MSX. The result, which requires the runtime (xr.com from the compiler package), is attached below.
Attachments
bt-xbi.7z
(2.15 KiB) Downloaded 34 times
÷)
Lardo Boffin
Posts: 314
Joined: Thu Oct 24, 2019 11:47 am

Re: Compiling Xtal Basic

Post by Lardo Boffin »

MikeDHalliday wrote: Thu Mar 12, 2026 5:56 pm The reason is that mame does not support Einstein disk write operations. Or, that is what the old excuse used to be. I haven't updated my mame for a while, but suspect it's stills the same issue.
My understanding is that MAME doesn’t support writing to discs because it will lead to the ROMs they distribute getting damaged / messed around with and people ending up with stuff that doesn’t work. Which obviously leads to extra support.
TC-01 + TM-01 + gotek
Post Reply