- [FIX] posible leak al carregar el bmp de la font
- [FIX] arreglats un milló de warnings
This commit is contained in:
+2
-2
@@ -35,7 +35,7 @@ namespace m6502dis
|
||||
while (true) {
|
||||
uint16_t address;
|
||||
char tmp[15];
|
||||
const int result = fscanf(f, "%x %s", &address, tmp);
|
||||
const int result = fscanf(f, "%hx %s", &address, tmp);
|
||||
if (result != 2) break;
|
||||
strcpy(symbols[address], tmp);
|
||||
used_symbols.push_back(address);
|
||||
@@ -81,7 +81,7 @@ namespace m6502dis
|
||||
if (strstr(buffer, "4x"))
|
||||
{
|
||||
opcode_size+=2;
|
||||
const uint8_t memvalue = mem::read(pos);
|
||||
//const uint8_t memvalue = mem::read(pos);
|
||||
const uint16_t word = mem::read(pos+1) + (mem::read(pos+2)<<8);
|
||||
if (symbols[word][0]!=0) {
|
||||
char *p = strstr(buffer, "$");
|
||||
|
||||
Reference in New Issue
Block a user