I've recently purchased a W65C816SXB board and have very quickly run into something I wasn't expecting.
When I try to LDA from address $01:0000 or higher the debugger says I've hit a BRK and moves my PC elsewhere, to a block of seemingly random bytes outside the range of my code. The first three lines of my code are this:
Code: Select all
clc
xce
lda >$10000
There is nothing connected to the board apart from USB.
I've read elsewhere here that "The 816SXB resets when you access unimplemented memory areas". I've looked over the schematic on the WDC site and can't see anything obvious in it that might cause that to happen. I've also disassembled the internal ROM and can't see anything in that either, so I'm thinking it has to be a hardware issue. I'm sure I've missed something in either the schematic or CPU datasheet (or both), so I'm wondering:
1. How/why is this happening?
2. Can I prevent it from happening?
Appreciate any light someone could shed on this.
Thanks.