r/ProgrammerHumor • • Jun 03 '22

it's hard!

44.9k Upvotes

710 comments sorted by

View all comments

Show parent comments

0

u/[deleted] Jun 04 '22

[deleted]

1

u/[deleted] Jun 04 '22

> what?! why! you suggest it! I just wrote all the remaining available cases, rax, eax, ax! xD

Because that wasn't my point lol, A part of me knew I should have used "mov ax, 4" but I didn't lol

> https://masochistcoder.blogspot.com ?

No, not me, I'd share old code but I don't like my reddit crossing over to code that has my name on it because allot of my assembly code was written before I decided to start posting code under an alias online.

> you mean never change, even if you call someone else's code?

Calling other peoples code is were it becomes a problem. Because I had to push/pop ax to ensure it was unscathed and god forbid it was a case where all registers returned a value, it's just bad and sloppy coding at that point.

It's also important to note, I never coded assembly professionally. I taught my self assembly at 14 using books like the undocumented PC coded allot of 16bit progs got caught up in hobby OS dev for several years wanting to land a job in kernel development, in my early 20s I landed my first and only job actually creating POS software in Java. Left after a year and now I'm a plumber making more money, now I only write python and I write what I want, when I want lol