I divided the CAR copy into pieces to debug memory corruption that I'm seeing. It seems to fit a pattern, but I'm not sure what would be causing it. Any ideas would be appreciated.
I'm copying the stack from 0c8000-0cfffff to 1f8000-1fffff Here's the output when copying in 8 pieces
Copying testx from 000ced80 (001fed80)
0 dest 001f8000 src 000c8000 size 1000 1 dest 001f9000 src 000c9000 size 1000 2 dest 001fa000 src 000ca000 size 1000 3 dest 001fb000 src 000cb000 size 1000 4 dest 001fc000 src 000cc000 size 1000 5 dest 001fd000 src 000cd000 size 1000 6 dest 001fe000 src 000ce000 size 1000 ÿ dest 001ff000 src 000cf000 size 1000 Copying done Done
testx = 5a5a5a5a
Disabling cache as ram now
Notice the ÿ character when the top of the stack (location of testx) gets copied.
16 pieces (excerpt):
d dest 001fe800 src 000ce800 size 800 ÿ dest 001ff000 src 000cf000 size 800 f dest 001ff800 src 000cf800 size 800
Same character at the top of the stack
32 pieces:
1a dest 001fe800 src 000ce800 size 400 1b dest 001fec00 src 000cec00 size 400 ÿÿ dest 001ff000 src 000cf000 size 400 1d dest 001ff400 src 000cf400 size 400 1e dest 001ff800 src 000cf800 size 400
64 pieces:
36 dest 001fec00 src 000cec00 size 200 ÿÿ dest 001fee00 src 000cee00 size 200 38 dest 001ff000 src 000cf000 size 200
Thanks in advance, Myles