Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Count Odd Numbers Below N in x86_64 Nasm
section .text
global oddcnt
; <-- EAX oddcnt(EDI n) -->
xor eax, eax
mov edx, 0
mov eax, edi
mov ebx, 2
div ebx
; -----> endof oddcnt <-----
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment