把字节按位输出小函数(c内嵌asm)
2017-02-06
51
把字节按位输出小函数(c内嵌asm)2010-10-10为了调试处理单色位图的程序写的一个小函数,还不错哦,新手朋友大家一起来看看吧。int byte8_2_int(char a,char pos)// a 为要位所在的字节,pos为要输出哪一位{char reti=0;__asm{mov al, amov cl,posshr al,cland al,0x01cmp al,0x00jnz set1jmp A_Exitset1:xor ax,axmov al...