Assemble program that moves immediate valuesconstants to eac
Solution
The MOV and MVN instructions can write a range of immediate values to a register.
In both ARM and Thumb, you do not have to decide whether to use MOV or MVN. The assembler uses whichever is appropriate. This is useful if the value is an assembly-time variable.
If you write an instruction with an immediate value that is not available, the assembler reports the error: Immediate n out of range for this operation.
In assembly programming of 8086, we can only load a data into a segment reg by, first loading it into a general purpose register and then we have move from this gen reg to the segment register
MOV al,ff : move contents to ff to al registers
INC al : Increment register register al
sub: subtracts the register al from 2
mov :moves the register al with dl
add dx,2 : adds 2 to dx
