Implement OUTPUT instruction