On Thu, 14 Oct 2004, Karri Kaksonen wrote: > co65: Internal error: Invalid size field value in o65 header I fixed it myself. There is a bug in o65.c. The switch statements in the function ReadO65Size need breaks to work. static unsigned long ReadO65Size (FILE* F, const O65Header* H) /* Read a size variable (16 or 32 bit, depending on the mode word in the * header) from the o65 file. */ { unsigned long Size = 0; /* Initialize to avoid warnings */ printf("debug : %d\n", H->mode); switch (H->mode & O65_SIZE_MASK) { case O65_SIZE_32BIT: Size = Read32 (F); break; ^^^^^^ case O65_SIZE_16BIT: Size = Read16 (F); break; ^^^^^^ default: Internal ("Invalid size field value in o65 header"); } return Size; } -- Regards, Karri ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo@musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail.Received on Thu Oct 14 11:24:13 2004
This archive was generated by hypermail 2.1.8 : 2004-10-14 11:24:21 CEST