instruction-set

What exactly does the 3 operand imul instruction do in ia-32 assembly?

I'm reading the instruction imul 0xffffffd4(%ebp, %ebx, 4), %eax and I'm baffled by what it's doing exactly. I understand that imul multiplies, but I can't figure out the syntax. ...

Wrapping my head around hardware representations of numbers: a hypothetical two's complement question

This is a super naive question (I know), but I think that it will make for a good jumping off point into considering how the basic instruction set of a CPU actually gets carried out: In a two's complement system, you cannot invert the sign of the most negative number that your implementation can represent. The theoretical reason for thi...

A simple MIPS, question

I have a question, which is kind of confusing Write the MIPS instruction whose machine language encoding is: 0000 0011 0001 1001 0100 0000 0010 1010 Your answer must use register names (like $t0) not numbers; and must specify any immediate as a signed integer in decimal. The answer, in the back has something to do with slt. Can someon...