#“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
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).
#I feel my opinions on what's difficult and easy are messed up#“Make a system call” haven't done that I'm going have to figure it out and debug it and half of it is in the OS that's going to be hard#“Write a pseudorandom number generator” Oh that's easy I'm just going to steal someone else's algorithm and implement it in assembly#Have you figured out I really hate dealing with user input and output yet?#I want to design data structures and mess around with them *in the abstract*#What you want to be able to put in your data? Fine *if you insist*#Put it in this well structured file and feed add it as a runtime argument#If one character is out of place the program with crash and it's your fault#Wait you want fancy easily readable output too? Fuuuuuuuck#Put it in Excel or something I don't care anymore#my post#coding#Like loops aren't just fancy if statements#Like if statements isn't just fancy jne
1 note
·
View note