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 <dm561@torfree.net> 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 ctalkobt@ctalkobt.net Message was sent through the cbm-hackers mailing listReceived on 2010-08-08 08:00:08
Archive generated by hypermail 2.2.0.