Subversion Repositories pentevo

Rev

Rev 1134 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1134 Rev 1146
Line 17... Line 17...
17
 
17
 
18
#ifdef MOD_MONITOR
18
#ifdef MOD_MONITOR
19
 
19
 
20
unsigned char trace_labels;
20
unsigned char trace_labels;
21
 
21
 
-
 
22
unsigned bkpts_ena;
-
 
23
unsigned user_mon_req = 0;
-
 
24
 
22
unsigned show_scrshot;
25
unsigned show_scrshot;
23
unsigned user_watches[3] = { 0x4000, 0x8000, 0xC000 };
26
unsigned user_watches[3] = { 0x4000, 0x8000, 0xC000 };
24
 
27
 
25
unsigned mem_sz = 8;
28
unsigned mem_sz = 8;
26
unsigned mem_disk, mem_track, mem_max;
29
unsigned mem_disk, mem_track, mem_max;
Line 294... Line 297...
294
   }
297
   }
295
 
298
 
296
   brk_port_in = brk_port_out = -1U; // reset only when breakpoints active
299
   brk_port_in = brk_port_out = -1U; // reset only when breakpoints active
297
 
300
 
298
   if (cpu->dbgbreak)
301
   if (cpu->dbgbreak)
-
 
302
   {
-
 
303
       if(!bkpts_ena && !user_mon_req)
-
 
304
       {
-
 
305
           dbgbreak = 0;
-
 
306
           cpu->dbgbreak = 0;
-
 
307
           return;
-
 
308
       }
-
 
309
       user_mon_req = 0;
299
       debug(cpu);
310
       debug(cpu);
300
}
311
   }
-
 
312
}
301
 
313
 
302
#endif // MOD_MONITOR
314
#endif // MOD_MONITOR
303
 
315
 
304
unsigned char isbrk(const Z80 &cpu) // is there breakpoints active or any other reason to use debug z80 loop?
316
unsigned char isbrk(const Z80 &cpu) // is there breakpoints active or any other reason to use debug z80 loop?
305
{
317
{
306
#ifndef MOD_DEBUGCORE
318
#ifndef MOD_DEBUGCORE
307
   return 0;
319
   return 0;
308
#else
320
#else
-
 
321
   if(!bkpts_ena) return 0;
309
 
322
 
310
   #ifdef MOD_MEMBAND_LED
323
   #ifdef MOD_MEMBAND_LED
311
   if (conf.led.memband & 0x80000000)
324
   if (conf.led.memband & 0x80000000)
312
       return 1;
325
       return 1;
313
   #endif
326
   #endif