radareorg / ideas

4 stars 1 forks source link

Add support to assemble GameBoy roms #1

Open radare opened 10 years ago

radare commented 10 years ago

http://gameboy.mongenel.com/dmg/first.txt

radare commented 10 years ago

@condret ;)

condret commented 10 years ago

will be done

condret commented 10 years ago

assemble a full rom or only some instructions?

radare commented 10 years ago

rasm2 should support all the required stuff to construct a rom if the assembler for the target architecture can assemble the instructions needed. The idea would be to have full support to assemble gb-z80 code.

On 09 Dec 2013, at 16:28, condret notifications@github.com wrote:

assemble a full rom or only some instructions?

— Reply to this email directly or view it on GitHub.

condret commented 10 years ago

Do we want to do things like this, too? https://www.youtube.com/watch?v=D3EvpRHL_vk http://forums.glitchcity.info/index.php/topic,6638.0.html

radare commented 10 years ago

why not?

On 13 Dec 2013, at 18:44, condret notifications@github.com wrote:

Do we want to do things like this, too? https://www.youtube.com/watch?v=D3EvpRHL_vk http://forums.glitchcity.info/index.php/topic,6638.0.html

— Reply to this email directly or view it on GitHub.

radare commented 7 years ago

Related tot he .incbin

radare commented 7 years ago

ping condret. shouldnt be that hard to do this. just add a create callback to create tiny gb roms

radare commented 7 years ago

imho the support fir incbin and to be able to define full structs in headers for scratch binaries should be tracked in a separte file

radare commented 4 years ago

On 4 Feb 2020, at 00:23, plopiloo notifications@github.com wrote:

 Hello.

I may want to contribute to this issue.

I want to code the disassembler for game boy in rust. I will then make it compatible with the rest of the program radare2. Do you allow this development practice?

R2 is written in C. If you want to extend it in rust you may want to create a plugin in a separate repository

Also, you may also want to have a look at rair (r2 rewritten in rust)

This link is interesting: https://www.pastraiser.com/cpu/gameboy/gameboy_opcodes.html

When the right assembly language will be print, we will need to notice it in case of command iA sent. I also opened an issue radareorg/radare2#15921

Main issue here is to implement the create() callback in the bin plugin. The assembler is there already in fact

Good luck.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

gogo2464 commented 4 years ago

This issue can be closed. See https://github.com/radareorg/radare2/issues/16994 and https://github.com/radareorg/radare2/issues/16995.

radare commented 4 years ago

The idea here was to enable r2 to generate gameboy roms using rasm2 or rabin2. i dont think few instructions not assembled properly is the only blocker here