Assembler and simulator