summaryrefslogtreecommitdiff
path: root/lib/mipsdis.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mipsdis.cpp')
-rw-r--r--lib/mipsdis.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/mipsdis.cpp b/lib/mipsdis.cpp
index a1b2a68..cbaf9e3 100644
--- a/lib/mipsdis.cpp
+++ b/lib/mipsdis.cpp
@@ -17,7 +17,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-/* $Id: mipsdis.cpp,v 1.1 2004-01-03 15:04:47 pixel Exp $ */
+/* $Id: mipsdis.cpp,v 1.2 2004-01-26 15:31:55 pixel Exp $ */
#include "mipsdis.h"
#include "mips.h"
@@ -110,6 +110,7 @@ void Disassembler::crawl_code(Uint32 pc) {
while (dis->bheap.size()) {
branched = pc = dis->bheap.top();
dis->bheap.pop();
+ printm(M_STATUS, "Crawling to branch %8.8lX\n", pc);
do {
if (pc >= (0x80000000 + PSXMEM)) {
dis->invalid = true;
@@ -121,7 +122,7 @@ void Disassembler::crawl_code(Uint32 pc) {
}
mm->SetTag(pc, CODE, true);
- printm(M_STATUS, "%8.8lX\r", pc);
+ printm(M_STATUS, "Working at %8.8lX\n", pc);
decode(dis, pc);
pc += 4;
@@ -146,6 +147,7 @@ void Disassembler::mainloop(void) {
infunction = false;
// Crawl the start part.
+ printm(M_STATUS, "Starting crawl at %8.8lX\n", mm->GetPC());
if (!started)
crawl_code();
@@ -157,6 +159,7 @@ void Disassembler::mainloop(void) {
while (dis->fheap.size()) {
pc = dis->fheap.top();
dis->fheap.pop();
+ printm(M_STATUS, "Crawling function %8.8lX\n", pc);
if (mm->GetTag(pc, CODE))
continue;
crawl_code(pc);