Original Post

what do i need to wrigt my homemade game fore vb?

I trying to understand what i need to download and how to make them work on my computer.

Please can some one give me a idiot guide so i can do this .-)

You can Pm me


26 Replies

…not to sound discouraging or anything but you do realize theres quite a bit of learning and hard work put into making a game, right? it might take more than just reading a PM or two.

Do you have any experience programming? Do you know how to program in C language? If yes, it shouldn’t be too difficult… just download gccvb, VIDE, and some examples… get the examples working, modify them a little until you get the hang of how everything works.

If you have no programming experience at all, you should really start simple with an easier language than C, and on the PC (something like Visual Basic is pretty simple). Once you get the hang of programming, you should learn at least the basics of C, but again, on the PC. Once you understand how to write good, working C code, then you should be able to answer yes to both of my first questions… then just follow those steps.


Oh well.

Thansk fore all the answers. I belive i have to let people how can do it, do it .-)

I dident relise the hard work behind it.


i bet if you worked hard you could figure it out.

Does anyone program games in assembly for the VB, or is most/all of the homebrew done in C? I was just wondering because I read the programmers manual and most examples were done in assembly.

Almost all of the coding is done in C… there’s a few rare exceptions where we choose to use ASM, but you can certainly do just about anything you’d like without ever touching ASM. V810 ASM is pretty nice though, so if you’re familiar with ASM in general, it wouldn’t be difficult to pick up.

The programmers manual is pretty out of date now though… if you’re interested in coding, you should check out the wiki: http://www.vr32.de/modules/dokuwiki/doku.php? , and download some of the examples.


Awesome. I am very familiar with assembly, which is why that is great news, haha. I’ll check out the wiki, thanks.

I would suggest setting up your dev environment first and checking to see if you can compile the examples. So far this has proven to be one of my biggest headaches!

The documentation on the wiki is quite good, but for some reason the steps didn’t all work for me, so proceed with caution! 🙂

It didn’t work for me either, and I’m a computer engineer, so I know what I’m doing.

I think the most confusing thing is the various tutorials were written at different points in time when the compiler and rboy were at a certain version. And now they appear to be completely different. And then there are inconsistencies. For example, one article says I need to install “cygwin” or something, and another example makes no mention of it. There is generally confusion between the Windows and Unix examples as well. Almost everything requires changes to PATH environment variables and other tedious command line options. Another thing I noticed was I couldn’t even run the “demo.vb” program in reality boy, even without compiling anything.
Whoever put together the compiler tutorials should consider revising them, because they don’t work at all.

It won’t do much good to revise the “compiling the compiler” tutorial, because the compiler won’t compile under Cygwin (read: GCC 3.4) anymore…

Parasyte has been working on compiling a newer version, but it wasn’t ready last I heard. If you’re on Windows, you can still use the older one that comes as a set of binaries, and you really don’t have to mess with the path if you use a batch script to run it. It’s not ideal, but it’s a way to get started, at least.

There are a couple of home-made assemblers in the Tech section. I’m not sure how well they work, though.

The build script is incredibly simple, currently. All it does it download the source distributions, extract them, and build them. There are no patches for the NVC architecture; it builds v850.

The script works great on Linux (Ubuntu 9.10) but fails on OS X (gcc 4.2.1). I’m going to be away from home for the next week, but I might get a chance to work on it while away. At the very least, I can try to fix the OS X build. I would also like to start on the port to NVC, which will be based almost entirely on David Tucker’s gccvb distribution.

And after that, I’ll work on porting the crt0 and library.

Here’s a list of what currently builds:


Note that these are all modern versions! I might have to roll back to building gcc 4.3, since 4.4 doesn’t want to cooperate on OS X.

Anyway, that’s what I’m currently doing. (And this all started just because I wanted to update my emulator. Hmph.)


I’ve been trying to compile an older version of gccVB (2.95) on Ubuntu 10.4 and I ran into some issues. After googling the error that stopped the compile, I think I’ve hit a roadblock that I’m sure many of you know about.

I’m now looking for the most recent version of gccVB. Parasyte, it seems you’re the active developer on gccVB… where might I find the latest revision or that wonderful build script you described?

Many thanks,


The latest release doesn’t even have to be compiled.

The ready-compiled version is for cygwin/windows.

There are experimental patches by M.K. for GCC 4.4.2, binutils 2.20, etc., which you could try:


It works, but doesn’t produce as efficient code as 2.95.2.


Thanks for the info. For now I will use the pre-compiled Cygwin version in an XP virtual machine. If anyone could point me toward the Linux build script, I’d be truly grateful.

Also, I’d attempt the patches, but I’m not sure which version of gccVB (or just the GCC source?) to apply them to. The very first line of “gcc-4.4.2-vb.patch” suggests I have the wrong version:
“diff -uNr gcc-4.4.2.org/config/mt-v810 gcc-4.4.2/config/mt-v810”
I have gccVB code from [http://goliathindustries.com/vb/download/gccvb/vb_v810_gcc_03.tar.gz], whose gcc folder is gcc-2.95-2/

I’m excited about the coding competition and I hope I have something to offer by November.


Welcome to the forum, Steve!

tarsius4 wrote:
…Also, I’d attempt the patches, but I’m not sure which version of gccVB (or just the GCC source?) to apply them to.

It’s the second option: you apply them to plain vanilla GCC/binutils/newlib sources.

I have gccVB code from [http://goliathindustries.com/vb/download/gccvb/vb_v810_gcc_03.tar.gz], whose gcc folder is gcc-2.95-2/

That is the one that includes the patches by David Tucker. Those patches have since been updated to fix bugs and to add bit-string and custom VB opcodes.

Also, if you have a 3.x branch of GCC installed (at least 3.4, not sure about earlier or later) it may not compile the 2.95.2 source (at least it doesn’t for me under Cygwin, but it may be a Cygwin problem).

I’m excited about the coding competition and I hope I have something to offer by November.

I can’t wait to see what you come up with! (This competition is already shaping up nicely!)

Thanks RunnerPack. Since my post above, I read about GCC compiling and moved forward to the point I’m at in the GCC4 patch thread. Here’s a link to what I just posted there: http://www.planetvb.com/modules/newbb/viewtopic.php?post_id=11170#forumpost11170

Thanks again 🙂

I’ve got GCC 4 compiled under Ubuntu 10.04 and I was able to use it to build the demo VB game from the dev wiki. Time to read the rest of the wiki.


Hmmmmmm could you use BASIC or VISUAL-BASIC if so you might need version 2010 but it cost $$$.

VBlover wrote:
Hmmmmmm could you use BASIC or VISUAL-BASIC if so you might need version 2010 but it cost $$$.

Uhhhhh…. no. There’s no Basic and DEFINITELY not Visual Basic for the Virtual Boy.



Write a reply

You must be logged in to reply to this topic.