Implemented TRAP and RET instructions