Presentation is loading. Please wait.

Presentation is loading. Please wait.

Judul Mata Kuliah Judul Pokok Bahasan 1/total Data Movement Instructions.

Similar presentations


Presentation on theme: "Judul Mata Kuliah Judul Pokok Bahasan 1/total Data Movement Instructions."— Presentation transcript:

1 Judul Mata Kuliah Judul Pokok Bahasan 1/total Data Movement Instructions

2 Judul Mata Kuliah Judul Pokok Bahasan 2/total MISCELLANEOUS DATA TRANSFER INSTRUCTION XCHG –The XCHG (exchange) instruction exchanges the contents of a register to any other register or memory location –Table 4.16 list the fomrs of the XCHG instructions4.16 LAHF and SAHF –These instructions allowed 8085 software to be translated into 8086 software by a translation program; They are seldom used

3 Judul Mata Kuliah Judul Pokok Bahasan 3/total MISCELLANEOUS DATA TRANSFER INSTRUCTION (cont’d) XLAT –The XLAT (translate) instruction converts the contents of the AL register into a number stored in a memory table –This instruction performs the direct table look-up technique –Study Example 4.9 and Fig.4.174.94.17 IN and OUT

4 Judul Mata Kuliah Judul Pokok Bahasan 4/total MISCELLANEOUS DATA TRANSFER INSTRUCTION (cont’d) –Table 4.17 lists the forms of IN and OUT instructions, which perform I/O operations4.17 –Two forms of I/O device (port) addressing exist for IN and OUT: fixed-port (i.e., port number follows the instruction’s op-code) and variable port (i.e., it has permanent port number, stored in a ROM) –The port address appears on the address bus during an I/O instruction –Study Fig.4.18 and Example 4.104.184.10

5 Judul Mata Kuliah Judul Pokok Bahasan 5/total MISCELLANEOUS DATA TRANSFER INSTRUCTION (cont’d) MOVSX and MOVZX –The MOVSX (move and sign- extend) and MOVZX (move and zero-extend) move data and at the same time either sign-extend (i.e., its sign-bit is copied into the most significant part) or zero-extend (i.e., the most significant part fills with zero) it. See Table 4.184.18 BSWAP –The BSWAP (byte swap) instruction takes the contents of any 32-bit register and swaps the 1 st byte with the 4 th, and the 2 nd with the 4 th

6 Judul Mata Kuliah Judul Pokok Bahasan 6/total MISCELLANEOUS DATA TRANSFER INSTRUCTION (cont’d) CMOV –The CMOV (conditional move) only move the data if the condition is true –See Table 4.19 and example 4.114.19 4.11

7 Judul Mata Kuliah Judul Pokok Bahasan 7/total SEGMENT OVERRIDE PREFIX The segment override prefix allows the pro-grammer to deviate from the default seg- ment –e.g., the MOV AX,[DI] --> MOV AX,ES:[DI] See Table 4.204.20

8 Judul Mata Kuliah Judul Pokok Bahasan 8/total

9 Judul Mata Kuliah Judul Pokok Bahasan 9/total

10 Judul Mata Kuliah Judul Pokok Bahasan 10/total

11 Judul Mata Kuliah Judul Pokok Bahasan 11/total

12 Judul Mata Kuliah Judul Pokok Bahasan 12/total

13 Judul Mata Kuliah Judul Pokok Bahasan 13/total

14 Judul Mata Kuliah Judul Pokok Bahasan 14/total

15 Judul Mata Kuliah Judul Pokok Bahasan 15/total

16 Judul Mata Kuliah Judul Pokok Bahasan 16/total Referensi Brey, Barry, B., The Intel Microprocessors 8086/8088, 80186/80188, 80286, 80386, 80486, Pentium, and Pentium ProProcessor Architecture, Programming, and Interfacing, Fourth Edition, PHI Inc, USA, 1997. and Five Edition, 2003 Brey, Barry, B., 8086/8088, 80286, 80386, and 80486 Assembly Language, Programming, Macmillan Publising Company, USA, 1994. Leventhal L.A., Introduction to Microprocessor : Software, Hardware, Programming, Phi Inc., 1978. Hall D.V., Microprocessor Interfacing : Programming and Hardware, McGraw-Hill, Singapore, 1986. Ananta, C., William JB., Frank Fox, Design of High- performance microprocessor circuit, IEEE Press, 2001 Douglas V. Hall, Microprocessor and Interfacing: Programming and Hardware, McGraw-Hill, edition 2, 1991 James A., Kenneth CM, Microcomputer Hardware, Software, and Troubleshooting for Engineering and Technology, Prentice Hall, 2000 http://www.intel.com/ http://www.hardwarebible.com/Microprocessors/8086.htm


Download ppt "Judul Mata Kuliah Judul Pokok Bahasan 1/total Data Movement Instructions."

Similar presentations


Ads by Google