this post was submitted on 03 Aug 2024
1106 points (99.0% liked)

Programmer Humor

32396 readers
646 users here now

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

Rules:

founded 5 years ago
MODERATORS
1106
submitted 3 months ago* (last edited 3 months ago) by [email protected] to c/[email protected]
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 47 points 3 months ago* (last edited 1 month ago) (3 children)

[This comment has been deleted by an automated system]

[–] [email protected] 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.

[–] [email protected] 7 points 3 months ago

Missing ";" on line 148.

[–] [email protected] 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.

[–] [email protected] 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.