-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 > On Fri, Apr 30, 2010 at 08:07:12AM -0500, Payton Byrd wrote: >> What is the correct way to determine if a drive exists on the IEC bus? > > I'm no specialist for IEC bus operations, but I would assume that you have to > check the status byte after an operation. Bit 7 flags a "device not present > error" according to my documentation. > > Please note that this problem has nothing to do with cc65, so verybody with > CBM file op knowledge should be able to help. The correct way to check only and not do anything else: OPEN LFN, DEVICE, 0: CLOSE LFN IF ST AND 128 THEN PRINT"DEVICE NOT PRESENT" Please note that the CLOSE is setting ST here and not the OPEN. - -- -soci- -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAkvb9MsACgkQyBOVYiJltRY32gCg0ArP5rKztyhICxFmJ58odiyn /IAAoJVQ5bZahVfiSthc5BhJ6Tk6z6tU =6YoY -----END PGP SIGNATURE----- ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo@musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail.Received on Sat May 1 11:32:51 2010
This archive was generated by hypermail 2.1.8 : 2010-05-01 11:32:53 CEST