4 ms·
Holy carp - he is writing it in assembly. https://github.com/BonsaiDen/Tuff.gb/blob/master/src/core/core.gb.s https://github.com/BonsaiDen/Tuff.gb/blob/master/
by harwoodr 12y ago
Holy carp - he is writing it in assembly.
https://github.com/BonsaiDen/Tuff.gb/blob/master/src/core/core.gb.s https://github.com/BonsaiDen/Tuff.gb/blob/master/src/core/co...
Nice.
- pjmlp 12y agoIn what language do you imagine GameBoy games were written?
- adamman 12y agoMaybe C? http://gbdk.sourceforge.net/#Highlights http://gbdk.sourceforge.net/#Highlights http://gbdk.sourceforge.net/examples.html http://gbdk.sourceforge.net/examples.html
- BonsaiDen 12y agoThat's a "recent" development though :) The original title back in the day were all written in assembly, you really have to squeeze out every single byte and cycle for something like Pokemon or Kirby.
- judk 12y agoPokemon is turn based with no AI, why would it need cycles?
- arcatek 12y agoBecause softwares are not the only one to use cycles. For example, in the GB, some memory space is only adressable during a few cycles, and so you have to optimize your code when you wish to update the video ram. If you miss the window, too bad.
- pjmlp 12y agoC was a bloated language for targeting the Gameboy[0]. Only slowly after the 32bit became mainstream, did professional game developers started adopting C. In the 8 and 16 bit days, C (and Pascal dialects) were viewed as C# and Java are nowadays for game development. [0]Using my 80's developer hat.
- ekianjo 12y agoWerent most Amiga and Atari ST games written in C though?
- pjmlp 12y agoSurely not. You need to do a lot of low level programming to target the custom sound and graphics chips those machines had available. Not to mention that with 512 KB, every byte counted. I cannot speak much for the Atari ST, as I was on the Amiga side of the bench. The operating system was originally coded in Assembly and BCPL, with later versions having some C code as well(mostly K&R still). Assembly and special game programming languages like AMOS, were the main programming languages for game developers on Amiga. C was just another business programming language like C#, Java, Ruby and many others are today. Mostly used for standard desktop software, or for doing the UNIX university projects at home. Young developers take C's ubiquity for granted nowadays, but there was a time, when it was just yet another programming language.
- ido 12y ago
- bane 12y agoASM isn't all that hard, just a little tedious once you understand the CPU architecture a little and the mnemonics. You can think of it like a low-level basic. ;)