0 Members and 2 Guests are viewing this topic.
Thanks for the tip, zStart is really useful. Unfortunately it seems to get deleted when doing an "All Memory" reset, however when adding it again, the "run on RAM Clear" option is still installed.[...]
From what I've gathered from this thread https://www.omnimaga.org/asm-language/(z80)-writing-to-flash/ it is possible to write into flash by finding a free sector to erase (I assume this is what zStart does, as there seem to be no side effects to the modification), then use WriteFlashUnsafe to write. [...]
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?
ld hl,$4000ld de,someRamAreald bc,$4000ldir