| 8057 | static TCHAR input[MAX_LINEWIDTH]; |
| 8058 | |
| 8059 | static void debug_1 (void) |
| 8060 | { |
| 8061 | draw_denise_line_queue_flush(); |
| 8062 | open_console(); |
| 8063 | custom_dumpstate(0); |
| 8064 | m68k_dumpstate(&nextpc, debug_pc); |
| 8065 | debug_pc = 0xffffffff; |
| 8066 | nxdis = nextpc; nxmem = 0; |
| 8067 | debugger_active = 1; |
| 8068 | |
| 8069 | for (;;) { |
| 8070 | int v; |
| 8071 | |
| 8072 | if (!debugger_active) |
| 8073 | return; |
| 8074 | update_debug_info (); |
| 8075 | console_out (_T(">")); |
| 8076 | console_flush (); |
| 8077 | debug_linecounter = 0; |
| 8078 | v = console_get (input, MAX_LINEWIDTH); |
| 8079 | if (v < 0) |
| 8080 | return; |
| 8081 | if (v == 0) |
| 8082 | continue; |
| 8083 | if (debug_line (input)) |
| 8084 | return; |
| 8085 | } |
| 8086 | } |
| 8087 | |
| 8088 | static void addhistory(void) |
| 8089 | { |
no test coverage detected