core & script & arch_x86: handle "addr" correctly