this post was submitted on 21 May 2024
1602 points (98.8% liked)

Programmer Humor

32041 readers
1429 users here now

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

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 31 points 4 months ago (3 children)

Yeah, it's intentionally obscure. Basically, x86 assembly code is a way of telling a processor what to calculate, at a very low level.
So, it's similar to programming languages, but those actually get translated into x86 assembly code, before it's told to the processor. ("x86" is a certain processor architecture. Others exist, too, most prominently "ARM".)

But yeah, even with me knowing that much, I'd need to guess what ret and int3 might do.

Everyone knows jmp and nop, though, of course. ๐Ÿ™ƒ

[โ€“] [email protected] 21 points 4 months ago
[โ€“] [email protected] 2 points 4 months ago

That's the exact same thing. x86 Assembly Code isn't that hard(to know what it is, understanding it is something different),but I havent heard of the other stuff.

[โ€“] [email protected] 2 points 4 months ago (1 children)

return from subroutine, int3 would be something relating to interrupts off the top of my head.

[โ€“] [email protected] 3 points 3 months ago

Int3 is a special single-byte (CC, if I recall correctly) form of the INT instruction (which is CD imm8, I think) to raise an interrupt. Interrupt #3 is the debugging interrupt, so by overwriting any instruction with CC, you place a breakpoint there.