NASM - The Netwide Assembler

NASM Forum => Programming with NASM => Topic started by: acer_f on December 07, 2019, 04:46:58 PM

Title: How to fix the output of String ?
Post by: acer_f on December 07, 2019, 04:46:58 PM
asdasd
Title: Re: How to fix the output of String ?
Post by: T145 on December 07, 2019, 05:28:59 PM
Rather than making a kernel call to print, why not just leverage the fact you're in 64 bit land use printf?
You can pass your normal string in rcx, then other data in rdx, r8 and r9 respectively.
Just place extern printf above your data and include C libs when you're linking.

This may also help you: https://codereview.stackexchange.com/questions/204902/checking-if-a-number-is-prime-in-nasm-win64-assembly (https://codereview.stackexchange.com/questions/204902/checking-if-a-number-is-prime-in-nasm-win64-assembly)
Title: Re: How to fix the output of String ?
Post by: acer_f on December 07, 2019, 05:57:41 PM
Im not allowed to use C functions, thats why.