3 ms·
Here is where Intel syntax breaks down: > mov eax, ebx ; (1) load one dword from the EBX register and store it in the EAX register Note how the comm
by flohofwoe 2y ago
Here is where Intel syntax breaks down:
> mov eax, ebx ; (1) load one dword from the EBX register and store it in the EAX register
Note how the comment says something entirely different than the assembler mnemonics ("load" instead of "move", and the source and target register in the comment are in different order than in the mnemonics).
My simple rule of thumb when I worked both on Z80 and 68k in the early 90s:
- LOAD dst WITH src
- MOVE src INTO dst
Intel syntax would make a lot more sense if it would use the Z80-style LD instead of MOV.
Not that I'm an AT&T syntax fan, but this one detail always bothered me. But I guess I should get used to it because ARM also got it "wrong" ;)