Thanks! That's how I remember it, that there's just a start address and you have to count to find the end address (and hope that the start address is also the execute address (unlike my R-S M100s for example, which have start, end and execute addresses in the header). That's also what I'd suggested on that other forum, but I thought perhaps someone knew of an already existing program that would effectively create a catalog of a tape, with names and start/end addresses; something for a rainy evening I suppose. mike ----- Original Message ----- From: "Craig Taylor" <email@example.com> To: <firstname.lastname@example.org> Sent: Sunday, August 08, 2010 2:41 AM Subject: Re: Cassette program header There's no catalog per se' on a tape so you'll have to do it the hard way : open the file on the tape, let it scan for it ... grab the first two bytes - they'll be in Low, High format and tell you the start address : eg: $00 $C0 would be $C000. Then keep looping while keeping a counter until the status variable indicates end of file (= a value fo 64 I think). The count is the total length of the file ... so start + length =>end. I would have posted code but it's been a long time since I've a) messed with tape and b) actually worried about tape file operations. On Sat, Aug 7, 2010 at 10:06 PM, MikeS <email@example.com> wrote: > Someone on another forum was asking how to find the start and end address > of > a PET machine language program on a cassette and I couldn't remember (if I > indeed ever did know ;-) ). > > Can any of the gurus here point us in the right direction? > > TIA, > > mike > > Message was sent through the cbm-hackers mailing list > -- ------------------------------------------- Craig Taylor firstname.lastname@example.org Message was sent through the cbm-hackers mailing list Message was sent through the cbm-hackers mailing listReceived on 2010-08-08 20:00:05
Archive generated by hypermail 2.2.0.