|
|
| version 1.9, 2004/08/15 11:17:58 | version 1.12, 2005/05/13 05:47:25 |
|---|---|
| Line 18 | Line 18 |
| #define S98LOG_BUFSIZE (32 * 1024) | #define S98LOG_BUFSIZE (32 * 1024) |
| typedef struct { | typedef struct { |
| BYTE magic[3]; | UINT8 magic[3]; |
| UINT8 formatversion; | UINT8 formatversion; |
| BYTE timerinfo[4]; | UINT8 timerinfo[4]; |
| BYTE timerinfo2[4]; | UINT8 timerinfo2[4]; |
| BYTE compressing[4]; | UINT8 compressing[4]; |
| BYTE offset[4]; | UINT8 offset[4]; |
| BYTE dumpdata[4]; | UINT8 dumpdata[4]; |
| BYTE looppoint[4]; | UINT8 looppoint[4]; |
| BYTE headerreserved[0x24]; | UINT8 headerreserved[0x24]; |
| BYTE title[0x40]; | UINT8 title[0x40]; |
| } S98HDR; | } S98HDR; |
| static struct { | static struct { |
| Line 35 static struct { | Line 35 static struct { |
| UINT32 intcount; | UINT32 intcount; |
| SINT32 clock; | SINT32 clock; |
| UINT p; | UINT p; |
| BYTE buf[S98LOG_BUFSIZE]; | UINT8 buf[S98LOG_BUFSIZE]; |
| } s98log; | } s98log; |
| Line 108 void S98_trash(void) { | Line 108 void S98_trash(void) { |
| S98_close(); | S98_close(); |
| } | } |
| BOOL S98_open(const char *filename) { | BRESULT S98_open(const OEMCHAR *filename) { |
| UINT i; | UINT i; |
| S98HDR hdr; | S98HDR hdr; |
| Line 176 void S98_close(void) { | Line 176 void S98_close(void) { |
| } | } |
| } | } |
| void S98_put(REG8 module, REG8 addr, REG8 data) { | void S98_put(REG8 module, UINT addr, REG8 data) { |
| if (s98log.fh != FILEH_INVALID) { | if (s98log.fh != FILEH_INVALID) { |
| S98_putint(); | S98_putint(); |
| S98_putc(module); | S98_putc(module); |
| S98_putc(addr); | S98_putc((UINT8)addr); |
| S98_putc(data); | S98_putc(data); |
| } | } |
| } | } |