4 ms·
As I recall, the "dword ptr" stuff was only necessary if the instruction was otherwise ambiguous. Using EAX means you are using a 32-bit destination. But some
by spc476 10y ago
As I recall, the "dword ptr" stuff was only necessary if the instruction was otherwise ambiguous. Using EAX means you are using a 32-bit destination. But something like:
move fs:[ebp-10],5
is ambiguous. Is that an 8-bit constant? 16 bits? 32-bits?
- Grom_PE 10y agoI believe MASM-style assemblers require "dword ptr" at all times and many disassemblers keep outputting that in unambiguous situations. Your example won't assemble because size can't be guessed, but this will: mov dword [fs:ebp-10], 5