Re: Synchronizing Emu48 with calculator



On Sat, 25 Aug 2007 12:49:02 -0500, elly wrote:

I know how to save the state of my emulator
but i dont know how to restore them in my calculator.
can you give me an instruction on how to do this?

The above must be a follow-up to a different article than the
"threading" indicates; if it's about synchronizing Emu48 and calc:

Make backup on Emu48 just as on calc, either like Joe Horn, or via
PUSH :2:BK001 DUP ARCHIVE (flags and current directory path
are then automatically backed up).

Now your backup is stored in emulated "flash" [see later note];
you can recall it to the stack again via :2:BK001 RCL (or EVAL).

If you did the DUP (or extra ENTER) as shown above, then :2:BK001
remained on the stack, so you didn't have to type it again :)

Now that the backup (which looks exactly like a directory)
is on the Emu48 stack, Emu48 function "Edit" > "Save object"
will save it to a computer file of your choice
(perhaps name it BK001, just to suggest something :)

From there you can copy to an SD card, or transfer via cable
to your calculator; if you transfer via cable, I think you have
to first store in a variable, but the Filer can then move it to a port,
if you want more permanent saving (all variables will get wiped out
when you restore the backup).

Ready to restore? (Note: this will *replace* your entire HOME directory,
so first back up or copy anything you *don't* want replaced!)

Okay, :2:BK001 RESTORE (or :3:BK001 RESTORE, depending where the file is);
in a few seconds, the calc restarts ("warmstart"); if you had done PUSH
just before the original ARCHIVE command, now do a POP command -- Done!

Transferring a complete backup from calc to Emu48 is obviously
just the reverse, except that you either drag the backup file
(made on calc) to the emulator, or use Emu48 "Edit" > "Load object"
to put it first on the Emu48 stack, then save it wherever appropriate
(perhaps "flash" port 2), then do the RESTORE on Emu48 (Save your RAM at end).

Here's the promised "note" about "flash" (port 2) on Emu48:

All of the Emu48 calculator RAM is maintained in computer RAM,
until you do a "File" > "Save" (or upon exit, depending on Emu48 options),
usually saving to computer file "ram.e49" -- if you bypass that "save"
and just exit without saving, then modifications to RAM are discarded.

When you STO anything into Emu48 "flash" port 2, however, that *immediately*
stores the modification, directly into the ROM image file (usually "rom.e49");
this can not be "undone" or forgotten by exiting Emu48.

The Emu48 ROM image file date and time, however, as shown by Windows,
never changes, because the ROM file is "memory mapped" -- you may
want to keep that in mind in case you do any kind of updating
by "more recent file date," including "freshen" in WinZip,
which will not be able to detect "flash" changes via date or time!

Also, if you swap or update ROM image files in Emu48, remember that
you are also swapping the entire "flash" port 2, so you may want
to keep a set of individually saved objects, to store back
into the "flash" port after any "ROM update" on Emu48.

If you happen to be using an SD card for carrying files back & forth
between computer and calculator, the SD card itself might be
a convenient place to keep a copy of every object that's in flash port 2
(often just libraries and backups of HOME), as its files can be used
both on the computer and in the calculator.

As to naming backup files, I simply number mine consecutively;
somehow this helps me to figure out which ones are the most recent,
and the short (5-character) names remain fully visible
in the menu labels for port 2 (longer names can be viewed only
in the Filer, or via "Review" [right-shift, cursor down] in menus).

Hmm.. that's all I can think of -- let me know if anything's been left out.

--

"The greatest enemy of knowledge is not ignorance,
it is the illusion of knowledge." [Stephen Hawking]
.



Relevant Pages

  • Re: RPL: Reassign a local variable
    ... taking 2.5s in Emu48 on a 600 MHz ARM machine ... deliberately sabotage results, for ever using ... 2.5s may actually be normal for reals -- ... use a calculator, which is other than practically instantaneous ...
    (comp.sys.hp48)
  • Re: Notepad > Emu48 > Calculator
    ... testing on the emulator then transferring then on the calculator ... If instead the file is carried to the calc on an SD card, ... on the calculator, the same as on Emu48, and the same thing occurs. ...
    (comp.sys.hp48)
  • Re: Next Step -Or- Emulators for Dummies
    ... "Allows you to transfer data between your calculator and your PC with ... When you drag computer file into calc folder, ... For a more complete list of such characters: ... You also mentioned using Emu48 -- that's a completely different ...
    (comp.sys.hp48)
  • Re: file,lib tranfers from PC to hp 48GX
    ... you can also use EMU48 on your Windows PC, emulating the same or any other compatible calculator on the computer itself; when you act as if to transfer from one calculator to another, EMU48 is able to use the computer's own serial port as the serial port of the emulated calculator. ... (like program delimiters, etc.) ...
    (comp.sys.hp48)
  • Partial RCL on the SD card
    ... data of a backup object stored in the SD card of the ... GOSBVL 24E2B => which points to ACCESSSD RTN ... for the calculator ....? ... Is there any answer, Cyrille or Jean-Yves? ...
    (comp.sys.hp48)