this post was submitted on 03 Aug 2024
1110 points (99.1% liked)

Programmer Humor

32581 readers
432 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
1110
submitted 3 months ago* (last edited 3 months ago) by sag@lemm.ee to c/programmerhumor@lemmy.ml
 
you are viewing a single comment's thread
view the rest of the comments
[–] skullgiver@popplesburger.hilciferous.nl 47 points 3 months ago* (last edited 2 months ago) (3 children)

[This comment has been deleted by an automated system]

[–] leisesprecher@feddit.org 19 points 3 months ago (2 children)

Assembly is hard, because you need to understand your problem on multiple levels and get absolute zero guidance by compilers.

Even C guides you a tiny bit and takes away some of the low level details, so you have more mental capacity to actually solve your problem.

Oh, and you have a standard library. Assembly seems to involve solving everything yourself. No simple function call to truncate a string or turn a char array to uppercase.

[–] gens@programming.dev 7 points 3 months ago

Missing ";" on line 148.

[–] CanadaPlus@lemmy.sdf.org 6 points 3 months ago (1 children)

I wouldn’t be able to write Rollercoaster Tycoon in assembly because keeping track of all that code in assembly files must be hell, but people pretending like you need to be some kind of wizard to write assembly code are exaggerating.

Well, they've got a point for the bigger machine codes. Just the barebones specification for x86 is a doorstopper IIRC.

From what I've heard, writing big stuff in assembly comes down to play-acting the compiler yourself on paper, essentially.

[–] luciferofastora@lemmy.zip 1 points 3 months ago (1 children)

Having toyed with video game reverse engineering, I definitely feel like I ought to learn a bit more. I understand mov, pointers and registers, and I think there was some inc and add in the code I read to try to figure out base pointers and pointer paths (using Cheat Engine), but I think knowing some more would serve me well there.

[–] skullgiver@popplesburger.hilciferous.nl 1 points 3 months ago* (last edited 2 months ago)

[This comment has been deleted by an automated system]