prep for merging LOADIR into write_jtag_irreg_extra