Top "Sign-extension" questions

Clarifications on signed/unsigned load and store instructions (MIPS)

I can't seem to grasp the concept on these stuff, even with the help of Google and a textbook in …

assembly mips sign-extension zero-extension
assembly cltq and movslq difference

Chapter 3 of Computer Systems A Programmer's Perspective (2nd Edition) mentions that cltq is equivalent to movslq %eax, %rax. Why did …

assembly x86 x86-64 att sign-extension
What does movslq do?

I have trouble finding out what movslq instruction does. Google isn't very helpful and there is no such instruction on …

assembly x86-64 att sign-extension
When and why do we sign extend and use cdq with mul/div?

I had a test todayand the only question I didn't understand involved converting a doubleword to a quad word. That …

assembly x86 division integer-division sign-extension
Shifting the Sign extended constant in MIPS

Why do we shift by 2 the sign extended 16bit constant in branching instruction in MIPS? I am confused with this …

constants mips bit-shift 16-bit sign-extension
andi vs. addi instruction in MIPS with negative immediate constant

Assume $t2=0x55555550, then executing the following instruction: andi $t2, $t2, -1 $t2 becomes 0x0005550 This is confirmed by the …

assembly mips sign-extension zero-extension immediate-operand
Assembly Language: cbw

I am unsure of what the cbw command actually does. I have a snippet of code: mov ax,0FF0h …

assembly x86 division sign-extension