Skip to main content


Thinking about the #pvm this morning and what other hardware I could port it to (so far it’s written in #golang out of convenience, so it shares the same targets as that language).

It’s all still wip of course and doesn’t do much yet but based on what’s done so far I think I could make it fit into an 8-bit AVR/Arduino, which is a fairly nice test for the low-end of the spectrum.

Ultimately I want to make possible to run on work on 8-bit micros like the Z80/6800/etc. but I don’t have a great toolchain for such hardware yet (all I have for my #rc2014 is the ROM assembler and no storage 🤣).

But cramming it into an arduino would be a good exercise and test to make sure I’m not leaning on Go features too much.

https://jasongullickson.com/personal-virtual-machines.html
Unknown parent

Devine Lu Linvega
need a hand to draw pixels on the screen?
in reply to Devine Lu Linvega

@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 🤣
in reply to 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: https://git.sr.ht/~rabbits/uxn11/tree/main/item/src/uxn11.c
in reply to Devine Lu Linvega

@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!
in reply to 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:

http://wiki.xxiivv.com/site/ansi_c.html

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

https://git.sr.ht/~rabbits/dotgrid

Lo, thar be cookies on this site to keep track of your login. By clicking 'okay', you are CONSENTING to this.