6502

6502 CPU Emulation

Its the weekend, so I relax from spending all week programming by writing a hobby project. I wrote the framework of a MOS 6502 CPU emulator yesterday, the registers, stack, memory and all the opcodes are implemented. (Link to source below) I can manually run a series of operations in the debugger I wrote, but I'd like to load a NES rom...

CPU Emulation and locking to a specific clock speed

If you had read my other question, you'll know I've spent this weekend putting together a 6502 CPU emulator as a programming exercise. The CPU emulator is mostly complete, and seems to be fairly accurate from my limited testing, however it is running incredibly fast, and I want to throttle it down to the actual clock speed of the machin...

Which is the correct branch instruction for branch if less than.

I wrote an answer yesterday to this: http://stackoverflow.com/questions/192479/whats-the-coolest-hack-youve-seen-or-done and I was trying really hard to remember my 6502 assembly, and I couldn't for the life of me remember how to branch if less than... :1 lda $C010 cmp #$80 bcc :1 ; branch if less than? I forget how to do that....

Emulator Framework

Are there any good open source frameworks for developing computer system emulators? I am particularly interested in something written in Python or Java that can reduce the effort involved in developing emulators for 8-bit processors (e.g. 6502, 6510, etc.). ...

How can I test my homebrew Nintendo Entertainment System software on real hardware?

A few years ago, I implemented an NES game as a class project, written in 6502 assembly. I only ever ran it on an NES emulator, but I would like to see it run on the real hardware. Is there any development board to do this? I understand it is somewhat tricky, with mapper chips and such, but I am willing to limit to just a common mapper (...

Classic assembly language texts not using x86?

I'm looking for texts that give detailed treatment of assembly programming principles and don't use x86 as the target architecture. I haven't found any recent books like that, but I would expect that there were some good ones written in the 1970s and 1980s, when whole applications were still written in assembly. The architecture used sho...

Basic NES Emulation theory - I'm stuck

In advance, I apologize for the open endedness, and general wishy-washiness of this question, because to be honest my knowledge of the topic is very patchy and I'm finding it hard to even describe my problem. I really didn't want to post, but I'm completely and utterly stuck. I have started a NES emulator. It's interpreted (so no dynami...