Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

"Favor readability over bare-metal."

Name: Anonymous 2015-05-20 2:31

Name: Anonymous 2015-05-23 9:30

>>13
Your code is bloated and does not follow any calling convention.

Here, this follows X86_64 convention and only takes 13 bytes.

; first arg: pointer to null terminated string to check for dubs
; return value: 0 if dubs, non 0 if not dubs
dubs:
push rax
lodsb
test al, al
jz .L1
pop rdx
jmp dubs
.L1: pop rax
xor al, dl
ret

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List