6502 Processor Emulator

I've created a C++ library that (hopefully) emulates the 6502 (maybe part of the 65C02) processor. I believe it was used in the Commodore, as well as the Nintendo Entertainment System. I've created it as a step toward creating my first emulator, for the NES. However, to put it lightly, the docs I've found suck, so I'm not sure I've implemented every instruction appropriately. To help debug it, I'm creating an application similar to windows' debug that will allow me to essentially program for the 6502 and trace the code. But seeing as how knowing how to program for the 6502 and knowing what each instruction does are essentially the same thing, I must say I don't really know how to program for the 6502.

So, to the point. If anyone has 6502 (and/or 65C02) source code they could donate to my cause, I'd appreciate it. And if you're interested in taking a more active role as an experienced 6502 programmer, I'd appreciate that as well.

: : How do you get this far if you don't know how to program in 6502?: By the way, I hope this came across the way I meant it. It wasn't a criticism. In fact, I was amazed that you had done as much as you had to this point, without being experienced in 6502

: : Thanks for the info, I'll check it out. I'll post an occasional update on my progress for any who are interested.:

Anyhow, at this point I have created a debugging program (similar to Win/dos' debug.exe) for the 6502 emulator I've created. It's not fully featured, but it can assemble, disassemble, do memory dumps and data entry, and trace the code. I may still have a few bugs with the functioning of the individual instructions, but at least the ADC and SBC ops, as well and many others, appear to work correctly. Most importantly, the flow control instructions appear to be functioning.

: I dont understood, but look very intersstingit is all about eMulation for PS2 some sort of old stufffdo you know a good strating point to become a good progammersome library tutorial info ect...anyway ill read your post often : Psee you around and GL

I wish I had good news to report, but unless no news is good news, it's not good. With school and everthing else, I haven't gotten any more work done with it. The 6502 processor emulator is fully functional (as far as I can tell), except for decimal mode arithmetic. I created a debug program for it, sort of a clone of Windows debug, which also works.

: I wish I had good news to report, but unless no news is good news, it's not good. With school and everthing else, I haven't gotten any more work done with it. The 6502 processor emulator is fully functional (as far as I can tell), except for decimal mode arithmetic. I created a debug program for it, sort of a clone of Windows debug, which also works.: It sounds like you're doing OK, and keeping priorities straight. It's more important to finish school stuff, though not as much fun.

: I've created a C++ library that (hopefully) emulates the 6502 (maybe part of the 65C02) processor. I believe it was used in the Commodore, as well as the Nintendo Entertainment System. I've created it as a step toward creating my first emulator, for the NES. However, to put it lightly, the docs I've found suck, so I'm not sure I've implemented every instruction appropriately. To help debug it, I'm creating an application similar to windows' debug that will allow me to essentially program for the 6502 and trace the code. But seeing as how knowing how to program for the 6502 and knowing what each instruction does are essentially the same thing, I must say I don't really know how to program for the 6502.: : So, to the point. If anyone has 6502 (and/or 65C02) source code they could donate to my cause, I'd appreciate it. And if you're interested in taking a more active role as an experienced 6502 programmer, I'd appreciate that as well. : : If so, contact me by email ([email protected]) or ICQ (2063124).: : Thanks,: James: :