Jump to content
  • Advertisement
Sign in to follow this  
deks

PowerPC emulation - any help

This topic is 4084 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi. I started working on a PowerPC emulator some time ago, mainly for learning purpose. I finally got all the instructions implemented (CPU and FPU, no Altivec/MMU support), and I'm at a point where I want to start executing real code. So what are my options? It's still fuzzy in my head what are the logical steps I should proceed right now: get a Mac ROM and start executing it (what about OpenFirmware?)? Also, I'll have to implement video and input devices at the very least, still have to find documentation about this... I'm aware of other PowerPC emulators like PearPC, SoftPear, PSIM, etc. that already do this, but as I said, it's for learning purpose and for fun. ;) Any help/hints appreciated! JF

Share this post


Link to post
Share on other sites
Advertisement
I'm not sure what you want to start executing, but the simplest executable you can start running is a flat binary one. Write some toy programs and output a flat binary and see how far your emulator gets with it. Some compilers can output flat binaries directly, if you're using GCC I think you can use objcopy in binutils to strip the executables bare.

If you want to have your emulator boot a BIOS/firmware/operating system you'll need to have a lot more than just the processor's instruction set emulated; things like interrupts, the MMU, whatever bus architecture Macs use (PCI?), and so on. Have you gotten that far?

Share this post


Link to post
Share on other sites
Thanks for the flat executable hint, I'll start with this.

Still, I want to boot a bios/firmware/os later on. I was thinking of getting a linux bootdisk first, which shouldn't be that hard to find. The main thing would be to get a bios/firmware and emulate pci, etc. Anyone got specific infos on this?

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!