Using the data segment when needed show IMMEDIATE MOVE COMMANDS: a. Immediate to
ID: 3830264 • Letter: U
Question
Using the data segment when needed show IMMEDIATE MOVE COMMANDS: a. Immediate to register(byte) b. Immediate to register(word) c. Immediate to memory-direct(byte) d. Immediate to memory-direct(word) e. Immediate to memory-indirect(byte) f. Immediate to memory-indirect(word) Using the data segment and registers when needed show MEMORY MOVES: a. Memory to memory-direct(byte) b. Memory to memory-indirect(word) c. Move into register a byte value in the memory location two bytes from the starting address(direct)Explanation / Answer
2) Using data segment when needed show Immediate MOVE commands:
a) Immediate to Register (byte):
MOV AL, 0FFH;
MOV AH, 0FFH;
Move 8-bit data 0FFh to AX register or AL register directly.
b) Immediate to Register (word):
MOV AX, 0FFFFH
Move 16-bit data 0FFFFH to AX register directly.
c) Immediate to Memory-direct (byte):
MOV [1223H],0FFH;
Move 8-bit data 0FFh to memory location 1223H. Physical address of memory location denoted by
DS*10 + 1223h.
d) Immediate to Memory-direct (word):
MOV [1234H], 0FFFFH
Move 16-bit data 0FFFFh to memory location 1234h. Physical address of memory location denoted by
DS*10 + 1234H.
e) Immediate to Memory-indirect (byte):
MOV [SI], 0FFH;
Move 8-bit data 0FFh to memory location denoted by SI register. Physical address of memory location denoted by DS*10 + [SI].
f) Immediate to Memory-indirect (word):
MOV [SI], 0FFFFH;
Move 16-bit data 0FFFFh to memory location denoted by SI register. Physical address of memory location denoted by DS*10 + [SI].
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.