Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
count poistive and Nehative no.
section .data msg1: db 'Positive no.',0xa len1:equ $-msg1 msg2: db 'Negative no.',0xa len2:equ $-msg2 array: dw 2548h,9865h,0125h,9999h arrcnt: equ 4 pcnt db 0 ncnt db 0 section .bss disbuff resb 2 %macro mcall 4 mov rax,%1 mov rdi,%2 mov rsi,%3 mov rdx,%4 syscall %endmacro section .text global _start _start: mov rcx,arrcnt mov rsi,array up: bt word[rsi],15 jnc pnext inc byte[ncnt] jmp next pnext: inc byte[pcnt] next: inc rsi inc rsi loop up mcall 1,1,msg1,len1 mov bl,[pcnt] call display mcall 1,1,msg2,len2 mov bl,[ncnt] call display mov rax,60 mov rdi,00 syscall display: mov rdi,disbuff mov rcx,2 rr: rol bl,04 mov al,bl and al,0fh cmp al,09 jbe iii add al,07h iii: add al,30h mov [rdi],al inc rdi loop rr mcall 1,1,disbuff,5 ret
run
|
edit
|
history
|
help
0
Calculate Mean Variance in ASM
fdfdfdfdf
dfsaffdfdsaf
intfunct_64.asm
Positive And Negative Count In Array
gsfgfdsgfdgfdf
calculate_age
First Program Group Lab
displaying nine stars
fdafdsfdsfdsdadfas