{"id":1562,"date":"2020-03-27T13:48:10","date_gmt":"2020-03-27T13:48:10","guid":{"rendered":"https:\/\/bcisnotes.com\/thirdsemester\/?p=1562"},"modified":"2020-03-30T04:06:24","modified_gmt":"2020-03-30T04:06:24","slug":"data-transfer-instructions","status":"publish","type":"post","link":"https:\/\/bcisnotes.com\/thirdsemester\/computer-architecture-and-microprocessor\/data-transfer-instructions\/","title":{"rendered":"Data Transfer Instructions || 8085 Microprocessor || Bcis Notes"},"content":{"rendered":"<h2>Data Transfer Instructions<\/h2>\n<p>Data transfer instructions are the instructions which transfer data in the microprocessor. They are also called copy instructions.<\/p>\n<p>Following is the table showing the list of logical instructions:<\/p>\n<table border=\"1px\">\n<tbody>\n<tr>\n<td width=\"300px\" height=\"50px\">Upcode Operand<\/td>\n<td width=\"500px\" height=\"50px\">Description<\/td>\n<\/tr>\n<tr>\n<td width=\"300px\" height=\"50px\">Copy from source to destination MOV<\/p>\n<p>Rd, Rs<br \/>\nM, Rs<br \/>\nRd, M<\/td>\n<td width=\"500px\" height=\"50px\">\u00a0This instruction copies the contents of the source register into the destination register; the contents of the source register is not altered. If one of the operands is a memory location, its location is specified by the contents of the HL registers.<br \/>\nExample: MOV B, C or MOV B, M<\/td>\n<\/tr>\n<tr>\n<td width=\"300px\" height=\"50px\">Move immediate 8-bit MVI<br \/>\nRd, data<br \/>\nM,data<\/td>\n<td width=\"500px\" height=\"50px\">The 8-but\u00a0 data is stored in the destination register or memory. If the operand is a memory location, its location is specified by the contents of HL registers.<br \/>\nExample: MVI B, 20 or MVI M, 59<\/td>\n<\/tr>\n<tr>\n<td width=\"300px\" height=\"50px\">Load accumulator<br \/>\nLDA 16-bit address<\/td>\n<td width=\"500px\" height=\"50px\">The contents of a memory location, specified by a<br \/>\n16-bit address in the operand, are copied to the accumulator.<br \/>\nThe contents of the source are not altered.<br \/>\nExample: LDA 4040 or LDA 6000<\/td>\n<\/tr>\n<tr>\n<td width=\"300px\" height=\"50px\">Load accumulator indirect<br \/>\nLDAX B\/D Reg. pair<\/td>\n<td width=\"500px\" height=\"50px\">The contents of the designated register pair point to a memory location. This instruction copies the contents of that memory location into the accumulator. The contents of either the register pair or the memory location are not altered.<br \/>\nExample: LDAX c<\/td>\n<\/tr>\n<tr>\n<td width=\"300px\" height=\"50px\">Load register pair immediate<br \/>\nLXI Reg. pair, 16-bit data<\/td>\n<td width=\"500px\" height=\"50px\">The instruction loads 16-bit data in the register pair<br \/>\ndesignated in the operand.<br \/>\nExample: LXI H, 4040<\/td>\n<\/tr>\n<tr>\n<td width=\"300px\" height=\"50px\">Load H and L registers direct<br \/>\nLHLD 16-bit address<\/td>\n<td width=\"500px\" height=\"50px\">The instruction copies the contents of the memory location pointed out by the 16-bit address into register L and copies the contents of the next memory location into register H. The contents of source memory locations are not altered.<br \/>\nExample: LHLD 5000<\/td>\n<\/tr>\n<tr>\n<td width=\"300px\" height=\"50px\">Store accumulator direct<br \/>\nSTA 16-bit address<\/td>\n<td width=\"500px\" height=\"50px\">The contents of the accumulator are copied into the memory location specified by the operand. This is a 3-byte instruction, the second byte specifies the low-order address and the third byte specifies the high-order address.<br \/>\nExample: STA 4350 or STA XYZ<\/td>\n<\/tr>\n<tr>\n<td width=\"300px\" height=\"50px\">Store accumulator indirect<br \/>\nSTAX Reg. pair<\/td>\n<td width=\"500px\" height=\"50px\">The contents of the accumulator are copied into the memory location specified by the contents of the operand (register pair). The contents of the accumulator are not altered.<br \/>\nExample: STAX B<\/td>\n<\/tr>\n<tr>\n<td width=\"300px\" height=\"50px\">Store H and L registers direct<br \/>\nSHLD 16-bit address<\/td>\n<td width=\"500px\" height=\"50px\">The contents of register L are stored into the memory location specified by the 16-bit address in the operand and the contents of H register are stored into the next memory location by incrementing the operand. The contents of registers HL are not altered. This is a 3-byte instruction, the second byte specifies the low-order address and the third byte specifies the high-order address.<br \/>\nExample: SHLD 2470<\/td>\n<\/tr>\n<tr>\n<td width=\"300px\" height=\"50px\">Exchange H and L with D and E<br \/>\nXCHG none<\/td>\n<td width=\"500px\" height=\"50px\">The contents of register H are exchanged with the contents of register D, and the contents of register L are exchanged with the contents of register E.<br \/>\nExample: XCHG<\/td>\n<\/tr>\n<tr>\n<td width=\"300px\" height=\"50px\">Copy H and L registers to the stack pointer<br \/>\nSPHL none<\/td>\n<td width=\"500px\" height=\"50px\">The instruction loads the contents of the H and L registers into the stack pointer register, the contents of the H register provide the high-order address and the contents of the L register provide the low-order address. The contents of the H and L registers are not altered.<br \/>\nExample: SPHL<\/td>\n<\/tr>\n<tr>\n<td width=\"300px\" height=\"50px\">Exchange H and L with top of the stack<br \/>\nXTHL none<\/td>\n<td width=\"500px\" height=\"50px\">The contents of the L register are exchanged with the stack location pointed out by the contents of the stack pointer register. The contents of the H register are exchanged with the next stack location (SP+1); however, the contents of the stack pointer register are not altered.<br \/>\nExample: XTHL<\/td>\n<\/tr>\n<tr>\n<td width=\"300px\" height=\"50px\">Push register pair onto the stack<br \/>\nPUSH Reg. pair<\/td>\n<td width=\"500px\" height=\"50px\">The contents of the register pair designated in the operand are copied onto the stack in the following sequence. The stack pointer register is decremented and the contents of the high-order register (B, D, H, A) are copied into that location. The stack pointer register is decremented again and the contents of the low-order register (C, E, L, flags) are copied to that location.<br \/>\nExample: PUSH B or PUSH A<\/td>\n<\/tr>\n<tr>\n<td width=\"300px\" height=\"50px\">Pop off the stack to register pair<br \/>\nPOP Reg. pair<\/td>\n<td width=\"500px\" height=\"50px\">The contents of the memory location pointed out by the stack pointer register are copied to the low-order register (C, E, L, status flags) of the operand. The stack pointer is incremented by 1 and the contents of that memory location are copied to the high-order register (B, D, H, A) of the operand. The stack pointer register is again incremented by 1.<br \/>\nExample: POP H or POP A<\/td>\n<\/tr>\n<tr>\n<td width=\"300px\" height=\"50px\">Output data from the accumulator to a port with 8-bit address<br \/>\nOUT 8-bit port address<\/td>\n<td width=\"500px\" height=\"50px\">The contents of the accumulator are copied into the I\/O port specified by the operand.<br \/>\nExample: OUT 87<\/td>\n<\/tr>\n<tr>\n<td width=\"300px\" height=\"50px\">Input data to accumulator from a port with 8-bit address<br \/>\nIN 8-bit port address<\/td>\n<td width=\"500px\" height=\"50px\">The contents of the input port designated in the operand are read and loaded into the accumulator.<br \/>\nExample: IN 82<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>you may also like\u00a0<a href=\"https:\/\/bcisnotes.com\/thirdsemester\/question-bank\/timing-diagram-microprocessorcamp-bcis-notes\/\" target=\"_blank\" rel=\"noopener noreferrer\">Timing Diagram<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>Data Transfer Instructions Data transfer instructions are the instructions which transfer data in the microprocessor. They are also called copy instructions. Following is the table <a class=\"mh-excerpt-more\" href=\"https:\/\/bcisnotes.com\/thirdsemester\/computer-architecture-and-microprocessor\/data-transfer-instructions\/\" title=\"Data Transfer Instructions || 8085 Microprocessor || Bcis Notes\">[&#8230;]<\/a><\/p>\n<\/div>","protected":false},"author":2,"featured_media":1565,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v17.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Data Transfer Instructions || 8085 Microprocessor || Bcis Notes<\/title>\n<meta name=\"description\" content=\"Data transfer instructions are the instructions which transfer data in the microprocessor. They are also called copy instructions.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/bcisnotes.com\/thirdsemester\/computer-architecture-and-microprocessor\/data-transfer-instructions\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Data Transfer Instructions || 8085 Microprocessor || Bcis Notes\" \/>\n<meta property=\"og:description\" content=\"Data transfer instructions are the instructions which transfer data in the microprocessor. They are also called copy instructions.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/bcisnotes.com\/thirdsemester\/computer-architecture-and-microprocessor\/data-transfer-instructions\/\" \/>\n<meta property=\"og:site_name\" content=\"BCIS\" \/>\n<meta property=\"article:published_time\" content=\"2020-03-27T13:48:10+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-03-30T04:06:24+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/bcisnotes.com\/thirdsemester\/wp-content\/uploads\/2020\/03\/Untitled-1-1.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"340\" \/>\n\t<meta property=\"og:image:height\" content=\"230\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u0938\u0932\u094d\u0932\u093e\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/bcisnotes.com\/thirdsemester\/#website\",\"url\":\"https:\/\/bcisnotes.com\/thirdsemester\/\",\"name\":\"BCIS\",\"description\":\"Bachelor In Computer Information System\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/bcisnotes.com\/thirdsemester\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/bcisnotes.com\/thirdsemester\/computer-architecture-and-microprocessor\/data-transfer-instructions\/#primaryimage\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/bcisnotes.com\/thirdsemester\/wp-content\/uploads\/2020\/03\/Untitled-1-1.jpg\",\"contentUrl\":\"https:\/\/bcisnotes.com\/thirdsemester\/wp-content\/uploads\/2020\/03\/Untitled-1-1.jpg\",\"width\":340,\"height\":230,\"caption\":\"Data Transfer Instructions || 8085 Microprocessor || Bcis Notes\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/bcisnotes.com\/thirdsemester\/computer-architecture-and-microprocessor\/data-transfer-instructions\/#webpage\",\"url\":\"https:\/\/bcisnotes.com\/thirdsemester\/computer-architecture-and-microprocessor\/data-transfer-instructions\/\",\"name\":\"Data Transfer Instructions || 8085 Microprocessor || Bcis Notes\",\"isPartOf\":{\"@id\":\"https:\/\/bcisnotes.com\/thirdsemester\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/bcisnotes.com\/thirdsemester\/computer-architecture-and-microprocessor\/data-transfer-instructions\/#primaryimage\"},\"datePublished\":\"2020-03-27T13:48:10+00:00\",\"dateModified\":\"2020-03-30T04:06:24+00:00\",\"author\":{\"@id\":\"https:\/\/bcisnotes.com\/thirdsemester\/#\/schema\/person\/9133f4b573527de246e0b939f4fd5515\"},\"description\":\"Data transfer instructions are the instructions which transfer data in the microprocessor. They are also called copy instructions.\",\"breadcrumb\":{\"@id\":\"https:\/\/bcisnotes.com\/thirdsemester\/computer-architecture-and-microprocessor\/data-transfer-instructions\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/bcisnotes.com\/thirdsemester\/computer-architecture-and-microprocessor\/data-transfer-instructions\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/bcisnotes.com\/thirdsemester\/computer-architecture-and-microprocessor\/data-transfer-instructions\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/bcisnotes.com\/thirdsemester\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Data Transfer Instructions || 8085 Microprocessor || Bcis Notes\"}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/bcisnotes.com\/thirdsemester\/#\/schema\/person\/9133f4b573527de246e0b939f4fd5515\",\"name\":\"\\u0938\\u0932\\u094d\\u0932\\u093e\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/bcisnotes.com\/thirdsemester\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/e31a69c6a6d830dca58523a537833871?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/e31a69c6a6d830dca58523a537833871?s=96&d=mm&r=g\",\"caption\":\"\\u0938\\u0932\\u094d\\u0932\\u093e\"},\"sameAs\":[\"https:\/\/bcisnotes.com\/thirdsemester\"],\"url\":\"https:\/\/bcisnotes.com\/thirdsemester\/author\/sujan\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Data Transfer Instructions || 8085 Microprocessor || Bcis Notes","description":"Data transfer instructions are the instructions which transfer data in the microprocessor. They are also called copy instructions.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/bcisnotes.com\/thirdsemester\/computer-architecture-and-microprocessor\/data-transfer-instructions\/","og_locale":"en_US","og_type":"article","og_title":"Data Transfer Instructions || 8085 Microprocessor || Bcis Notes","og_description":"Data transfer instructions are the instructions which transfer data in the microprocessor. They are also called copy instructions.","og_url":"https:\/\/bcisnotes.com\/thirdsemester\/computer-architecture-and-microprocessor\/data-transfer-instructions\/","og_site_name":"BCIS","article_published_time":"2020-03-27T13:48:10+00:00","article_modified_time":"2020-03-30T04:06:24+00:00","og_image":[{"width":340,"height":230,"url":"https:\/\/bcisnotes.com\/thirdsemester\/wp-content\/uploads\/2020\/03\/Untitled-1-1.jpg","path":"\/home\/u251232636\/domains\/bcisnotes.com\/public_html\/thirdsemester\/wp-content\/uploads\/2020\/03\/Untitled-1-1.jpg","size":"full","id":1565,"alt":"Data Transfer Instructions || 8085 Microprocessor || Bcis Notes","pixels":78200,"type":"image\/jpeg"}],"twitter_card":"summary_large_image","twitter_misc":{"Written by":"\u0938\u0932\u094d\u0932\u093e","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"https:\/\/bcisnotes.com\/thirdsemester\/#website","url":"https:\/\/bcisnotes.com\/thirdsemester\/","name":"BCIS","description":"Bachelor In Computer Information System","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/bcisnotes.com\/thirdsemester\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"ImageObject","@id":"https:\/\/bcisnotes.com\/thirdsemester\/computer-architecture-and-microprocessor\/data-transfer-instructions\/#primaryimage","inLanguage":"en-US","url":"https:\/\/bcisnotes.com\/thirdsemester\/wp-content\/uploads\/2020\/03\/Untitled-1-1.jpg","contentUrl":"https:\/\/bcisnotes.com\/thirdsemester\/wp-content\/uploads\/2020\/03\/Untitled-1-1.jpg","width":340,"height":230,"caption":"Data Transfer Instructions || 8085 Microprocessor || Bcis Notes"},{"@type":"WebPage","@id":"https:\/\/bcisnotes.com\/thirdsemester\/computer-architecture-and-microprocessor\/data-transfer-instructions\/#webpage","url":"https:\/\/bcisnotes.com\/thirdsemester\/computer-architecture-and-microprocessor\/data-transfer-instructions\/","name":"Data Transfer Instructions || 8085 Microprocessor || Bcis Notes","isPartOf":{"@id":"https:\/\/bcisnotes.com\/thirdsemester\/#website"},"primaryImageOfPage":{"@id":"https:\/\/bcisnotes.com\/thirdsemester\/computer-architecture-and-microprocessor\/data-transfer-instructions\/#primaryimage"},"datePublished":"2020-03-27T13:48:10+00:00","dateModified":"2020-03-30T04:06:24+00:00","author":{"@id":"https:\/\/bcisnotes.com\/thirdsemester\/#\/schema\/person\/9133f4b573527de246e0b939f4fd5515"},"description":"Data transfer instructions are the instructions which transfer data in the microprocessor. They are also called copy instructions.","breadcrumb":{"@id":"https:\/\/bcisnotes.com\/thirdsemester\/computer-architecture-and-microprocessor\/data-transfer-instructions\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/bcisnotes.com\/thirdsemester\/computer-architecture-and-microprocessor\/data-transfer-instructions\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/bcisnotes.com\/thirdsemester\/computer-architecture-and-microprocessor\/data-transfer-instructions\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/bcisnotes.com\/thirdsemester\/"},{"@type":"ListItem","position":2,"name":"Data Transfer Instructions || 8085 Microprocessor || Bcis Notes"}]},{"@type":"Person","@id":"https:\/\/bcisnotes.com\/thirdsemester\/#\/schema\/person\/9133f4b573527de246e0b939f4fd5515","name":"\u0938\u0932\u094d\u0932\u093e","image":{"@type":"ImageObject","@id":"https:\/\/bcisnotes.com\/thirdsemester\/#personlogo","inLanguage":"en-US","url":"https:\/\/secure.gravatar.com\/avatar\/e31a69c6a6d830dca58523a537833871?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e31a69c6a6d830dca58523a537833871?s=96&d=mm&r=g","caption":"\u0938\u0932\u094d\u0932\u093e"},"sameAs":["https:\/\/bcisnotes.com\/thirdsemester"],"url":"https:\/\/bcisnotes.com\/thirdsemester\/author\/sujan\/"}]}},"_links":{"self":[{"href":"https:\/\/bcisnotes.com\/thirdsemester\/wp-json\/wp\/v2\/posts\/1562"}],"collection":[{"href":"https:\/\/bcisnotes.com\/thirdsemester\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bcisnotes.com\/thirdsemester\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bcisnotes.com\/thirdsemester\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/bcisnotes.com\/thirdsemester\/wp-json\/wp\/v2\/comments?post=1562"}],"version-history":[{"count":4,"href":"https:\/\/bcisnotes.com\/thirdsemester\/wp-json\/wp\/v2\/posts\/1562\/revisions"}],"predecessor-version":[{"id":1928,"href":"https:\/\/bcisnotes.com\/thirdsemester\/wp-json\/wp\/v2\/posts\/1562\/revisions\/1928"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/bcisnotes.com\/thirdsemester\/wp-json\/wp\/v2\/media\/1565"}],"wp:attachment":[{"href":"https:\/\/bcisnotes.com\/thirdsemester\/wp-json\/wp\/v2\/media?parent=1562"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bcisnotes.com\/thirdsemester\/wp-json\/wp\/v2\/categories?post=1562"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bcisnotes.com\/thirdsemester\/wp-json\/wp\/v2\/tags?post=1562"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}