Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.
Remove incorrect information.
Source Link
prl
  • 12.5k
  • 2
  • 16
  • 37

Instead of putting the move into ecx within the assembly code, put the operand in ecx directly:

 : : "c"(foo) 

You cannot put esp in the clobbers.

Instead of putting the move into ecx within the assembly code, put the operand in ecx directly:

 : : "c"(foo) 

You cannot put esp in the clobbers.

Instead of putting the move into ecx within the assembly code, put the operand in ecx directly:

 : : "c"(foo) 
Source Link
prl
  • 12.5k
  • 2
  • 16
  • 37

Instead of putting the move into ecx within the assembly code, put the operand in ecx directly:

 : : "c"(foo) 

You cannot put esp in the clobbers.