Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!akgua!mcnc!ecsvax!calway From: calway@ecsvax.UUCP Newsgroups: net.micro.cbm Subject: Re: backing up software Message-ID: <2408@ecsvax.UUCP> Date: Mon, 30-Apr-84 23:28:44 EDT Article-I.D.: ecsvax.2408 Posted: Mon Apr 30 23:28:44 1984 Date-Received: Wed, 2-May-84 04:13:24 EDT References: burl.448 Lines: 13 I am not familiar with the MAE assembler, but it probably has some facility for saving assembled programs to disk (as opposed to source code). If so, it may be possible to use the MAE to save itself to a new disk. Otherwise, you might try using the SAVE routine from the Kernal. Use SETLFS to set up the disk file, SETNAM to give it a name. You may or may not need to use the OPEN routine. Put the starting address of the MAE in two zero-page locations, such as $FB and $FC. Put the first zero-page address in the accumulator. Then put the address just after the end of MAE into the X and Y registers (X is low, Y is high) and JSR SAVE. James Calloway News and Observer Box 191 Raleigh, N.C. 27602 (919) 829-4570 {akgua,decvax}!mcnc!ecsvax!calway