Move some ASM utils from OpenBlocks