@systemoflevers
2 minutes ago
I have been wondering if all the game boy programming then was in assembly or if anyone was using something like C
@john2001plus
0 seconds ago
@systemoflevers There were no C compilers. I'm not sure how optimal C code would be. It is a slow processor that mostly does 8-bit math. There is some limited 16-bit math, but you don't want to use 16-bits if you only need 8. To have optimal code you need to be aware of your register usage and plan things out. For most things it might not matter, but you also don't want to waste limited cartridge space with unnecessary code.
My first week I didn't have the development system until Friday. I spent my first four days reading manuals. On Friday I wrote code to calculate a car skidding around a curve. It might have been 1 or 2 lines of C code, but it took 90 lines of assembly and most of the day to write.
No comments:
Post a Comment