--- np2/debugsub386.c 2004/03/19 00:30:00 1.5 +++ np2/debugsub386.c 2004/03/26 06:33:53 1.8 @@ -6,6 +6,10 @@ #include "iocore.h" #include "debugsub.h" +void debugwriteseg(const char *fname, const descriptor_t *sd, + UINT32 addr, UINT32 size); +void debugpageptr(UINT32 addr); + #if defined(MACOS) #define CRLITERAL "\r" @@ -181,6 +185,20 @@ void debugsub_memorydump(void) { } } +void debugsub_memorydumpall(void) { + + FILEH fh; + + fh = file_create_c(file_memorybin); + if (fh != FILEH_INVALID) { + file_write(fh, mem, 0x110000); + if (CPU_EXTMEMSIZE > 0x10000) { + file_write(fh, CPU_EXTMEM + 0x10000, CPU_EXTMEMSIZE - 0x10000); + } + file_close(fh); + } +} + #if 1 // ²¶ÍѥǥХ°