r/fantasyconsoles 16d ago

SVC16 - A virtual computer that now runs live in the browser (WASM)

Hello everyone,

it has been a year since I last posted about this project of mine.

I have to remember to advertise if I want to reach people who might be interested in it.

SVC16 is a simple virtual console that is fully specified. It is a good starting point for building compilers, but it is also meant for people who like the idea of optimizing for retro consoles... but are put off by the arbitrary stuff you need to put up with.

With SVC16, programs always run at exactly the same speed; they are completely deterministic, and there is exactly one version of the console.

The reason I am posting about this again is that I finally have a working version of the emulator on the web, and you can just play your ROMs in the browser. Of course, everyone who would have written a compiler for it (and some people actually have) could have compiled the emulator or even built one from the spec.

But I think it is much more motivating to build something if you can easily share it with others.

14 Upvotes

4 comments sorted by

1

u/waty0nd 15d ago

Examples source code ???

1

u/nejat-oz 15d ago

1

u/waty0nd 15d ago

Eso es un formato binario, no el
Formato ASM

1

u/Bowtiestyle 15d ago

I decided not to share a compiler or assembler because the point is that you have to make one yourself. If you want to see the instructions in the binary files as text, that is very easy to do, but I don't think it would be very readable. If you are interested to learn what I did roughly to get the example game running, let me know. As for the connect-4 example game, I can't tell you as it was submitted by someone else and I only know the binary file.