mirror of
https://github.com/trudnai/Steve2.git
synced 2024-06-14 00:29:29 +00:00
_memread_dbg()
This commit is contained in:
parent
fdd46f6773
commit
5fdab01ca4
|
@ -27,6 +27,7 @@
|
||||||
#include "mmio.h"
|
#include "mmio.h"
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
#include "6502.h"
|
#include "6502.h"
|
||||||
|
#include "6502_bp.h"
|
||||||
#include "disk.h"
|
#include "disk.h"
|
||||||
#include "woz.h"
|
#include "woz.h"
|
||||||
#include "speaker.h"
|
#include "speaker.h"
|
||||||
|
@ -1017,16 +1018,18 @@ INLINE uint8_t _memread( uint16_t addr ) {
|
||||||
|
|
||||||
// return memread8(addr);
|
// return memread8(addr);
|
||||||
}
|
}
|
||||||
INLINE uint8_t _memread_dbg( uint16_t addr ) {
|
|
||||||
if (addr >= 0xC000) {
|
|
||||||
// return memread8_paged(addr);
|
|
||||||
return memread8_high(addr);
|
|
||||||
}
|
|
||||||
// return memread8_paged(addr);
|
|
||||||
return memread8_low(addr);
|
|
||||||
|
|
||||||
// return memread8(addr);
|
INLINE uint8_t _memread_dbg( uint16_t addr ) {
|
||||||
|
if (LAST_IDX(mem_read_breakpoints)) {
|
||||||
|
if ( m6502_dbg_bp_exists(mem_read_breakpoints, addr) ) {
|
||||||
|
cpuState = cpuState_halted;
|
||||||
|
m6502.interrupt = BREAKPOINT;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return _memread(addr);
|
||||||
}
|
}
|
||||||
|
|
||||||
INLINE uint8_t _memread_dis( uint16_t addr ) {
|
INLINE uint8_t _memread_dis( uint16_t addr ) {
|
||||||
if (addr >= 0xC000) {
|
if (addr >= 0xC000) {
|
||||||
// return memread8_paged(addr);
|
// return memread8_paged(addr);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user