• Ben Avison's avatar
    Various fixes to bugs both new and old. · 7bcccf3d
    Ben Avison authored
    Detail:
      * Byte sex swap fix applied to the code to set the drive speed
      * SCSI-3 spec says that ATAPI packets have to be padded with 0 bytes;
        routines changed accordingly (though this does mean we now have to do
        a tedious copy onto the stack for every operation)
      * All disc errors returned from ADFS_ATAPIOp were accidentally ignored!
      * Internal disc number wasn't being shifted left by 15 bits before being
        used to do a REQUEST SENSE command packet, resulting in it doing a
        reset of any slave devices instead of sending a PACKET command
      * TARGETERROR error numbers weren't being correctly constructed in
        ATAPI_Op (it was using the error pointer instead of the sense key)
      * Worked round another assumption of flag preservation in CD_ SWIs
      * Fixed pathname of messages file to include $
    Admin:
      Tested on Tungsten.
    
    Version 1.30. Tagged as 'ATAPI-1_30'
    7bcccf3d
VersionASM 1011 Bytes