Open Private0xCC opened 4 years ago
This is caused by the lack of initialization of local variables in the DecodeIM function,
char name[TEXTLEN], comment[TEXTLEN];
This leads to the following judgment error.
if (addcomment && comment[0] != '\0') strcpy(da->comment, comment);
Debug mode sets all uninitialized memory to 0xCC
In the Visula Studio environment, when the code is compiled with Debug, the Disasm function gets the wrong result
Disasm("\x81\x05\xE0\x5A\x47\x00\x01\x00\x00\x00",10,0x400000,&da,DISASM_CODE);
da.result
is “???”