Page 1 of 1
Hatari on Atari
Posted: 15 Nov 2023 12:14
by chronicthehedgehog
Medmed is posting some nice looking SDL1 ports of games over on AF and it got me thinking.
Being too scared to post such a noob question over there I thought I'd ask here :D
Is the 060 or PiStorm for that matter, powerful enough to run Hatari compiled for SDL1? I have neither so can't try it myself.
ST games running in Hatari, in a window on an ST might be too much to comprehend :D
Re: Hatari on Atari
Posted: 15 Nov 2023 13:01
by Steve
There's a better alternative, agranlund created a kind of virtual machine emulator. So it uses the real 68k CPU, no emulation needed. It runs on Mint I think.
Re: Hatari on Atari
Posted: 15 Nov 2023 13:15
by chronicthehedgehog
Steve wrote: 15 Nov 2023 13:01
There's a better alternative, agranlund created a kind of virtual machine emulator. So it uses the real 68k CPU, no emulation needed. It runs on Mint I think.
I was mulling the question over (and how daft it was :D) when I was making lunch and something along those lines occurred to me. I've probably read about that before but the significance of it didn't hit home at the time.
Re: Hatari on Atari
Posted: 15 Nov 2023 21:31
by frank.lukas
Re: Hatari on Atari
Posted: 15 Nov 2023 23:54
by chronicthehedgehog
:cheers:
I'm looking forward to trying that out one day
Re: Hatari on Atari
Posted: 16 Nov 2023 11:41
by alexh
An interesting question for PiSTorm owners. I imagine that the CPU power might unlock several 8-bit emulators that previously were unuseable.
Re: Hatari on Atari
Posted: 16 Nov 2023 12:20
by stephen_usher
Technically with a 68030 and above with an MMU you could write a hypervisor giving the virtual machine a virtual address space and running privileged code sections in a CPU instruction simulator, catching any access to hardware etc.
In that way all non-privileged code would run at full speed, only the supervisor mode instructions would be slow.
You could even simulate the 68000 exception stack for the virtual machine/process.
Re: Hatari on Atari
Posted: 17 Nov 2023 09:37
by mikro
@stephen_usher: yeah, that's like the imaginary holy grail of emulation on our small platform. It sounds great in theory but in practice it would be way less usable than you'd expect. Many games, demos basically switch to supervisor, access hardware directly (even for no or little reason) and after that the can of worms has been opened: sure, you could fake it, pretend that it's still user code and catch exceptions and blah blah, the point is, you wont get anywhere near a decent / smooth experience even on CT60.
What I think is a better way is to create a JIT compiler for given emulators: that way the CPU emulation burden nearly disappears and one can focus on optimising the hardware emulation, ideally using some hardware tricks the host provides.