NASM - The Netwide Assembler
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Home
Help
Search
Calendar
Login
Register
NASM - The Netwide Assembler
»
NASM Forum
»
Programming with NASM
»
How to fix the output of String ?
« previous
next »
Print
Pages: [
1
]
Author
Topic: How to fix the output of String ? (Read 10885 times)
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
»
Logged
T145
Jr. Member
Posts: 12
Country:
Hacker, Jacker & All-Around Gobsmacker
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
Logged
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.
Logged
Print
Pages: [
1
]
« previous
next »
NASM - The Netwide Assembler
»
NASM Forum
»
Programming with NASM
»
How to fix the output of String ?