ibm PCjr — 5-47

BIOS Cassette Logic Software Algorithms - Interrupt Hex 15 The CASSETTE routine is called by the request type in AH. The address of the bytes to be I read I from or I written I to the tape is specified by DS:BX and the number of bytes to be I read I or I written I is specified by CX. The actual number of bytes I read I is returned in DX. The read block and write block automatically tum the cassette motor on at the start and off at the end. The request types in AH and the cassette status descriptions follow:

Request Type Function AH =0 Turn Cassette Motor On AH = 1 Turn Cassette Motor Off AH =2 Read Tape Block Read CX bytes into memory starting at Address DS:BX Return actual number of bytes read in DX Return Cassette Status in AH AH = 3 Write Tape Block Write CX bytes onto cassette starting at Address DS: BX Return Cassette Status in AH AH Request Types BIOS Cassette Logic 5-47