Optimized Real-Time Assembly in a RISC Simulator (Full Report)