Cleaned up asm writing