View Single Post
Old 25th May 2021, 9:06 pm   #13
Michael Haardt
Join Date: May 2021
Location: Titz, Germany.
Posts: 41
Default Re: New SC/MP II system

I need to copy the same memory area twice, once second stage loader + code from the boot ROM to high RAM, then after disabling the boot ROM only the code back to low RAM. The code position relative to 256 byte pages will change unless I pad the boot loader to a full 256 byte page and copy the full loader in the first stage as well to maintain the position. A 256 byte page copy function may indeed be easier than a byte wise copy function.

Your code is awesome, because a generic map function walks a string, using the function pointer in P3 for each character.

I guess it is best to accept the 12-bit pages and just never have data crossing them.

Michael Haardt is offline