NASM - The Netwide Assembler
NASM Forum => Programming with NASM => Topic started by: acer_f on December 07, 2019, 04:46:58 PM
-
asdasd
-
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)
-
Im not allowed to use C functions, thats why.