instruction simulation