Softloader examples
ke4pjw
Posts: 1,155
in Propeller 1
Does anyone have a good example softloader object? I am looking to build a softloader that reads a .binary image from the upper 16K of the eeprom and executes it on the prop.
I'm just looking for an example, the heavy lifting of loading the image and such, I can build myself.
Thanks guys,
--Terry
I'm just looking for an example, the heavy lifting of loading the image and such, I can build myself.
Thanks guys,
--Terry
Comments
It appears there are two longs in hub RAM that are used as the mailbox. These are my interpretations of how those longs are utilized for reading and writing.
The upper 8 bits of [control][0] appear to be the command register.
The lower 24 bits of [control][0] appear to be the EEPROM address register. I am unsure how bits 17-24 are utilized here.
The upper 16 bits of [control][1] appear to be the number of bytes to read/write.
The lower 16 bits of [control][1] appear to be the address in hub RAM you are reading/writing to.
It appears that if long[control][0] bits 25 - 29 are low, you can read or write commands to the mailbox.
Does this sound correct? I want to implement writeEEPROM in PASM for my project. I just can't grok the mailbox registers fully.
Thanks in advance.
--Terry