-2

so can someone just do this tranlation for me? from intel assembly to at&t assembly? I'm learning gas syntax but having a little difficulty understanding some petty things...

mov ecx, dword ptr[esp + 0xC + 0xC]
Peter Cordes
  • 328,167
  • 45
  • 605
  • 847

1 Answers1

1

The GAS manual has a pretty good explanation of how to write memory references in AT&T syntax.

In this case, I think you'd want

movl (0xc + 0xc)(%esp), %ecx
Nate Eldredge
  • 48,811
  • 6
  • 54
  • 82