Tag Archives: asm

HOWTO use NASM function for Windows 64-bits

Writing 64-bits assembler functions for Windows is quite different from the ones written for Linux or even for Windows 32 bits. Even when using NASM for a simplified approach, you shall care about a few details. First steps The first step is to add the following lines at the very beginning of the .asm file: 64 bits default rel We need the ‘default rel’ to … Continue reading HOWTO use NASM function for Windows 64-bits »

HOWTO easily use NASM into windows C/C++ applications

After installed NASM and configured our VisualStudio to use it, we are now able to use it in our C/C++ projects. Assembler usually has a huge advantage in terms of performance at the cost of rigid code usage. You cannot use it in both 32-bits and 64-bits versions of the same C/C++ code.  Each version shall fulfill several different ‘environmental’ requirements that cannot be ignored … Continue reading HOWTO easily use NASM into windows C/C++ applications »