Working for R-type, SW, LW and BEQ