STA
if ((status1 & STA) != 0)
if (status1 & STA) {
if ((status1 & (DPE|SSE|RMA|RTA|STA|DPR)) == 0) {
if ((targpcistat & STA) != 0)