log MM::StackSpace

This commit is contained in:
Kelvin Sherlock 2013-06-27 20:28:20 -04:00
parent 39d1a33483
commit 1dc96f1777

View File

@ -423,9 +423,13 @@ namespace MM
uint32_t sp = cpuGetAReg(7);
Log("%04x StackSpace(%08x)\n", trap);
SetMemError(0);
// find the pointer base...
// todo -- call lower bound, then iter-- ?
for (const auto & iter : PtrMap)
{
if (sp >= iter.first && sp < iter.first + iter.second)