1
ASM / Re: Renaming a command in TIOS
« on: March 24, 2017, 08:32:12 am »
Could these bcalls be of use for this?
FlashToRAM (http://wikiti.brandonw.net/index.php?title=83Plus:BCALLs:5017)
EraseFlashPage (http://wikiti.brandonw.net/index.php?title=83Plus:BCALLs:8084)
I managed to write a patch which writes zeros into flash and rename QuadReg to Q·dReg, so modifying it in RAM should be doable.
Writing back into flash after erasing the sector is probably also a matter of looping+stack?
However, I can't even get FlashToRAM to work. Since I want to copy page 1, I assume the source address is 0 and number of bytes is $8000. But I don't know where in RAM I should put the copy. Especially because RAM can only hold ~24000 bytes (sector size ~32000); I guess I'll have to use the archive?
FlashToRAM (http://wikiti.brandonw.net/index.php?title=83Plus:BCALLs:5017)
EraseFlashPage (http://wikiti.brandonw.net/index.php?title=83Plus:BCALLs:8084)
I managed to write a patch which writes zeros into flash and rename QuadReg to Q·dReg, so modifying it in RAM should be doable.
Writing back into flash after erasing the sector is probably also a matter of looping+stack?
However, I can't even get FlashToRAM to work. Since I want to copy page 1, I assume the source address is 0 and number of bytes is $8000. But I don't know where in RAM I should put the copy. Especially because RAM can only hold ~24000 bytes (sector size ~32000); I guess I'll have to use the archive?