|
|
| version 1.13, 2005/03/18 09:23:10 | version 1.15, 2005/05/20 13:59:45 |
|---|---|
| Line 1 | Line 1 |
| #include "compiler.h" | #include "compiler.h" |
| #include "strres.h" | #include "strres.h" |
| #include "textfile.h" | |
| #include "dosio.h" | #include "dosio.h" |
| #include "cpucore.h" | #include "cpucore.h" |
| #include "pccore.h" | #include "pccore.h" |
| Line 125 static void writeseg(const OEMCHAR *fnam | Line 126 static void writeseg(const OEMCHAR *fnam |
| limit++; | limit++; |
| while(limit) { | while(limit) { |
| size = min(limit, sizeof(buf)); | size = min(limit, sizeof(buf)); |
| MEML_READ(addr, buf, size); | MEML_READS(addr, buf, size); |
| file_write(fh, buf, size); | file_write(fh, buf, size); |
| addr += size; | addr += size; |
| limit -= size; | limit -= size; |
| Line 136 static void writeseg(const OEMCHAR *fnam | Line 137 static void writeseg(const OEMCHAR *fnam |
| void debugsub_status(void) { | void debugsub_status(void) { |
| static int filenum = 0; | static int filenum = 0; |
| FILEH fh; | TEXTFILEH tfh; |
| OEMCHAR work[512]; | OEMCHAR work[512]; |
| const OEMCHAR *p; | const OEMCHAR *p; |
| OEMSPRINTF(work, file_i286reg, filenum); | OEMSPRINTF(work, file_i286reg, filenum); |
| fh = file_create_c(work); | tfh = textfile_create(file_getcd(work), 0); |
| if (fh != FILEH_INVALID) { | if (tfh != NULL) { |
| p = debugsub_regs(); | p = debugsub_regs(); |
| file_write(fh, p, OEMSTRLEN(p) * sizeof(OEMCHAR)); | textfile_write(tfh, p); |
| OEMSPRINTF(work, str_picstat, | OEMSPRINTF(work, str_picstat, |
| pic.pi[0].imr, pic.pi[0].irr, pic.pi[0].isr, | pic.pi[0].imr, pic.pi[0].irr, pic.pi[0].isr, |
| pic.pi[1].imr, pic.pi[1].irr, pic.pi[1].isr, | pic.pi[1].imr, pic.pi[1].irr, pic.pi[1].isr, |
| mouseif.upd8255.portc, sysport.c); | mouseif.upd8255.portc, sysport.c); |
| file_write(fh, work, OEMSTRLEN(work) * sizeof(OEMCHAR)); | textfile_write(tfh, work); |
| file_close(fh); | textfile_close(tfh); |
| } | } |
| OEMSPRINTF(work, file_i286cs, filenum); | OEMSPRINTF(work, file_i286cs, filenum); |