Skip to content

Commit d9ca2ad

Browse files
committed
cpu/upd177x/upd177x.cpp: Update comment about setting m_pc to 1 during reset.
1 parent 9a6abab commit d9ca2ad

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/devices/cpu/upd177x/upd177x.cpp

+4-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,10 @@ void upd177x_cpu_device::device_start()
146146

147147
void upd177x_cpu_device::device_reset()
148148
{
149-
m_pc = 1; // Yes, this is odd, but otherwise there are sync issues between writing and clearing PA in scv kungfurd when playing back adpcm.
149+
// Yes, this is odd, but otherwise there are sync issues between writing and clearing PA in scv kungfurd when playing back adpcm.
150+
// During a reset an OUT PA gets executed just around the same time when the main cpu is writing to PA.
151+
// Since the OUT PA completes while the external write to PA is still in progress the external write to PA wins.
152+
m_pc = 1;
150153
m_sp = 0;
151154
m_a = 0;
152155
m_a_save = 0;

0 commit comments

Comments
 (0)