Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
就像我说的:
这些代码:
mov EBX, 0 mov EBX, ofn.nFileOffset add EAX, EBX ;; error
得到错误:指令操作数的大小必须相同。
但是当我编辑时:
mov EBX, 0 mov BX, ofn.nFileOffset add EAX, EBX
没关系。我还测试了 Ollydbg 以跟踪寄存器,但我没有看到任何不同。
任何人都可以解释
ofn.nFileOffset 为 2 个字节。
和 mov 指令需要相同大小的 2 个参数。
你应该试试:
xor EBX, EBX mov BX, ofn.nFileOffset add EAX, EBX
现在你将拥有ofn.nFileOffset价值EBX
ofn.nFileOffset
EBX