Assembly Language Help (alang.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
Int 15h Function 02h
                                             Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
  Interrupt:   15h     Function:   02h
 
  Title:       Read Cassette
 
  Description:                                                      [PC]
 
     Reads one or more 256-byte blocks of data from the cassette tape
     drive to memory. This function is available only on the PC and
     the PCjr. It is not supported on the PC/XT and all subsequent
     models.
 
     Input                                Output
 
     AH = 02h                             If function successful
     CX = Number of bytes to read           Carry flag: clear
     ES:BX = segment:offset of buffer       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)
                                    -♦-