asm->mid: get prefix from asm automatically