DECODE CODE + IR CODE (Another working code)