Instruction Set of 8086 Processor Page 61 Session Objectives
At the end of this session, the learner will be able to:
List the different class of instructions of 8086 processor Identify the data transfer instructions of 8086 Identify the arithmetic instructions of 8086 Compare the 8085 instructions with 8086 instruction set
Teaching Learning Material
Board Presentations Chart Data sheets of Intel 8086 processor
Page 62 Instruction Set of 8086 Processor Session Plan
Time (in min) Content Learning Aid / Methodology Faculty Approach Typical Student Activity Skill/Competency Developed 10 Recap: Instruction Set of 8085 Processor Quiz Facilitates Participates Answers Knowledge Comprehension Intrapersonal 20 Data Transfer Instructions Board Activity Chart Activity Unspoken Word Explains Facilitates Monitors Listens Participates Knowledge Comprehension Intrapersonal Interpersonal Kinematic 20 Arithmetic Instructions Board Activity Chart Activity Unspoken Word Explains Facilitates Monitors Listens Participates Knowledge Comprehension Intrapersonal Interpersonal Kinematic 10 Conclusion and Summary Tit-for-Tat Activity Facilitates Monitors Prepares and Presents Knowledge Comprehension Intrapersonal Interpersonal Kinematic
Instruction Set of 8086 Processor Page 63 Session Inputs
Recap: Instruction Set of Intel 8085 Processor
The learners are already familiar with instruction set of Intel 8085, we can reiterate the same with a quiz activity.
Suggested Activity: Quiz
We can divide the learners into two teams; instruct each team to prepare 5 questions on the instruction set of 8085 processor. After 5 minutes of preparation, each team will ask the other team the questions prepared and we can facilitate the score. Sample questions could be: 1. Name the components of an instruction. 2. Illustrate the working of any two data movement instructions of 8085 processor. 3. Differentiate between internal and external data movement instructions of 8085 processor. 4. Narrate any two comparison instructions with examples.
Now that the learners have revisited the 8085 instruction set, Let us now list the 8086 instruction set.
The instruction set of 8086 can be categorized into: Data Transfer Instructions Arithmetic Instructions Logical Instructions Branching and Looping Instructions Process Control Instructions
In this session we will understand the data transfer and arithmetic instructions. The other instructions will be discussed in the forthcoming sessions.
Page 64 Instruction Set of 8086 Processor Data Transfer Instructions of 8086
We can prepare a chart which lists all the data transfer instructions of 8086 processor. A sample chart listing four data transfer instructions of 8086 processor is given below:
Instruction Explanation MOV Move the contents from memory to registers and vice versa PUSH Push the contents of the program memory into the stack memory POP Put the contents of stack memory back to program memory XCHG Exchange contents between two registers or memory locations
We can similarly extend this chart for the remaining data transfer instructions like XLAT, IN, OUT, LEA, LDS, LES, LSS, LGS, LFS, LAHF and SAHF. Also, include the string instructions like LODS, STOS, MOVS, INS and OUTS in the chart.
To quickly summarize all the data transfer instructions of 8086, we could conduct an activity.
Suggested Activity: Unspoken Word
Based on the seating arrangement of the learners, one learner will explain an operation and the next learner shall identify the instruction set and write it on the board with an example as shown:
Instruction Operation XCHG AL, CL Exchanges the contents of AL Register with CL register
Now that we have given details of the data transfer instructions, we could provide the details on arithmetic instructions.
Instruction Set of 8086 Processor Page 65 Arithmetic Instructions
As per the guidelines provided for data transfer instructions, we could also prepare a chart that includes the arithmetic instructions of 8086 processor.
Instruction Explanation ADD, SUB Add, subtract byte or word INC, DEC Increment, decrement byte or word MUL, DIV Multiply, divide byte or word (unsigned) CBW, CWD Convert byte to word, word to double word
We can similarly extend the above chart for the remaining arithmetic instructions like ADC, SBB, NEG, CMP, IMUL, IDIV, AAA, AAS, AAM, AAD, DAA and DAS.
To summarize the arithmetic instructions of 8086, we could conduct an activity similar to the previous one.
Suggested Activity: Unspoken Word
Based on the seating arrangement of the learners, one learner will explain an operation and the next learner shall identify the instruction set and write it on the board with an example as shown:
Instruction Operation DAA While addition the decimal needs adjustments
Page 66 Instruction Set of 8086 Processor Conclusion
To conclude the data transfer and arithmetic instructions of 8086, we can conduct an activity to compare it with 8085 instruction set.
Suggested Activity: Tit-for-Tat
Form 2 teams A and B. After 3 minutes of team discussion, team A shall list on the board the 8085 data transfer and arithmetic instructions. After another 3 minutes of discussion, team B shall write the equivalent 8086 instructions for the displayed list.
Instruction Set of 8086 Processor Page 67 Summary
In this session, we learnt to:
Classify the instruction set of 8086 processor. Understand and list the 8086 data transfer instructions. Identify and illustrate the operation of 8086 arithmetic instructions. Compare 8085 and 8086 instruction sets.
Page 68 Instruction Set of 8086 Processor Assignments
1. What is a short J MP?
2. Which type of J MP instruction (short, near or far) assembles for the following: if the distance is 0210H bytes if the distance is 0020H bytes if the distance is 100000H bytes
3. Write a procedure that sums EAX, EBX, ECX and EDX. If a carry occurs, place logic 1 in EDI. If no carry occurs place a 0 in EDI.
4. The sum should be found in EAX after the execution of your procedure.
5. Refer to ARM processor data sheet and identify the different classes of instructions.