aboutsummaryrefslogtreecommitdiff
path: root/amforth-6.5/msp430/drivers/fram/words/scrub.asm
diff options
context:
space:
mode:
Diffstat (limited to 'amforth-6.5/msp430/drivers/fram/words/scrub.asm')
-rw-r--r--amforth-6.5/msp430/drivers/fram/words/scrub.asm6
1 files changed, 6 insertions, 0 deletions
diff --git a/amforth-6.5/msp430/drivers/fram/words/scrub.asm b/amforth-6.5/msp430/drivers/fram/words/scrub.asm
new file mode 100644
index 0000000..85fbe22
--- /dev/null
+++ b/amforth-6.5/msp430/drivers/fram/words/scrub.asm
@@ -0,0 +1,6 @@
+; SCRUB erases the application area of the Program Flash,
+; and then does COLD to reset the User Variables.
+ HEADER(SCRUB,5,"SCRUB",DOCOLON)
+ DW XT_DOLITERAL,INFOSTART,XT_DOLITERAL,INFO_SIZE,FLERASE
+ DW XT_DOLITERAL,FLASHSTART,XT_DOLITERAL,(FLASHEND-FLASHSTART),FLERASE
+ DW XT_COLD,XT_EXIT