Update decode.cc

Implemented a bunch of of functions. Still need to do a few. The ones with the OPA's at the end.