Email or username:

Password:

Forgot your password?
Top-level
Vertigo #$FF

@requiem I'm assuming you're rewriting the pvm interpreter in C?

Also, for the 8-bit targets, there are several options I think. For the 6502, there is cc65 or Calypsi, which @mos_8502 brought to my attention recently. For Z80, some traffic on the RC2014 mailing list indicates people have gotten the CP/M HiTech C compiler working. Its dialect predates C89 though, IIRC.

8 comments
Studio 8502 :verified:

@vertigo @requiem z88dk has two more recent C compilers working for z80 CPUs.

requiem 🏴

@vertigo the current version is in #golang currently (only because that's the freshest language in my mind at the moment 😂 ).

Frustratingly the most time-consuming part has been simulating a graphics display (why is it so hard to just put a pixel on the screen in Linux?).

It will be more fun on hardware where it's easier to just write to the video buffer.

@mos_8502

requiem 🏴

@neauoire yeah for my pvm I’m skipping any text mode and going straight to bitmapped graphics, but I can never find a simple way to display that on Linux. It always involves OpenGL or some window manager stuff and I’m from the old days where if you wanted a pixel on the screen you just used a pointer to video ram 🤣

Devine Lu Linvega

@requiem I haven't found it to be too difficult. It just depends if you want it to be cross platform or not.

If it's your first time, I'd say go with a simple X11 pixel buffer and try to draw a rectangle in it.

You can find all the parts for this here: git.sr.ht/~rabbits/uxn11/tree/

requiem 🏴

@neauoire cooooool

Yes compatibility, dependencies, each time I’ve tried it I get hung-up on something, but I’ll take a look and give it another shot, thanks!

Devine Lu Linvega

@requiem your linux system shouuuld come with X11, otherwise try SDL2? It's not much more complicated, here's a super barest-of-bones examples for SDL2:

wiki.xxiivv.com/site/ansi_c.ht

Otherwise, this could be a good place to start too with sdl:

git.sr.ht/~rabbits/dotgrid

Go Up