diff options
author | Michael Pavone <pavone@retrodev.com> | 2014-06-19 19:50:16 -0700 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2014-06-19 19:50:16 -0700 |
commit | a14794522213f99ddef00aa049785ff806d4b1dd (patch) | |
tree | daf85c21302b8f4a525a2e2b75e20cebd7863001 /z80_to_x86.h | |
parent | e8e8075b59f9e4a6a8e9b1cc96f2fcb447fa508e (diff) |
Properly handle Z80 breakpoints on self-modifying code and setting Z80 breakpoints before the Z80 program has been loaded
Diffstat (limited to 'z80_to_x86.h')
-rw-r--r-- | z80_to_x86.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/z80_to_x86.h b/z80_to_x86.h index dd5864b..28f860f 100644 --- a/z80_to_x86.h +++ b/z80_to_x86.h @@ -1,6 +1,6 @@ /* Copyright 2013 Michael Pavone - This file is part of BlastEm. + This file is part of BlastEm. BlastEm is free software distributed under the terms of the GNU General Public License version 3 or greater. See COPYING for full license text. */ #ifndef Z80_TO_X86_H_ @@ -55,6 +55,9 @@ typedef struct { void * system; uint8_t ram_code_flags[(8 * 1024)/128/8]; uint32_t int_enable_cycle; + uint8_t breakpoint_flags[(16 * 1024)/sizeof(uint8_t)]; + uint8_t * bp_handler; + uint8_t * bp_stub; uint16_t pc; } z80_context; |