1
Programming with NASM / Re: How many for loops are possible in nasm ?
« Last post by Roddy MacPhee on Today at 04:05:30 PM »with no restrictions or limitations.How do I print rdi to screen . I'm on android if that matters.
with no restrictions or limitations.How do I print rdi to screen . I'm on android if that matters.
;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'
......
.....
....
;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'
....
....
....
;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'
........
........