Author Topic: How to fix the output of String ?  (Read 157 times)

Offline acer_f

  • Jr. Member
  • *
  • Posts: 6
How to fix the output of String ?
« on: December 07, 2019, 04:46:58 PM »
asdasd
« Last Edit: December 08, 2019, 10:49:14 AM by acer_f »

Offline T145

  • Jr. Member
  • *
  • Posts: 8
  • Country: 00
  • Hacker, Jacker & All-Around Gobsmacker
    • CodeReview
Re: How to fix the output of String ?
« Reply #1 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

Offline acer_f

  • Jr. Member
  • *
  • Posts: 6
Re: How to fix the output of String ?
« Reply #2 on: December 07, 2019, 05:57:41 PM »
Im not allowed to use C functions, thats why.