move is_register helper to nasm.h