mirror of https://github.com/trudnai/Steve2.git
More preventative changes to avoid writing to memory during disassembly
This commit is contained in:
parent
edf76850c7
commit
0a2b87964e
|
@ -1029,13 +1029,13 @@ INLINE uint8_t _memread_dbg( uint16_t addr ) {
|
|||
Naive implementation of RAM write to address
|
||||
**/
|
||||
|
||||
INLINE void memwrite8_low( uint16_t addr, uint8_t data ) {
|
||||
INLINE void _memwrite8_low( uint16_t addr, uint8_t data ) {
|
||||
WRLOMEM[addr] = data;
|
||||
}
|
||||
INLINE void memwrite8_bank( uint16_t addr, uint8_t data ) {
|
||||
INLINE void _memwrite8_bank( uint16_t addr, uint8_t data ) {
|
||||
WRD0MEM[addr] = data;
|
||||
}
|
||||
INLINE void memwrite8_high( uint16_t addr, uint8_t data ) {
|
||||
INLINE void _memwrite8_high( uint16_t addr, uint8_t data ) {
|
||||
WRHIMEM[addr] = data;
|
||||
}
|
||||
INLINE void _memwrite( uint16_t addr, uint8_t data ) {
|
||||
|
|
|
@ -410,9 +410,9 @@ INLINE uint16_t memread16_low( uint16_t addr );
|
|||
INLINE uint16_t memread16( uint16_t addr );
|
||||
INLINE uint8_t _memread( uint16_t addr );
|
||||
INLINE uint8_t _memread_dbg( uint16_t addr );
|
||||
INLINE void memwrite8_low( uint16_t addr, uint8_t data );
|
||||
INLINE void memwrite8_bank( uint16_t addr, uint8_t data );
|
||||
INLINE void memwrite8_high( uint16_t addr, uint8_t data );
|
||||
INLINE void _memwrite8_low( uint16_t addr, uint8_t data );
|
||||
INLINE void _memwrite8_bank( uint16_t addr, uint8_t data );
|
||||
INLINE void _memwrite8_high( uint16_t addr, uint8_t data );
|
||||
INLINE void _memwrite( uint16_t addr, uint8_t data );
|
||||
INLINE uint8_t _fetch(void);
|
||||
INLINE uint8_t _fetch_dbg(void);
|
||||
|
@ -469,6 +469,9 @@ INLINE uint8_t _src_zp_Y_dbg(void);
|
|||
#define fetch() _fetch()
|
||||
#define fetch16() _fetch16()
|
||||
#define memread(addr) _memread(addr);
|
||||
#define memwrite8_low(addr,data) _memwrite8_low(addr,data);
|
||||
#define memwrite8_bank(addr,data) _memwrite8_bank(addr,data);
|
||||
#define memwrite8_high(addr,data) _memwrite8_high(addr,data);
|
||||
#define memwrite(addr,data) _memwrite(addr,data);
|
||||
#define addr_abs() _addr_abs()
|
||||
#define src_abs() _src_abs()
|
||||
|
@ -498,7 +501,10 @@ INLINE uint8_t _src_zp_Y_dbg(void);
|
|||
#define fetch() _fetch_dbg()
|
||||
#define fetch16() _fetch16_dbg()
|
||||
#define memread(addr) _memread_dbg(addr);
|
||||
#define memwrite(addr,data) // do not write anything into the memory while disassembling
|
||||
#define memwrite8_low(addr,data) // do not write anything into the memory while disassembling
|
||||
#define memwrite8_bank(addr,data) // do not write anything into the memory while disassembling
|
||||
#define memwrite8_high(addr,data) // do not write anything into the memory while disassembling
|
||||
#define memwrite(addr,data) // do not write anything into the memory while disassembling
|
||||
#define addr_abs() _addr_abs_dbg()
|
||||
#define src_abs() _src_abs_dbg()
|
||||
#define rel_addr() _rel_addr_dbg()
|
||||
|
|
Loading…
Reference in New Issue