mirror of
https://github.com/libretro/NP2kai.git
synced 2024-10-07 06:43:29 +00:00
mod V30 mode when DIPSW3-8 OFF
This commit is contained in:
parent
9abd53669c
commit
3140d15a0f
@ -157,7 +157,9 @@ void i286c_initialize(void) {
|
||||
#if !defined(MEMOPTIMIZE) || (MEMOPTIMIZE < 2)
|
||||
i286cea_initialize();
|
||||
#endif
|
||||
v30cinit();
|
||||
if (CPU_TYPE == CPUTYPE_V30) {
|
||||
v30cinit();
|
||||
}
|
||||
ZeroMemory(&i286core, sizeof(i286core));
|
||||
}
|
||||
|
||||
@ -180,10 +182,8 @@ static void i286c_initreg(void) {
|
||||
|
||||
#if defined(VAEG_FIX)
|
||||
void i286c_reset(void) {
|
||||
UINT8 cputype = CPU_TYPE;
|
||||
ZeroMemory(&i286core.s, sizeof(i286core.s));
|
||||
CPU_TYPE = cputype;
|
||||
if (cputype == CPUTYPE_V30) {
|
||||
if (CPU_TYPE == CPUTYPE_V30) {
|
||||
v30c_initreg();
|
||||
}
|
||||
else {
|
||||
|
@ -58,7 +58,9 @@ const UINT8 iflags[256] = { // Z_FLAG, S_FLAG, P_FLAG
|
||||
void i286x_initialize(void) {
|
||||
|
||||
i286xadr_init();
|
||||
v30xinit();
|
||||
if (CPU_TYPE == CPUTYPE_V30) {
|
||||
v30xinit();
|
||||
}
|
||||
}
|
||||
|
||||
void i286x_deinitialize(void) {
|
||||
@ -81,11 +83,8 @@ static void i286x_initreg(void) {
|
||||
|
||||
#if defined(VAEG_FIX)
|
||||
void i286x_reset(void) {
|
||||
UINT8 cputype = CPU_TYPE;
|
||||
|
||||
ZeroMemory(&i286core.s, sizeof(i286core.s));
|
||||
CPU_TYPE = cputype;
|
||||
if (cputype == CPUTYPE_V30) {
|
||||
if (CPU_TYPE == CPUTYPE_V30) {
|
||||
v30x_initreg();
|
||||
}
|
||||
else {
|
||||
|
Loading…
Reference in New Issue
Block a user