Page 1 of 1

6502 emulator in x86 assembly (real mode)

Posted: Tue May 11, 2004 8:04 pm
by skurk
Hi,

I'm currently writing my own Apple ][ emulator. It's mainly for fun, and I'm doing it all in x86 assembly, in real mode. (I have big plans for this, but I'm not going to reveal what it is just yet.. ;-) )

I'm curious wether someone has written an 65(C)02 emulator in x86 real mode assembly? I've nearly finished mine, but if someone else has, I'll ditch mine and use theirs instead, so I don't have to waste time looking for bugs.

Posted: Thu May 13, 2004 1:44 am
by greener
Check out this link. Or, Google for "apple2 emulator".

Quick summary:
* I know that ApplePC was written in assembly, but the source was never released to my knowledge.
* AppleWin is pretty good, but I think it's all C. The source code is floating around somewhere... I have a copy somewhere too.
* DApple is more current and is actively being developed. I think it's completely C, but you probably should check.
* KEGS/XGS is probably worth a look, but concentrates on 65816.

There are a number of people on this site who have actually dealt with this stuff too. Check out Daryl's site for one.

Posted: Fri May 14, 2004 12:23 pm
by coredump
I wrote a 6502 emulator in x86 assembler for MS-DOS, some years ago. I never really finished it to a state where I could release it, but it does run all 6502 instructions correctly -- apart from decimal mode, I think. I added a C wrapper for initialisation and I/O emulation. I made it emulate the video memory and keyboard of the Compukit UK101, a UK clone of the Ohio Scientific Superboard.

I suppose I should convert it into a Linux x86 assembler program, and finish it off. It needs a lot of tidying up before it could become a proper UK101 emulator. It's much faster than a real UK101, though, on modern hardware.