Excellent news. Any insights into why it wasn't ?A little more clean up and some checks added and I think it's working correctly
The only other tip I can offer is, when printing labelled memory addresses, print them in what is expected to be ascending address order. That way it's easier to understand what your labelling means and verify they have sensible and logically correct addresses. Any out-of-order address will stand out like a sore thumb if something does need investigating and fixing.
For example your earlier list -
Code:
__bss_end__ : 20001D80__end__ : 20001D80Heap_size : 240256Heap top : 2003C800Heap limit : 20040000Stack limit : 20040000Stack Bottom : 20040800Stack Top : 20041000Stack One Bottom : 20042000Stack One Top : 20042000
Statistics: Posted by hippy — Sat Dec 21, 2024 7:53 pm