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

Assembly programming

Name: Anonymous 2011-11-02 14:44

[code]
get_random_number:
    mov rax[seed]
    mov rcx, rax
    shl rax, 1
    inc rcx
    mov rdx, rax
    xor rax, rcx
    mov rcx, rdx
    mov rdi, 9
    shr rax, 2
    mov [seed], rax
    mov rax, rcx
    xor rax, rdx
    xor rax, rdi
    ret

Name: Anonymous 2011-11-02 17:04

You know, I'm realizing that x86 is a pretty bad instruction set, even for programmers.
I can't wait until ARM takes over so we can throw that shit. It's not like the ARMs are the greatest instruction sets ever, but hell, ARMv8 may even turn out pretty good.

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