Some more gotchas:
I carefully read this and other topics like:
http://www.ccsinfo.com/forum/viewtopic.php?p=225091
https://www.ccsinfo.com/forum/viewtopic.php?t=56988
http://www.ccsinfo.com/forum ...
Thanks a lot for this ingenious code. It made my bootloader fit in the boot page. It is also very much faster than the equivalent C-code, which I tried first. I have implemented it in an .asm file and ...