x86_64 registers rax/eax/ax/al overwriting full register contents [duplicate]

The processor model as documented in the Intel/AMD processor manual is a pretty imperfect model for the real execution engine of a modern core. In particular, the notion of the processor registers does not match reality, there is no such thing as a EAX or RAX register. One primary job of the instruction decoder is … Read more

What are SP (stack) and LR in ARM?

LR is link register used to hold the return address for a function call. SP is stack pointer. The stack is generally used to hold “automatic” variables and context/parameters across function calls. Conceptually you can think of the “stack” as a place where you “pile” your data. You keep “stacking” one piece of data over … Read more

What does “rep; nop;” mean in x86 assembly? Is it the same as the “pause” instruction?

rep; nop is indeed the same as the pause instruction (opcode F390). It might be used for assemblers which don’t support the pause instruction yet. On previous processors, this simply did nothing, just like nop but in two bytes. On new processors which support hyperthreading, it is used as a hint to the processor that … Read more

Why does Intel hide internal RISC core in their processors?

No, the x86 instruction set is certainly not deprecated. It is as popular as ever. The reason Intel uses a set of RISC-like micro-instructions internally is because they can be processed more efficiently. So a x86 CPU works by having a pretty heavy-duty decoder in the frontend, which accepts x86 instructions, and converts them to … Read more

Learning assembly [closed]

I have done this many times and continue to do this. In this case where your primary goal is reading and not writing assembler I feel this applies. Write your own disassembler. Not for the purpose of making the next greatest disassembler, this one is strictly for you. The goal is to learn the instruction … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)