BUPORT - Backup all items from a port to IO, v1.0 From: Poul-Henning Kamp Newsgroups: comp.sources.hp48 Date: Mon, 11 Nov 1991 00:28:14 GMT ====================================== This program will use SEND to send all item in a specified port to a remote computer using whatever parameters setup in IOPAR. STACK-DIAGRAM ------------------------------ n -> BUPORT -> port ------------------------------ On the remote computer one file for each item will be created, with names constructed to identify the object they contain. In addition a user-RPL program is stored that will restore all of these again. Libraries comes in two sorts, those which used the "HP-naming" and those which haven't seen the point :-) If the name-string of the library has the form ??????:??????... the result- ing file will have a name on this form: l_??????.p_? where the part before the colon goes before the point, and the portnumber goes after the underscore. Otherwise the file will be l_####.P_? where the number (id) of the library is used instead of its (unproper) name; again the portnumber goes last. Backups are all the other objects, they get names of the form b_??????.p_? where the name stored in the backup is put before the point, and the port- number goes last. The Restore program is named restore.p_? where the portnumber goes last. This program is in user-RPL and is always transmitted in ASCII format, you can therefore edit it before use, both on the computer and the calculator. The program takes the portnumber to restore into as a real from the stack. To give an idea of how it looks, this is my result of 2 BUPORT: ---------------------------------------------------------------------------- Volume in drive C has no label Directory of C:\BACKUP48 B_NBPAR P_2 B_UTIL P_2 B_BASE P_2 L_NB P_2 B_PHK P_2 L_TETRIS P_2 L_1111 P_2 B_GO P_2 B_INBPAR P_2 L_1092 P_2 L_GAMES P_2 B_FLAGS P_2 B_MOVE P_2 L_PHK P_2 B_MINE P_2 L_UTILS P_2 B_SKY P_2 B_SKYS P_2 L_1214 P_2 B_MORSE P_2 B_CLK P_2 B_INSTAL P_2 B_EXEC P_2 RESTORE P_2 24 File(s) 23406592 bytes free ---------------------------------------------------------------------------- Notes: ====== I have not tried to optimize this for time nor space, I don't really used it that much, feel free to improve it to suit your own taste. Yes, it works with ROM & write-protected RAM cards also. Warnings: ========= This program uses non-documented features, the entry-points of which are listed in the top of the source. *** This is tested on rev.E only *** BYTES: #1c04h 537 phk@data.fls.dk || A host is a host from coast to coast, Poul-Henning Kamp || & no one will talk to a host that's close, FLS DATA A/S || Unless the host (that isn't close) Phone: (+45) 36 18 12 35 || is busy, hung or dead. Fax: (+45) 36 18 12 18 || Anon (?)