News for hackers. Stuff that matters.
Re:“Hello World” in assembly language on Linux by oso2k on Thursday April 23, 2015 @01:44AM (#9425171)
For me, I remember the notation by correlating it to its "high-level" equivalent.

   mov eax, [ ptr ]
is like

   eax = *ptr;  // or, eax = ptr[ 0 ];
The offset/multiplier memory addressing format for AT&T syntax was always more troubling for me. Coming from a TASM/MASM/NASM/PASCAL/x86 background first, it felt "icky" to put offsets outside of the "brackets" (or parenthesis, as it were) [0][1].

[0] https://github.com/lpsantil/rt0/blob/master/src/lib/00_start...

[1] https://github.com/lpsantil/rt0/blob/master/src/lib/00_start...

There are no comments on this comment yet.