Abstract
Passing argument to functions is simple when you have four or fewer non-floating-point arguments. You use rcx, rdx, r8, and r9 and provide shadow space on the stack before calling the function. After the call, you re-adjust the stack for the shadow space, and everything is fine. If you have more than four arguments, things are more complicated.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2019 Jo Van Hoey
About this chapter
Cite this chapter
Van Hoey, J. (2019). Functions in Windows. In: Beginning x64 Assembly Programming. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-5076-1_41
Download citation
DOI: https://doi.org/10.1007/978-1-4842-5076-1_41
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-5075-4
Online ISBN: 978-1-4842-5076-1
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books