Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
__init
on Nov 13, 2022
|
parent
|
context
|
favorite
| on:
AT&T Syntax versus Intel Syntax (2001)
Most assemblers for Intel syntax will let you write:
add eax, [4]
if you desire. Indeed, many disassemblers will follow suit in unambiguous cases. IDA, for example, does this.
colejohnson66
on Nov 13, 2022
[–]
The only time “DWORD PTR” is required is when (1) you're working with old assemblers, or (2) you're using a memory operand with an immediate:
add eax, [4] ; inferred add [eax], 4 ; ambiguous add DWORD [eax], 4 ; explicit
A disassembler may output it when not necessary, however.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: