Back to main

 

Function 20 and its subfunctions - MIDI interface

 

Subfunction 1 - reset

Options:

  * eax = 20 - function number

  * ebx = 1 - number of subfunction

 

Subfunction 2 - output bytes

Options:

  * eax = 20 - function number

  * ebx = 2 - subfunction number

  * cl = byte for output

Return value (the same for both subfunctions):

  * eax = 0 - successful

  * eax = 1 - the base port is not defined

 

Remarks:

  The base port must first be defined by calling subfunction 1 of function 21.

 

Constants for registers:

  eax - SF_MIDI (20)

  ebx - SSF_RESET (1), SSF_OUTPUT (2)