an algorithm for summing numbers using incrementation written in fake assembly
function add(a, b) push ebp sub ebp 8 mov eax, ebp mov ebx, ebp+4 loop: cmp ebx, ebx je done inc eax dec ebx jmp loop done: ret
Undescribed Horrific Abuse, One Victim & Survivor of Many Fri, 07 Jul 2023 17:44:17 -0700
an algorithm for summing numbers using incrementation written in fake assembly
function add(a, b) push ebp sub ebp 8 mov eax, ebp mov ebx, ebp+4 loop: cmp ebx, ebx je done inc eax dec ebx jmp loop done: ret