Discussion about software development for the old-school Gameboys, ranging from the "Gray brick" to Gameboy Color
(Launched in 2008)
You are not logged in.
When I was making my gameboy game, the NUL characters kept turning into spaces. I stops my program from working because a NUL character has a HEX value of 00, while spaces have a value of 20, meaning my game won't work.
Don't reply to this post, as I have figured out how to type nul on Notepad++, so I can fix my game.
Last edited by zeropagebyte (2019-05-04 17:36:49)
Offline
Why do you have NUL characters in your code, exactly?
Offline
ISSOtm wrote:
Why do you have NUL characters in your code, exactly?
I was making a game without compiling, which used nul characters and other strange characters.
Offline
That's a bad idea for a number of reasons.
I'll quote a simple one from Discord:
Hex editing doesn't play nice with removing code, for example
Like, if you turn a `ld a, 0` into a `xor a`, you may have to update all `jr`s that went above this skipped byte, move all the instructions below, and ensure you didn't break any pointers while doing so
With an assembler, single keystroke :p
The assembler generally preferred is RGBDS, which has both Windows and Linux versions.
I also made a tutorial on GB ASM programming using, well, just that assembler!
Last edited by ISSOtm (2019-05-09 11:38:03)
Offline