mixed cpp and asm program (not working yet)