View Single Post
Old 22 November 2020, 18:34   #25
Galahad/FLT
Going nowhere

Galahad/FLT's Avatar
 
Join Date: Oct 2001
Location: United Kingdom
Age: 47
Posts: 7,911
Quote:
Originally Posted by jotd View Post
ok, looks like the program is still needed. And I have started coding it and not far from completing it.

I would seem that the boot code could be destroyed by relocating onto itself, which is pretty tricky to handle. A proper reloc routine would start by setting a routine in high memory, then this routine copies the data (respecting the direction of the copy depending on how the source & destination are in memory).
But prior to that it would have to disable all interrupts, because the OS could use this memory and crash.

So it's not that trivial to code if you want it to run on a 1MB chipmem / no fast machine.
Either have an option to copy from low memory or run your routine off the current stack
Galahad/FLT is offline  
 
Page generated in 0.04374 seconds with 11 queries