Top "Immediate-operand" questions

How can ARM's MOV instruction work with a large number as the second operand?

I just begin to study ARM assembly language, and am not clear about how to use MOV to transfer an …

assembly arm cpu-architecture machine-code immediate-operand
Is it possible to multiply by an immediate with mul in x86 Assembly?

I am learning assembly for x86 using DosBox emulator. I am trying to perform multiplication. I do not get how …

assembly x86 dos multiplication immediate-operand
Why use LDR over MOV (or vice versa) in ARM assembly?

I'm looking through this tutorial: http://www.cl.cam.ac.uk/freshers/raspberrypi/tutorials/os/ok01.html The first line …

assembly arm immediate-operand
MUL instruction doesn't support an immediate value

I've read a few tutorials and examples, but I cannot wrap my head around how the MUL instruction works. I've …

assembly x86 immediate-operand
Invalid constant after fixup?

For some reason, when I try to compile this bit of code, the compiler says syscall.s:72:invalid constant (0x172) …

assembly arm immediate-operand
Why would we use addiu instead of addi?

In MIPS assembly, what is the benefit of using addiu over addi? Isn't addiu unsigned (and will ruin our calculations?)

assembly mips add unsigned immediate-operand
Loading 32 bit values to a register in arm assembly

I want to load 1 32 bit hexadecimal directly into a register using arm assembly. mov r1,#0x6c617669 This cannot be …

assembly arm immediate-operand
Literals VS Immediate Operands

In the systems software course that I have this semester, we are being taught assemblers and other system software. While …

assembly literals systems-programming immediate-operand
Difference between movq and movabsq in x86-64

I'm a newcomer here and just starting to study assembly language. So please correct me if I'm wrong, or if …

assembly x86-64 att instructions immediate-operand
In a MIPS assembly `addi` instruction, how is a hexadecimal immediate interpreted?

Is there is a standard or recommendation for how the addi instruction (and others) should be interpreted in assembly, when …

assembly mips mars-simulator spim immediate-operand