Hardware and environment monitor
some fixes to assembler