microprocessor - 1C

logistic_guy

Senior Member
Joined
Apr 17, 2024
Messages
2,214
\(\displaystyle \bold{1.}\) What do the following MOV instructions accomplish?
\(\displaystyle \textcolor{indigo}{\bold{(a)}}\) MOV AX,BX
\(\displaystyle \textcolor{indigo}{\bold{(b)}}\) MOV BX,AX
\(\displaystyle \textcolor{indigo}{\bold{(c)}}\) MOV BL,CH
\(\displaystyle \textcolor{indigo}{\bold{(d)}}\) MOV ESP,EBP
\(\displaystyle \textcolor{indigo}{\bold{(e)}}\) MOV RAX,RCX
\(\displaystyle \bold{2.}\) List the \(\displaystyle 8\)-bit registers that are used for register addressing.
\(\displaystyle \bold{3.}\) List the \(\displaystyle 16\)-bit registers that are used for register addressing.
\(\displaystyle \bold{4.}\) List the \(\displaystyle 32\)-bit registers that are used for register addressing in the \(\displaystyle 80386\) through the Core\(\displaystyle 2\) microprocessors.
\(\displaystyle \bold{5.}\) List the \(\displaystyle 64\)-bit registers available to the \(\displaystyle 64\)-bit mode of the Pentium \(\displaystyle 4\) and Core\(\displaystyle 2\).
\(\displaystyle \bold{6.}\) List the \(\displaystyle 16\)-bit segment registers used with register addressing by MOV, PUSH, and POP.
\(\displaystyle \bold{7.}\) What is wrong with the MOV BL,CX instruction?
\(\displaystyle \bold{8.}\) What is wrong with the MOV DS,SS instruction?
\(\displaystyle \bold{9.}\) Select an instruction for each of the following tasks:
\(\displaystyle \textcolor{red}{\bold{(a)}}\) copy EBX into EDX
\(\displaystyle \textcolor{red}{\bold{(b)}}\) copy BL into CL
\(\displaystyle \textcolor{red}{\bold{(c)}}\) copy SI into BX
\(\displaystyle \textcolor{red}{\bold{(d)}}\) copy DS into AX
\(\displaystyle \textcolor{red}{\bold{(e)}}\) copy AL into AH
\(\displaystyle \textcolor{red}{\bold{(f)}}\) copy R\(\displaystyle 8\) into R\(\displaystyle 10\)
\(\displaystyle \bold{10.}\) Select an instruction for each of the following tasks:
\(\displaystyle \textcolor{blue}{\bold{(a)}}\) move \(\displaystyle 12\)H into AL
\(\displaystyle \textcolor{blue}{\bold{(b)}}\) move \(\displaystyle 123\)AH into AX
\(\displaystyle \textcolor{blue}{\bold{(c)}}\) move \(\displaystyle 0\)CDH into CL
\(\displaystyle \textcolor{blue}{\bold{(d)}}\) move \(\displaystyle 1000\)H into RAX
\(\displaystyle \textcolor{blue}{\bold{(e)}}\) move \(\displaystyle 1200\)A\(\displaystyle 2\)H into EBX
 
\(\displaystyle \bold{1.}\) What do the following MOV instructions accomplish?
\(\displaystyle \textcolor{indigo}{\bold{(a)}}\) MOV AX,BX
\(\displaystyle \textcolor{blue}{\text{Copy the value of BX to AX}}\)
\(\displaystyle \textcolor{indigo}{\bold{(b)}}\) MOV BX,AX
\(\displaystyle \textcolor{red}{\text{Copy the value of AX to BX}}\)
\(\displaystyle \textcolor{indigo}{\bold{(c)}}\) MOV BL,CH
\(\displaystyle \textcolor{green}{\text{Copy the value of CH to BL}}\)
\(\displaystyle \textcolor{indigo}{\bold{(d)}}\) MOV ESP,EBP
\(\displaystyle \textcolor{indigo}{\text{Copy the value of EBP to ESP}}\)
\(\displaystyle \textcolor{indigo}{\bold{(e)}}\) MOV RAX,RCX
\(\displaystyle \textcolor{grey}{\text{Copy the value of RCX to RAX}}\)
 
\(\displaystyle \bold{2.}\) List the \(\displaystyle 8\)-bit registers that are used for register addressing.

