emulator source

Topics pertaining to the emulation or simulation of the 65xx microprocessors and their peripheral chips.
Post Reply
Hyper
Posts: 5
Joined: 26 Jul 2007

emulator source

Post by Hyper »

Hello all I have an exciting project started but I need to incorporate an emulator into the project. I am using MSVC6 for the project so the code needs to be c/c++ for that target.

Any help?
VBR
Posts: 25
Joined: 29 May 2007

Re: emulator source

Post by VBR »

Hyper wrote:
Hello all I have an exciting project started but I need to incorporate an emulator into the project. I am using MSVC6 for the project so the code needs to be c/c++ for that target.
What's the exciting project? There's no shortage of C/C++ 6502 emulators...
Hyper
Posts: 5
Joined: 26 Jul 2007

Post by Hyper »

I cant give alot of details at this point but it deals with 3d graphics simulations. I want to run the emu as part of my code so I have direct access to the memory.
fachat
Posts: 1123
Joined: 05 Jul 2005
Location: near Heidelberg, Germany
Contact:

Post by fachat »

Hyper wrote:
I cant give alot of details at this point but it deals with 3d graphics simulations. I want to run the emu as part of my code so I have direct access to the memory.
I wonder what that will be....?

Anyway, it seems you need a highly optimized CPU engine. Probably try to rip the CPU out of one of the popular emulators for the C64, or Apple or Atari. Watch out for GPL (license) issues if you have commercial plans though

André
kc5tja
Posts: 1706
Joined: 04 Jan 2003

Post by kc5tja »

Well, first of all, what CPU are you looking to emulate in the first place? If you're looking to emulate a 65816, I have some software which emulates it. If it's the 6502, then as Andre mentioned, there are tons of them out there. Indeed, as far as I know, I have the only "portable" 65816 emulator on the planet.
Hyper
Posts: 5
Joined: 26 Jul 2007

Post by Hyper »

I need a 6502 for now but the 65816 could be a plugin option later on.
I grabbed a couple of emulators one in dos, having problems digging out all the dos stuff tho. Most of the ones I have seen have hooks to windows print, dos print, mouse etc, I just need a stripped down print nothing emulator that I can feed a S19 or hex file to. I would like to do a shared memory thing so my other program can just grab data at addresses etc.

I will post a screen cap of my intentions on my website soon as I can get the artwork done.
fachat
Posts: 1123
Joined: 05 Jul 2005
Location: near Heidelberg, Germany
Contact:

Post by fachat »

Hyper wrote:
I need a 6502 for now but the 65816 could be a plugin option later on.
I grabbed a couple of emulators one in dos, having problems digging out all the dos stuff tho. Most of the ones I have seen have hooks to windows print, dos print, mouse etc, .
The VICE emulator has most of the stuff separated out into architecture specific directories, as it is available for WIndows, Unix, Mac OS/X etc. It is a large beast, though. You may be able to separate out the CPU easily, as the core is already reused for C64, PET, etc as well as disk drives.

http://www.viceteam.org/

André
Hyper
Posts: 5
Joined: 26 Jul 2007

Post by Hyper »

Ok I wrote an emulator that works and have it integrated into my engine. Proof of concept works so time to let the cat out.
What I did was integrate the emulator into a commercial game engine. You have to write 6502 assembly language to dive a virtual robot around. The first test is working, I have a planetary rover on an alien world roaming around.
The project is just getting started and lots of things will most likely change, visit the site and give me some feedback.

http://www.hyperkat.com/virtualbots.html
Post Reply