The following program, M09.BAT ( download ) demonstrates Beep API call, made from an assembly program: