NASM Forum > Other Discussion
sprintf_s plus printf
(1/1)
alCoPaUL:
imma translate this to NASM (should be ezpz) later coz i just finished this version for the other assembler..
snippet below
--- Code: ---;r9 // sprintf_s + printf
;r8 // by alCoPaUL [GIMO]
;rdx // 5/15/2024
;rcx // Brigada Ocho [b8] Productions
;call // rax
extrn printf:proc
extrn sprintf_s:proc
.code
main proc
sub rsp,28h
lea r8,[x]
lea rdx,[i]
lea rcx,[b]
call sprintf_s
mov r8, rax
lea rdx,[b]
lea rcx,[i]
call printf
add rsp,28h
ret
main endp
.data
x db 'Revelation 13'
........
........
--- End code ---
full file attached..
enjoy..
alCoPaUL:
NASM Version
--- Code: ---;r9 // sprintf_s + printf
;r8 // by alCoPaUL [GIMO]
;rdx // 5/15/2024
;rcx // Brigada Ocho [b8] Productions
;call // rax
global m
extern printf
extern sprintf_s
section .text
m:sub rsp,28h
lea r8,x
lea rdx,i
lea rcx,b
call sprintf_s
mov r8, rax
lea rdx,b
lea rcx,i
call printf
add rsp,28h
ret
section .data
x:db 'Revelation 13'
....
....
....
--- End code ---
full file attached..
alCoPaUL:
essential msvcrt.lib for win64asm...
Navigation
[0] Message Index
Go to full version