[問題] 想請問32-bit register的mov指令

看板ASM作者時間8年前 (2017/05/10 21:28), 8年前編輯推噓1(100)
留言1則, 1人參與, 最新討論串1/1
各位大哥晚安! 目前我在學習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://www.ptt.cc/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

05/17 20:28, , 1F
sizeof(long*)是多少?
05/17 20:28, 1F
文章代碼(AID): #1P4nLqqF (ASM)