output-tap: partially implement TAP output

As explained in the procedure documentation string.