What's new

how do you create a disassembler

secretemu

Future Emu Creator Hopefully
can someone show me how to create a disassembler :huh:
or give me a link to a guide on how to. :bye3:
thanks in advanced
its for a gb (work in progress) emu :evil:
 
Last edited:

refraction

PCSX2 Coder
youve never made an emu before so i REALLY suggest Chip8 first, you will not stand a chance with a GB emu if you dont even grasp the basics, i suggest you do that before anything else.

as for a debugger, you should stick to outputting the data to a txt file, if you dont know how to do that, i suggest you start reading some books/tutorials before doing anything.
 

BGNG

New member
But to answer the original question, you can create a disassembler by parsing the ROM file by decoding the header in one pass and translating the bytes into their corresponding opcodes after that. It's all in linear fashion, so it's fairly easy to accomplish. Don't worry about resource data (sprites, music, etc.) in the ROM file. Just disassemble that as if it was normal programming.
 
OP
S

secretemu

Future Emu Creator Hopefully
what do i actually type in to do this. i am using c++, currently i am reading a book on it. :phone: ( got it a week ago)
the book is c++ for dummies
im on chapter 8 which is pointers. :icecream:
in the previous chapters i learned things like bitwise and controaling program flow. the only thing i have not done is classes and i understand a bit about them already. is this enough to start an emu project like chip 8. :huh:
if not remember that i am not slow just young. :evil:
 

zenogais

New member
Umm, if you can't figure that out you have no place working on emulators. Sorry to break it to you, but emulators require that you be very very comfortable with the language you're using, not just starting.
 
OP
S

secretemu

Future Emu Creator Hopefully
i only have the book for a week but i have c++ for nearly a year the only reason i got the book was so i could cover things i missed
 
OP
S

secretemu

Future Emu Creator Hopefully
sorry i forgot to ask you for a list of things i would have to understand thanks
 

scottlc

New member
Start with something simple. Chip8 is a very easy project, whereas Game Boy is much harder and you would definatly struggle with it. You would do well to gain more experience programming first though.
 

Top