pic: refactor interrupt line, add register of interrupt lines
sim: add interrupt regs simulation
pic: refactor interrupt line tb