On Sat, Jun 26, 2004 at 06:51:23PM +0200, Kyrre Aalerud wrote: > My bootloader will be available as source... Good start. Now how can we use that source? It's up to you to allow for change, redistribution of original and modifications, commercial usage, and the like. Use the GPL if you want everyone to contribute their changes, or the BSDL if it doesn't matter to you. > The rest of the code is usually relocatable when one can have the bootloader > and software through the linker together... > > Basically, my first version of the bootloader will handle interrupts by > saving context, then jumping to the address 0x104 while the booting of the > application will happen by jumping to 0x100 ergo I simply shifted the stuff > up to next page. I had to add the context-saving in the bootloader as the > goto would change the status of stuff. as would any other instructions kill > W. Cool. > > The restoring would be done as normal in the target interrupt-routine to > avoid extra jumps. > > Simple yet effective... > Oh, and I adjusted some stuff... > > I added the check stuff and the code to ask PC to repeat datablocks if > mangled data is received. I also cleaned up some other stuff. > Total words now is 114, but technically I still start loading software at > 0x100. I will change this to start at 0x80 giving 128 words more memory > available. For testing, I will leave it at 0x100. So you decided not to write protect the 1st block then? BAJ -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics