标题:
peek函数
[打印本页]
作者:
lhyanlh
时间:
2006-7-19 15:19
标题:
peek函数
如果用嵌C的汇编语言来写,该怎么写才能替代函数peek和peekb函数?
作者:
lhyanlh
时间:
2006-7-20 11:01
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;
}
作者:
darkradx
时间:
2006-7-20 13:13
哦
欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/)
Powered by Discuz! 2.5