|
> > I am *trying* to do it with a more generic OO approach and less code, but man > > it's not an easy one. > > I wonder if this is one of those cases where OO actually makes things more > difficult. There are 68K emulators written entirely in C such as the one in MAME > so you might want to give those a look. >
Yes, I saw the MAME code. It looks mighty complex to me, but maybe that's just me :-) I think I'll have a basic concept down, although I haven't implemented any instructions yet (except for ADD/ADDA). I'm still struggling to get the addressing modes down in a generic way, so I won't have to implement so many different versions of the same instruction, or have too many branches in one instruction. I don't know yet what I will encounter, but I feel I'm headed in the right direction. Now only hope I get it running fast enough...
|