move function instructions to a separate header

part of moving all instructions into headers in instruction/*.h
move remaining instructions from qbrt/logic.h

they're all now in instruction/logic.h