Gameboy Development Forum

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.

Ads

#1 2019-05-04 14:38:22

zeropagebyte
Member
Registered: 2019-02-22
Posts: 32

When making a Gameboy game, NUL characters turn into spaces

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

 

#2 2019-05-06 04:14:54

ISSOtm
Member
From: Somewhere in Echo RAM
Registered: 2017-04-18
Posts: 160
Website

Re: When making a Gameboy game, NUL characters turn into spaces

Why do you have NUL characters in your code, exactly?


The French Lord Of Laziness.
Legend of Zelda and Undertale fan, I also tend to break Pokémon R/B/Y a little too much.

Twitter | Me on GCL | Discord : ISSOtm#9015 | Skype : isso.tm (I don't login anymore)

Offline

 

#3 2019-05-08 15:57:00

zeropagebyte
Member
Registered: 2019-02-22
Posts: 32

Re: When making a Gameboy game, NUL characters turn into spaces

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

 

#4 2019-05-09 11:36:31

ISSOtm
Member
From: Somewhere in Echo RAM
Registered: 2017-04-18
Posts: 160
Website

Re: When making a Gameboy game, NUL characters turn into spaces

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)


The French Lord Of Laziness.
Legend of Zelda and Undertale fan, I also tend to break Pokémon R/B/Y a little too much.

Twitter | Me on GCL | Discord : ISSOtm#9015 | Skype : isso.tm (I don't login anymore)

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson