This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
41cl:replacement_cpu_board:saving_state2flash [2011/12/20 18:53] egbokalaka |
41cl:replacement_cpu_board:saving_state2flash [2011/12/20 22:06] (current) egbokalaka |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Sample routines for saving calculator state to FLASH ====== | ||
+ | |||
+ | <box> | ||
+ | Sequence of steps to create the write from 800 to XXX (XXX is your choice of user FLASH ram this example uses 0C9). Check with the manual for available addresses, and for why YFNS should be in RAM when writing to FLASH. | ||
+ | </ | ||
+ | |||
+ | <box> | ||
+ | Note that the production version of the 41CL loads the ' | ||
+ | </ | ||
+ | |||
+ | <sxh text; first-line: 1; highlight: 5; title: Routine to create the write from 800 to XXX:> | ||
+ | LBL “YCTOF” | ||
+ | TURBO50 | ||
+ | " | ||
+ | YMCPY | ||
+ | “812-RAM” | ||
+ | PLUG1L | ||
+ | “OC9000” | ||
+ | YFERASE | ||
+ | “800> | ||
+ | YFWR | ||
+ | “YFNS” | ||
+ | PLUG1L | ||
+ | END | ||
+ | </ | ||
+ | |||
+ | |||
+ | <box> | ||
+ | Now at a complete “MEMORY LOSS” state. MANUALLY execute the following, as any routine will be erased at line 7 and will not complete! | ||
+ | |||
+ | <sxh text; first-line: 1; highlight: ; title: Perform this manually:> | ||
+ | MMUCLR | ||
+ | “YFNS” | ||
+ | PLUG1L | ||
+ | MMUEN | ||
+ | TURBO50 | ||
+ | “0C9> | ||
+ | YMCPY | ||
+ | XEQ “U-PG” | ||
+ | XEQ “SGMT” | ||
+ | </ | ||
+ | |||
+ | <box> | ||
+ | Routine adaptable to any configuration desired: Unplug and PLug | ||
+ | </ | ||
+ | |||
+ | <sxh text; first-line: 1; highlight: ; title: PLug or Unplug:> | ||
+ | LBL “U-PG” | ||
+ | SF 01 | ||
+ | XEQ 61 | ||
+ | “FUN WORK UPG” | ||
+ | AVIEW >> | ||
+ | GETKEY | ||
+ | GTO IND X | ||
+ | LBL 21 >> | ||
+ | “FUNS” | ||
+ | PLUG3 | ||
+ | “TREK” | ||
+ | PLUG1U | ||
+ | GTO 10 | ||
+ | LBL 63 >> | ||
+ | CCDX | ||
+ | PLUG1U | ||
+ | “PPCM” | ||
+ | PLUG2 | ||
+ | GTO 10 | ||
+ | LBL 61 >> | ||
+ | UPLUG1U | ||
+ | UPLUG2 | ||
+ | UPLUG3 | ||
+ | UPLUG4 | ||
+ | FS?C 01 | ||
+ | RTN | ||
+ | LBL 10 | ||
+ | “DONE” | ||
+ | AVIEW >> | ||
+ | RTN | ||
+ | </ | ||
+ | |||
+ | <box> | ||
+ | Clock set, after restoring calculator back to desired state, following “MEMORY LOSS” | ||
+ | </ | ||
+ | |||
+ | <sxh text; first-line: 1; highlight: ; title: Set the clock:> | ||
+ | LBL “SGMT” | ||
+ | TURBO50 | ||
+ | “DATE?” | ||
+ | PROMPT | ||
+ | SETDATE | ||
+ | “TIME” | ||
+ | PROMPT | ||
+ | SETIME | ||
+ | “+-GMT? | ||
+ | PROMPT | ||
+ | T+X | ||
+ | CLOCK | ||
+ | END | ||
+ | </ | ||
+ | |||
+ | //Provided by: Geoff Quickfall// | ||