
MOV SBUF,#0      ;send START-byte

;Wouldnt be nicer to make the MIDI verification here?

JNB TI,$         ;byte sent?
CLR TI           ;prepare UART for next sending
MOV TEMP,#4
DJNZ TEMP,$      ;2 stop bits >= 8µsec