From: Jeremy (earth1dome1_at_yahoo.com)
Date: 2008-02-02 04:53:18
email@example.com wrote: > Hello! I recall in the good old days, whenever I OPENed a file (of > course after SETLFSing and SETNAMming), I checked the status channel to > verify whether the file opened properly and I vaguely recall that I was > doing it because even if I expected OPEN to return some error > conditions, I always had problems with it and resorted to the status > channel. Do you know a better way to check for OPEN success/failure? > > P.S. I was using C64/1541 but I believe the same is applicable to most > if not all CBM CPU/drive combinations > > > Message was sent through the cbm-hackers mailing list How about reading the Error Channel off open15,8,15? Use equivalent Kernal vectors to do this setup.. The basic equivalent is open15,8,15:get#15,A%:close15. A% or A$ or the equivalent would tell you if it was working or not.. How about using the ReadST command? its at $ffb7.. jeremy firstname.lastname@example.org ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ Message was sent through the cbm-hackers mailing list
Archive generated by hypermail pre-2.1.8.