hi

a fdc bug

with this listing

10 OUT (&FA7E),1:'Motor on
20 FOR i=1 TO 1000:NEXT:'tempo
30 OUT (&7B7F),4
40 OUT (&FB7F),2-peek(&A700)
50 OUT (&FA7E),0:'Motor off
60 status=INP(&FB7F):PRINT status
70 nodisk=status AND 32
80 wrprot=status AND 64
90 IF nodisk=0 THEN PRINT "No disk in drive":END
100 IF wrprot=64 THEN PRINT "disk protected":END

return values on real cpc 6128

122
prot disk
90
no disk
50
ok

Last edited by Breiztiger; 07/16/17 03:16 PM.