Copy operand2 to operand1.
The MOV instruction cannot:
Algorithm:
MOV REG, memory MOV memory, REG MOV REG, REG MOV memory, immediate MOV REG, immediate MOV SREG, memory MOV memory, SREG MOV REG, SREG MOV SREG, REG
ORG 100h MOV AX, 0B800h ; set AX = B800h (VGA memory). MOV DS, AX ; copy value of AX to DS. MOV CL, 'A' ; CL = 41h (ASCII code). MOV CH, 01011111b ; CL = color attribute. MOV BX, 15Eh ; BX = position on screen. MOV [BX], CX ; w.[0B800h:015Eh] = CX. RET