updated ROM; fixed stack-related stuff in the simulator