--- np2/debugsub386.c 2004/03/10 07:41:48 1.4 +++ np2/debugsub386.c 2004/03/21 11:47:19 1.6 @@ -149,7 +149,7 @@ const char *p; SPRINTF(work, str_picstat, pic.pi[0].imr, pic.pi[0].irr, pic.pi[0].isr, pic.pi[1].imr, pic.pi[1].irr, pic.pi[1].isr, - mouseif.portc, sysport.c); + mouseif.upd8255.portc, sysport.c); file_write(fh, work, strlen(work)); file_close(fh); } @@ -181,6 +181,21 @@ void debugsub_memorydump(void) { } } +void debugsub_memorydumpall(void) { + + FILEH fh; + int i; + + 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 // ²¶ÍѥǥХ°