- [FIX] posible leak al carregar el bmp de la font
- [FIX] arreglats un milló de warnings
This commit is contained in:
+13
-7
@@ -351,8 +351,10 @@ namespace m6502debugger
|
||||
if (!cur_ns) cur_ns = SDL_CreateSystemCursor(SDL_SYSTEM_CURSOR_NS_RESIZE);
|
||||
if (!cur_we) cur_we = SDL_CreateSystemCursor(SDL_SYSTEM_CURSOR_EW_RESIZE);
|
||||
|
||||
memchr(console_log, 0, 65536);
|
||||
memchr(console_history, 0, 65536);
|
||||
for (int i=0;i<256;++i) {
|
||||
console_log[i][0] = '\0';
|
||||
console_history[i][0] = '\0';
|
||||
}
|
||||
//show();
|
||||
}
|
||||
|
||||
@@ -550,7 +552,7 @@ namespace m6502debugger
|
||||
c1 = c2 = COLOR_YELLOW;
|
||||
}
|
||||
ui::printtxt(0,i, tohex(0x0100 | sp, 4), c1);
|
||||
uint16_t value = mem::read(0x0100 | sp-1) + (mem::read(0x0100 | (sp))<<8);
|
||||
uint16_t value = mem::read(0x0100 | (sp-1)) + (mem::read(0x0100 | (sp))<<8);
|
||||
ui::printtxt(5,i, tohex(value, 4), c2);
|
||||
sp-=2;
|
||||
}
|
||||
@@ -705,7 +707,7 @@ namespace m6502debugger
|
||||
void sendToConsole(const char* text)
|
||||
{
|
||||
if (console_history_nav != console_history_pos) {
|
||||
strcpy(console_history[console_history_pos], console_history[console_history_nav]);
|
||||
memmove(console_history[console_history_pos], console_history[console_history_nav], 256);
|
||||
console_history_nav=console_history_pos;
|
||||
}
|
||||
|
||||
@@ -726,7 +728,7 @@ namespace m6502debugger
|
||||
void DeleteCharConsole()
|
||||
{
|
||||
if (console_history_nav != console_history_pos) {
|
||||
strcpy(console_history[console_history_pos], console_history[console_history_nav]);
|
||||
memmove(console_history[console_history_pos], console_history[console_history_nav], 256);
|
||||
console_history_nav=console_history_pos;
|
||||
}
|
||||
|
||||
@@ -738,7 +740,7 @@ namespace m6502debugger
|
||||
void executeConsole()
|
||||
{
|
||||
if (console_history_nav != console_history_pos) {
|
||||
strcpy(console_history[console_history_pos], console_history[console_history_nav]);
|
||||
memmove(console_history[console_history_pos], console_history[console_history_nav], 256);
|
||||
console_history_nav=console_history_pos;
|
||||
}
|
||||
strcpy(console_log[++console_log_pos], ">");
|
||||
@@ -984,6 +986,7 @@ namespace m6502debugger
|
||||
//const uint32_t t = z80::step();
|
||||
//cont();
|
||||
//return t;
|
||||
return 0;
|
||||
}
|
||||
|
||||
void setmemmodified(const uint16_t addr)
|
||||
@@ -1104,7 +1107,10 @@ namespace m6502debugger
|
||||
if (seq) {
|
||||
search_pos = 0;
|
||||
search_sequence_len=0;
|
||||
while (*seq!=0) search_sequence[search_sequence_len++] = (hexchartonum(*(seq++))<<4) + hexchartonum(*(seq++));
|
||||
while (*seq!=0) {
|
||||
search_sequence[search_sequence_len++] = (hexchartonum(*(seq+1))<<4) + hexchartonum(*(seq+2));
|
||||
seq += 2;
|
||||
}
|
||||
}
|
||||
int num_found=0;
|
||||
while (search_pos<65536) {
|
||||
|
||||
Reference in New Issue
Block a user