Support trap codes 4 and 5.
Make the assembler expose the underlying stream.