Re: Questions from a newbie

From: Marko Mäkelä (
Date: 2005-01-28 22:12:21

On Fri, Jan 28, 2005 at 11:33:00AM -0700, Rich wrote:
> > Now, Let's suppose you enter a program using the Monitor (after
> > getting the hex code from assembling it in another computer), then,
> > how to save it in a disk?
> An easy way might be to write a simple basic program that did PEEKs at
> the range of memory used by your code and write that one byte at
> a time to a .PRG file opened as a sequential byte file.

An even easier way might be to use the built-in S command of the monitor:
S "filename",device,start,end
e.g., S "program",08,0401,04ff

That works also with the tape drive.  On the tape, sequential files are
written in a lot less efficient format than programs.  (The data is divided
into 192-byte blocks, which contain 187 bytes of payload.  There are long
sync pulse streams between the blocks to allow the tape motor to stop and


       Message was sent through the cbm-hackers mailing list

Archive generated by hypermail pre-2.1.8.