0
popl  $0x3fffc0

I believe it's incorrect because it means that you are popping out a number rather than its address, which is what you want. Please let me know if I am understanding this correctly. Thank you.

5
  • Not sure what architecture you are referring to here, and I'm not an assembly guru, but I don't think immediate value as pop operand is possible on most architectures.
    – Rafael
    Oct 22, 2018 at 1:24
  • 4
    Which architecture is this? Oct 22, 2018 at 1:31
  • It's possible to pop to a memory address. Could this be at&t syntax for that? Oct 22, 2018 at 3:10
  • 2
    @DavidWohlferd : AT&T syntax for popping to a memory operand would be popl 0x3fffc0 . popl $0x3fffc0 should not be encodable. Oct 22, 2018 at 4:18
  • retagged on the assumption that this is x86 with AT&T syntax. Please correct if that's not what you meant, but no of course you can't use an immediate as a destination for any instruction. You can use a memory address, though. Oct 22, 2018 at 7:05

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.