#“Write a pseudorandom number generator” Oh that's easy I'm just going to steal someone else's algorithm and implement it in assembly
Explore tagged Tumblr posts
random-random-things · 9 days ago
Text
I think I'm going to try and take my snake game to it's logical conclusion, x86_64 assembly. Honestly, I haven't done much in assembly. I've done what is effectively "hello world" level system level programming in it, embedding some assembly in a C program for a security course (both ~10+ years ago), and some very basic Gameboy Color programming (which is a Z80 clone not x86).
But I think it's all doable by me.
I need, what, system calls for the time to seed a pseudorandom number generator (and a pseudorandom number generator but that should be simple), system calls for read/writes for standard input and output, and system calls for memory mapping and unmapping. Rest of it is basically loops and if statements (like every program isn't basically loops and if statements).
1 note · View note