(41) Preserve and recover stack/alpha/flags
|
12-25-2018, 01:16 PM
Post: #1
|
|||
|
|||
(41) Preserve and recover stack/alpha/flags
Works on: 41CX, DM41(L) or on a 41C/CV with an X-Func module
This little utility preserves the contents of the alpha register, the flags and the stack (X, Y, Z, T and L) by saving this in a data file in extended memory. A second utility pulls that data out of X-Mem and restores the alpha register, flags and stack to their state when the file was created. Requires enough room in X-Mem for a 10-register file. Register 00 and the four last registers in conventional memory are trashed by this. E.g. if SIZE? returns 100, then registers 00 and 96-99 will be overwritten. Listing, .raw file and printable PDF with wand bar codes provided in the attached .zip archive. Code: LBL "PRSRV" |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
(41) Preserve and recover stack/alpha/flags - grsbanks - 12-25-2018 01:16 PM
|
User(s) browsing this thread: 1 Guest(s)