• Как мне реализовать чтение и запись карт CRT-591?

    @mr-Slink Автор вопроса
    Нашел инструкцию
    "C" 37H PM
    "P" 37H PM st0 st1 st2 Result_data(n byte)
    "N" 37H PM e0 e1 e2
    Result_data(n byte)

    PM=39H: All three tracks simultaneous write
    ICRW write data to the card from the buffer.
    Before writing operation, ICRW need to write data to the buffer.
    If there is no data in buffer, ICRW sends back error code”02”.
    As for the write of data, a card move is performed in the state of reaching the front of MAG. head, and then ICRW moves card through MAG. head backward, and makes verify write (done by read operation), the verify write is performed only time in back read.
    For example:
    If card is in back of ICRW with card holding, ICRW carries it to front position of MAG. head, then moves it through MAG. head to rear to write card, and makes the verify read by the reverse direction.
    If writing is done correctly, ICRW sends positive response with three results including verify read (VF=30H)
    When write error occur, ICRW retries 2 times.
    When write error still occurs, ICRW sends negative response with three results including verify read, in this case, error code E1 and E0 are “22”.
    In case of card jamming, ICRW sends negative response.
    Result structure:
    Good write: “P”+“0”+ VF (3 characters)
    Bad write: “N”+“2X”(“20”“24”“25”“26”“27”“28”“29”)
    No write*: “X”+“00”
    (* This track is not designated by the parameter.)
    Ex)
    (1)#1 good, #2 good, #3 good
    Positive response “P0”+ “0” + 7EH +“P0”+“0”+ 7EH + “P0”+“0”
    (2) #1 good, #2 bad, #3 no write
    Negative response “P0”+ “0” + 7EH +“N”+“2X”+ 7EH + “X00”
    (Error code E1 and E0 : “22”)
    PM=40H: without writing, but clear the buffer
    Ответ написан
    Комментировать