6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Sun Jun 02, 2024 9:01 am

All times are UTC




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: emulator source
PostPosted: Fri Jul 27, 2007 3:40 pm 
Offline

Joined: Thu Jul 26, 2007 6:11 pm
Posts: 5
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?


Top
 Profile  
Reply with quote  
 Post subject: Re: emulator source
PostPosted: Sat Jul 28, 2007 8:04 am 
Offline

Joined: Tue May 29, 2007 1:29 pm
Posts: 25
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...


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sat Jul 28, 2007 12:23 pm 
Offline

Joined: Thu Jul 26, 2007 6:11 pm
Posts: 5
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.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sun Jul 29, 2007 8:54 am 
Offline

Joined: Tue Jul 05, 2005 7:08 pm
Posts: 998
Location: near Heidelberg, Germany
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é


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sun Jul 29, 2007 4:42 pm 
Offline

Joined: Sat Jan 04, 2003 10:03 pm
Posts: 1706
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.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sun Jul 29, 2007 8:29 pm 
Offline

Joined: Thu Jul 26, 2007 6:11 pm
Posts: 5
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.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Jul 30, 2007 8:31 am 
Offline

Joined: Tue Jul 05, 2005 7:08 pm
Posts: 998
Location: near Heidelberg, Germany
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é


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Aug 20, 2007 11:50 am 
Offline

Joined: Thu Jul 26, 2007 6:11 pm
Posts: 5
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


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: