Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
lab2_2.asm
global _start section .data x : dq 4390 buff : db 0 section .text print: mov rax,rdi mov r10,10 mov r13, 0 loop: xor rdx,rdx inc r13 div r10 push rdx test rax,rax jnz loop printpop: pop r9 add r9,48 mov [buff],r9 mov rax,1 mov rdi,1 mov rsi,buff mov rdx,1 syscall dec r13 test r13,r13 jnz printpop ret _start: mov rax, [x] mov r10,10 mov r12, 0 loop1: xor rdx,rdx DIV r10 add r12,rdx test rax,rax jnz loop1 mov rdi,r12 call print mov rax, 60 xor rdi, rdi syscall
run
|
edit
|
history
|
help
0
Joker
fdfdfdfdf
Psn2
p1.asm
calculate_age
Disition
dsafdfsdafds
dsadasfdsfds
dKleinhen Lab #1
countingnumbers