6502 emu help needed!
Posted: Mon Sep 28, 2015 8:20 am
I'm looking for enough information on the 6502 chip to do a good emulation of it. Any urls?
The Commodore Vic 20 Forum
http://www.sleepingelephant.com/ipw-web/bulletin/bb/
http://www.sleepingelephant.com/ipw-web/bulletin/bb/viewtopic.php?t=7652
I''m not working on t yet, but I plan on working on a Vic20 emulator then C64 and 128 emulators for DOS.pixel wrote:Just for the déjà vu experience: https://github.com/SvenMichaelKlose/ben ... e/master/c – not emulating cycles but probably won't get much simpler.
May I ask what you're working on?
Yes, but I did think about having a quick-emulation mode where the CPU core will make short-cuts, i.e. loading whole words at a time. This will only be an option, but I think it could help on slow computers.groepaz wrote:for something like that you definitely need a cycle-accurate cpu core then
Well...I am planning to use 386 assembler for the emulation cores and C for the interface. BTW, I think PCVic runs well even on 33MHz.nippur72 wrote:I think a C/asm cycle-exact emulator should run fine even on a slow machine (e.g. 200Mhz pentiums).
ShadowVIC is for what system, and where can I find it?pixel wrote:I hope yous two give shadowVIC a whirl. Without scaling it occupies ~15% CPU time on my 2GHz Intel Celeron.
It's been posted in this forum's emulation section about two hours ago. It runs on Linux but there should be no problem adapting video.c and joystick.c to DOS or any other operating system you can name.HarryP2 wrote:ShadowVIC is for what system, and where can I find it?pixel wrote:I hope yous two give shadowVIC a whirl. Without scaling it occupies ~15% CPU time on my 2GHz Intel Celeron.
Hold your horses, young Jedi, if you crunsch it in one pass with gcc, there's no need for assembly.HarryP2 wrote:Well...I am planning to use 386 assembler for the emulation cores and C for the interface. BTW, I think PCVic runs well even on 33MHz.
I think C can do it well, but I still think that assembler can do it better. Besides that, I'm targeting DOSBox and real DOS, and I would like to do full emulation of 40MHz or less.pixel wrote:Hold your horses, young Jedi, if you crunsch it in one pass with gcc, there's no need for assembly.HarryP2 wrote:Well...I am planning to use 386 assembler for the emulation cores and C for the interface. BTW, I think PCVic runs well even on 33MHz.
An absolutely valid target in the retro world. Checked out https://github.com/svenmichaelklose/tma ? Not sure if it's still working, though. There's also a 6502 assembler in it. But I never used it myself.HarryP2 wrote: I think C can do it well, but I still think that assembler can do it better. Besides that, I'm targeting DOSBox and real DOS, and I would like to do full emulation of 40MHz or less.