move instrs from instr.cpp to instr.h, add logicalIp everywhere, fix llx picky compiler issue