Int 15H [PC] Function 02H Read cassette

Reads one or more 256-byte blocks of data from the cassette tape drive to memory.

Call with:

AH = 02H

CX = number of bytes to read

ES:BX = segment:offset of buffer

Returns:

If function successful

Carry flag = clear

DX = number of bytes actually read

ES:BX = segment:offset + 1 of last byte read

If function unsuccessful

Carry flag = set

AH = status

01H if CRC error

02H if bit signals scrambled

04H if no data found

80H if invalid command

86H if cassette not present

Note:

This function is available only on the PC and on the PCjr. It is not supported on the PC/XT and all subsequent models.