作者sugizo656 ()
看板ASM
标题[问题] 想请问32-bit register的mov指令
时间Wed May 10 21:28:17 2017
各位大哥晚安!
目前我在学习asm,碰到了一个瓶颈试不出来
您的一个分享是我学习的一大步,先感谢了!!!
(有看过80386 chip dataseet,跟网路教学)
我是想要把一个指标复制到32-bit registers EAX 中,
却一直得到error C2415: improper operand type。
用far pointer结果也是一样
编译环境: 16-bit compiler,compiler's cpu target:80386
程式码
int XmsQueryFreeExtendedMemory(
unsigned long far *puiLargestFreeBlock,
unsigned long far *puiTotalFree)
{
unsigned long uiLargestFreeBlock;
_asm
{
mov ah, 88h
call [XMSControl]
push esi
#if 1
mov esi, puiLargestFreeBlock
#else
mov esi, uiLargestFreeBlock
#endif
mov DWORD PTR [esi], eax
}
}
谢谢各位大哥!!!
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 110.28.225.158
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/ASM/M.1494422900.A.D0F.html
※ 编辑: sugizo656 (110.28.225.158), 05/10/2017 21:33:49
※ 编辑: sugizo656 (110.28.225.158), 05/10/2017 21:35:31
※ 编辑: sugizo656 (110.28.225.158), 05/10/2017 21:36:28
1F:推 soheadsome: sizeof(long*)是多少? 05/17 20:28