mirror of
https://github.com/holub/mame
synced 2025-05-23 06:08:48 +03:00
Revert "Revert "added assert for e.g. n64 -cart waveracej crash in rsp_device::generate_checksum_block() (nw)""
This reverts commit 36218e2220
.
This commit is contained in:
parent
36218e2220
commit
605b473f71
@ -7419,6 +7419,7 @@ void rsp_device::generate_checksum_block(drcuml_block *block, compiler_state *co
|
||||
if (seqhead->delay.first() != NULL && seqhead->physpc != seqhead->delay.first()->physpc)
|
||||
{
|
||||
base = m_direct->read_decrypted_ptr(seqhead->delay.first()->physpc | 0x1000);
|
||||
assert(base != NULL);
|
||||
UML_LOAD(block, I1, base, 0, SIZE_DWORD, SCALE_x4); // load i1,base,dword
|
||||
UML_ADD(block, I0, I0, I1); // add i0,i0,i1
|
||||
|
||||
@ -7441,6 +7442,7 @@ void rsp_device::generate_checksum_block(drcuml_block *block, compiler_state *co
|
||||
if (!(curdesc->flags & OPFLAG_VIRTUAL_NOOP))
|
||||
{
|
||||
base = m_direct->read_decrypted_ptr(curdesc->physpc | 0x1000);
|
||||
assert(base != NULL);
|
||||
UML_LOAD(block, I1, base, 0, SIZE_DWORD, SCALE_x4); // load i1,base,dword
|
||||
UML_ADD(block, I0, I0, I1); // add i0,i0,i1
|
||||
sum += curdesc->opptr.l[0];
|
||||
@ -7448,6 +7450,7 @@ void rsp_device::generate_checksum_block(drcuml_block *block, compiler_state *co
|
||||
if (curdesc->delay.first() != NULL && (curdesc == seqlast || (curdesc->next() != NULL && curdesc->next()->physpc != curdesc->delay.first()->physpc)))
|
||||
{
|
||||
base = m_direct->read_decrypted_ptr(curdesc->delay.first()->physpc | 0x1000);
|
||||
assert(base != NULL);
|
||||
UML_LOAD(block, I1, base, 0, SIZE_DWORD, SCALE_x4); // load i1,base,dword
|
||||
UML_ADD(block, I0, I0, I1); // add i0,i0,i1
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user