Thread
:
Whats wrong with this inline code?
View Single Post
Jul 13th, 2005, 7:01 AM
#
14
DaWei
Resident Grouch
Join Date: Jun 2005
Posts: 6,453
Rep Power:
10
LEA means "the address of MSG". That's what I want to pass to the function, not the first four bytes OF the message. It's the job of the function to perform the dereferencing. Don't mix up C and ASM in your head, they aren't the same.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner:
Grumpy on C++ Exceptions
DaWei on Pointers
DaWei
View Public Profile
Visit DaWei's homepage!
Find More Posts by DaWei