Hi codecow
I have time now for a fuller response. First, welcome!
Second, I'm interested in your reference to "cedar" but I don't understand what that is.
Third, I see now that you already saw Symon, a 6502 emulator in Java, but you want a C version. There are several C emulators of 6502, perhaps you should look at all of them to see if the code is in a style which suits your development and debug environment. See here:
http://6502.org/tools/emu/#emulation Finally, it might be worth me saying a little about the 6502 and this forum and the emulators - you might have misunderstood how many things are independent of each other:
- The 6502 was originally a chip by a company called MOS and has been made by several different manufacturers in the years after.
- The modern 65C02 is a chip made by a company called WDC, who also license their design to other companies including Sunplus/Generalplus.
- This site is independent of all companies, and almost everyone here is a hobbyist or engineer representing themselves, and not representing any company.
- The various emulators you can find, including lib6502, are each independent developments by various developers, some of which might be here on the forum but many of which are not here.
Now, lib6502 is something of a favourite of mine, but it's not my code, and it isn't suitable for all purposes. It's high performance and the code is built by a collection of defines - it's not the easiest code to debug. As you've found!
Hope this helps
Ed