# Glitch City Laboratories Archives

Glitch City Laboratories closed on 1 September 2020 (announcement). This is an archived copy of a thread from Glitch City Laboratories Forums.

You can join Glitch City Research Institute to ask questions or discuss current developments.

You may also download the archive of this forum in .tar.gz, .sql.gz, or .sqlite.gz formats.

## Tech Help

### Pokemon Crystal Remote Code Execution - Page 1

Previous Page

- 1
- 2

Next Page

#### Pokemon Crystal Remote Code Execution

Posted by: Beppe1509
Date: 2019-11-23 06:29:02
I was just casually looking at youtube and I found a video from TheZZAZZGlitch that showed me how I can use those ".bin" files with link cable to execute code, now I wanna make my own .bin files but I dont know how. Any suggestions?

#### Re: How .bin files work?

Posted by: Sherkel
Date: 2019-11-23 07:20:36
This one?
Just do what he does in the video. It's in the bottom left quarter of the screen. If I correctly understand what you're asking.
To clarify, there is no one common use of .bin files. It's short for "binary". So just use them in whatever way they're intended to be used, in this case the way they're used in the video.

#### Re: How .bin files work?

Posted by: Beppe1509
Date: 2019-11-23 07:33:13
Yeah but if you see he does python and i managed to do that but the problem is i want to make my own bin file like make this : https://pastebin.com/LTmnYhTx into a pokemon red program executed like him

#### Re: How .bin files work?

Posted by: Sherkel
Date: 2019-11-23 08:19:21
Be more specific with your question next time; I almost asked if you knew what Python was. :P
Anyway, given that you do, this should speak for itself:
`print("BINARY should be a headerless block of GB Z80 machine code, 256 bytes in size")`
If you're wondering how to write GBz80 code and compile it, the forum section on ACE has plenty of links to help get you started.

#### Re: How .bin files work?

Posted by: Beppe1509
Date: 2019-11-23 09:25:54
Thanks SO MUCH

#### Re: How .bin files work?

Posted by: Sherkel
Date: 2019-11-23 09:32:24
No problem!

#### Re: How .bin files work?

Posted by: Beppe1509
Date: 2019-11-23 09:53:00
another question, what should i use for converting the gbz80 code into binary

#### Re: Pokemon Crystal Remote Code Execution

Posted by: Sherkel
Date: 2019-11-23 10:15:57
If it just needs machine code, running it through rgbasm should do it.
The GBDev Discord server might come in handy if you're interested in coding for the Game Boy. :)

#### Re: Pokemon Crystal Remote Code Execution

Posted by: Beppe1509
Date: 2019-11-24 06:32:40
I have a question, how do I execute a gbz80 code into pokemon? I have seen a tread with the items but when i have all the items in place it just crashes, any help?

#### Re: Pokemon Crystal Remote Code Execution

Posted by: Sherkel
Date: 2019-11-24 08:57:31
Do you have the bootstrap part done? It's when you prepare your party for 8F, your PC for ws m, or your Safari Balls and Day Care for -gm, depending on which item you're using.

#### Re: Pokemon Crystal Remote Code Execution

Posted by: Beppe1509
Date: 2019-11-24 11:16:26
I have prepared my 8F bootstrapper on pokemon red, i tested some premade ones and they worked fine but now the problem is "converting" the code

#### Re: Pokemon Crystal Remote Code Execution

Posted by: Sherkel
Date: 2019-11-24 12:38:45

> I have prepared my 8F bootstrapper on pokemon red, i tested some premade ones and they worked fine but now the problem is "converting" the code

Converting from what to what?
If it's assembly code to items, GBz80 to Items does exactly what it says on the tin. If you're on BGB, it's a good idea to just type them in to test the setup first before going through the trouble of doing it legitimately on an original system, if that's your goal.

#### Re: Pokemon Crystal Remote Code Execution

Posted by: Beppe1509
Date: 2019-11-27 09:13:43
how can i convert Items to GBz80??

#### Re: Pokemon Crystal Remote Code Execution

Posted by: Parzival
Date: 2019-11-27 13:41:54

> how can i convert Items to GBz80??

write the items to your inventory then go to that area in a debugger. Should work.

#### Re: Pokemon Crystal Remote Code Execution

Posted by: Beppe1509
Date: 2019-11-28 08:11:47
The Problem is that it does like that : https://ibb.co/pRmGYwH
any fix
CTRL + G works but on the code it just shows -
Previous Page

- 1
- 2

Next Page