You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, i would like to add 65C02 emulation in oricutron (WDC version).
Anyway, what is the best way to code ? I started something but i prefer to ask before i finished it.
I did like this :
in 6502 struct, i added :
SDL_bool wdccmosversion;
Line 1943 of 6502.c, i did this (i added also cycles to this new opcode.
case 0xFA: // PLX
if (cpu->wdccmosversion)
{
cpu->x = POPB;
FLAG_ZN(cpu->x);
break;
}
if you think, that it's not the best way let me know, but it's easier than switching to C++ to inherit object, or to duplicate 6502 emulation in order to manage 2 files.
Let me know !
The text was updated successfully, but these errors were encountered:
Hello, i would like to add 65C02 emulation in oricutron (WDC version).
Anyway, what is the best way to code ? I started something but i prefer to ask before i finished it.
I did like this :
in 6502 struct, i added :
SDL_bool wdccmosversion;
Line 1943 of 6502.c, i did this (i added also cycles to this new opcode.
if you think, that it's not the best way let me know, but it's easier than switching to C++ to inherit object, or to duplicate 6502 emulation in order to manage 2 files.
Let me know !
The text was updated successfully, but these errors were encountered: