Flash access
From Bettyhacks.com - Hack BettyTV-Remote
(the original firmware routines for erasing and writing flash) |
(forgot to mention register R1 and R2 for programFlash) |
||
Line 74: | Line 74: | ||
</pre> | </pre> | ||
− | and here is the flash write function, again, register R0 to pass the adress | + | and here is the flash write function, again, register R0 to pass the adress, R1 is the address of the |
+ | data to be written, R2 the number of bytes or words to be written. | ||
<pre> | <pre> |