asm routines for vm objfile writing