Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1.If the 16 MHz crystal is connected to X1, X2? What is the clock frequency? 2.

ID: 3622789 • Letter: 1

Question

1.If the 16 MHz crystal is connected to X1, X2? What is the clock frequency?
2. Write the 8086 instruction which will perform the following operations:
a. Copy AL to BL
b. Increment the contents of CX by 1
c. Decrement SP by 1
d. Mask the lower 4 bits of BL
3. Construct the binary code for each of the following 8086 instructions:
a. MOV [AX],CX
b. ROR AX,1

Explanation / Answer

A) Copy AL to BL MOV Command is used to copy data from one register to anther. mov bl al ;Copy AL to BL B)Increment the contents of CX by 1 INC Command used to increment by 1 inc cx ;Increment the contents of CX by 1 C)Decrement SP by 1 DEC Command used to decrement by 1 dec sp ;Decrement SP by 1 D) Mask the lower 4 bits of BL Suppose BL = 00101100. However you only need the lower four bits (i.e. 1100) mov bl, 00101100b mov bh, 00001111b and bl, bh ; --> now bl = 00001100b 3. Construct the binary code for each of the following 8086 instructions: a. MOV [AX],CX b. ROR AX,1 To Construct binary, i'll prefer you to use Assembler (probably NASM) and generate binary of Assembly code. Or if you want to do by hand, just grab a copy of instruction set sheet for your microprocessor, understand your addressing modes, and convert in hexadecimal notation or binary notation.