\(\displaystyle \textcolor{blue}{\text{AL, AH, BL, BH, CL, CH, DL, and DH}}\)
 
\(\displaystyle \bold{3.}\) List the \(\displaystyle 16\)-bit registers that are used for register addressing.

\(\displaystyle \textcolor{blue}{\text{AX, BX, CX, DX, SP, BP, SI, DI, CS, DS, ES, SS, FS, and GS}}\)
 
\(\displaystyle \bold{4.}\) List the \(\displaystyle 32\)-bit registers that are used for register addressing in the \(\displaystyle 80386\) through the Core\(\displaystyle 2\) microprocessors.

\(\displaystyle \textcolor{blue}{\text{EAX, EBX, ECX, EDX, ESP, EBP, EDI, and ESI}}\)
 
\(\displaystyle \bold{5.}\) List the \(\displaystyle 64\)-bit registers available to the \(\displaystyle 64\)-bit mode of the Pentium \(\displaystyle 4\) and Core\(\displaystyle 2\).

\(\displaystyle \textcolor{blue}{\text{RAX, RBX, RCX, RDX, RSP, RBP, RSI, RDI and R8—R15}}\)
 
\(\displaystyle \bold{6.}\) List the \(\displaystyle 16\)-bit segment registers used with register addressing by MOV, PUSH, and POP.

\(\displaystyle \textcolor{blue}{\text{CS, DS, ES, SS, FS, and GS}}\)
 
\(\displaystyle \bold{7.}\) What is wrong with the MOV BL,CX instruction?

It is invalid to copy the value of a \(\displaystyle \textcolor{blue}{16}\)-bit register to an \(\displaystyle \textcolor{blue}{8}\)-bit register.
 
\(\displaystyle \bold{8.}\) What is wrong with the MOV DS,SS instruction?

\(\displaystyle \textcolor{blue}{\text{You cannot move values directly between two segment registers.}}\)
 
\(\displaystyle \bold{9.}\) Select an instruction for each of the following tasks:
\(\displaystyle \textcolor{red}{\bold{(a)}}\) copy EBX into EDX
\(\displaystyle \textcolor{blue}{\text{MOV EDX, EBX}}\)
\(\displaystyle \textcolor{red}{\bold{(b)}}\) copy BL into CL
\(\displaystyle \textcolor{green}{\text{MOV CL, BL}}\)
\(\displaystyle \textcolor{red}{\bold{(c)}}\) copy SI into BX
\(\displaystyle \textcolor{indigo}{\text{MOV BX, SI}}\)
\(\displaystyle \textcolor{red}{\bold{(d)}}\) copy DS into AX
\(\displaystyle \textcolor{orange}{\text{MOV AX, DS}}\)
\(\displaystyle \textcolor{red}{\bold{(e)}}\) copy AL into AH
\(\displaystyle \textcolor{grey}{\text{MOV AH, AL}}\)
\(\displaystyle \textcolor{red}{\bold{(f)}}\) copy R\(\displaystyle 8\) into R\(\displaystyle 10\)
\(\displaystyle \textcolor{purple}{\text{MOV R10, R8}}\)
 
\(\displaystyle \bold{10.}\) Select an instruction for each of the following tasks:
\(\displaystyle \textcolor{blue}{\bold{(a)}}\) move \(\displaystyle 12\)H into AL
\(\displaystyle \textcolor{red}{\text{MOV AL, 12H}}\)
\(\displaystyle \textcolor{blue}{\bold{(b)}}\) move \(\displaystyle 123\)AH into AX
\(\displaystyle \textcolor{green}{\text{MOV AX, 123AH}}\)
\(\displaystyle \textcolor{blue}{\bold{(c)}}\) move \(\displaystyle 0\)CDH into CL
\(\displaystyle \textcolor{grey}{\text{MOV CL, 0CDH}}\)
\(\displaystyle \textcolor{blue}{\bold{(d)}}\) move \(\displaystyle 1000\)H into RAX
\(\displaystyle \textcolor{indigo}{\text{MOV RAX, 1000H}}\)
\(\displaystyle \textcolor{blue}{\bold{(e)}}\) move \(\displaystyle 1200\)A\(\displaystyle 2\)H into EBX
\(\displaystyle \textcolor{orange}{\text{MOV EBX, 1200A2H}}\)
 
Top