如果用嵌C的汇编来写,该写怎么样的一段代码能替换peek和peekb函数?
unsigned npeekb(unsigned seg1, unsigned off1){ unsigned char c1,c2;
asm push ax asm push ds asm mov ds, seg1 asm mov di, off1 asm mov ax, ds:[di] asm mov c1, ah asm mov c2, al asm pop ds asm pop ax return c1*256 + c2; }