Re: Transfer a 8250 diskette

From: Spiro Trikaliotis <ml-cbmhackers_at_trikaliotis.net>
Date: Tue, 8 Nov 2011 19:12:34 +0100
Message-ID: <20111108181234.GV30372@trikaliotis.net>
Hello Olaf,

* On Tue, Nov 08, 2011 at 11:16:39AM +0100 Rhialto wrote:
> On Sat 05 Nov 2011 at 19:05:14 +0100, Spiro Trikaliotis wrote:
> > IIRC, this is wrong. ST=64 is set when you just read the last byte.
> > Thus, you end with a file that is one byte shorter than the original
> > one.
> > 
> > So, you have to "print#3,a$;" *before* doing the check in line 50.
> > 
> > thus, change it to:
> > 
> > 45 print#3,a$;
> > 50 if st=64 then goto 80
> > 60 goto 40
> > 
> > Or, what is seen most often:
> > 
> > 50 print#3,a$;
> > 60 if st<>64 goto 80
> 
> Won't that PRINT# change the value of ST? Probably better to save ST
> after the GET# and check the saved value after the PRINT#.

Damn... Good catch. Yes, you're right.

That's because I used this loop mainly for getting the status, and here,
it is not a PRINT#, only a PRINT.

Regards,
Spiro.

-- 
Spiro R. Trikaliotis                              http://opencbm.sf.net/
http://www.trikaliotis.net/                     http://www.viceteam.org/

       Message was sent through the cbm-hackers mailing list
Received on 2011-11-08 19:00:08

Archive generated by hypermail 2.2.0.