Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Libretro
libretro-handy
Commits
560ef151
Commit
560ef151
authored
Nov 16, 2019
by
tryal-star
Browse files
fix reset crashes
parent
b41f9559
Changes
1
Hide whitespace changes
Inline
Side-by-side
lynx/mikie.cpp
View file @
560ef151
...
...
@@ -64,7 +64,7 @@ void CMikie::BlowOut(void)
C6502_REGS
regs
;
mSystem
.
GetRegs
(
regs
);
sprintf
(
addr
,
"Runtime Error - System Halted
\n
CMikie::Poke() - Read/Write to counter clocks at PC=$%04x."
,
regs
.
PC
);
gError
->
Warning
(
addr
);
if
(
gError
)
gError
->
Warning
(
addr
);
gSystemHalt
=
TRUE
;
}
...
...
@@ -889,7 +889,7 @@ void CMikie::DisplaySetAttributes(ULONG Rotate,ULONG Format,ULONG Pitch,UBYTE* (
}
break
;
default:
gError
->
Warning
(
"CMikie::SetScreenAttributes() - Unrecognised display format"
);
if
(
gError
)
gError
->
Warning
(
"CMikie::SetScreenAttributes() - Unrecognised display format"
);
for
(
Spot
.
Index
=
0
;
Spot
.
Index
<
4096
;
Spot
.
Index
++
)
mColourMap
[
Spot
.
Index
]
=
0
;
break
;
}
...
...
@@ -1856,7 +1856,7 @@ void CMikie::Poke(ULONG addr,UBYTE data)
C6502_REGS
regs
;
mSystem
.
GetRegs
(
regs
);
sprintf
(
addr
,
"Runtime Alert - System Halted
\n
CMikie::Poke(SYSCTL1) - Lynx power down occured at PC=$%04x.
\n
Resetting system."
,
regs
.
PC
);
gError
->
Warning
(
addr
);
if
(
gError
)
gError
->
Warning
(
addr
);
mSystem
.
Reset
();
gSystemHalt
=
TRUE
;
}
...
...
@@ -1984,7 +1984,7 @@ void CMikie::Poke(ULONG addr,UBYTE data)
case
(
Mtest2
&
0xff
):
// Test registers are unimplemented
// lets hope no programs use them.
gError
->
Warning
(
"CMikie::Poke() - Write to MTEST2"
);
if
(
gError
)
gError
->
Warning
(
"CMikie::Poke() - Write to MTEST2"
);
TRACE_MIKIE2
(
"Poke(MTEST2,%02x) at PC=%04x"
,
data
,
mSystem
.
mCpu
->
GetPC
());
break
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment