{"id":1568,"date":"2020-03-30T04:02:52","date_gmt":"2020-03-30T04:02:52","guid":{"rendered":"https:\/\/bcisnotes.com\/thirdsemester\/?p=1568"},"modified":"2020-03-30T04:10:10","modified_gmt":"2020-03-30T04:10:10","slug":"arithmetic-operations","status":"publish","type":"post","link":"https:\/\/bcisnotes.com\/thirdsemester\/computer-architecture-and-microprocessor\/arithmetic-operations\/","title":{"rendered":"Arithmetic Operations || 8085 Microprocessor || BcisNotes"},"content":{"rendered":"<h2>Arithmetic Operations<\/h2>\n<p>The 8085 microprocessor performs various arithmetic operations, such as addition, subtraction, increment, and decrement. These arithmetic operations have the following mnemonics.<\/p>\n<p><strong>INTRODUCTION TO 8085 ARITHMETIC INSTRUCTIONS<\/strong><\/p>\n<table border=\"1px\">\n<tbody>\n<tr>\n<td width=\"100px\">\u00a0ADD:<\/td>\n<td width=\"100px\">Add<\/td>\n<td width=\"200px\">Add the contents of a register.<\/td>\n<\/tr>\n<tr>\n<td>\u00a0ADI:<\/td>\n<td>Add Immediately<\/td>\n<td>Add 8-bit data.<\/td>\n<\/tr>\n<tr>\n<td>\u00a0SUB:<\/td>\n<td>Subtract<\/td>\n<td>Subtract the contents of a register.<\/td>\n<\/tr>\n<tr>\n<td>\u00a0SUI:<\/td>\n<td>Subtract Immediately<\/td>\n<td>Subtract 8-bit data.<\/td>\n<\/tr>\n<tr>\n<td>\u00a0INR:<\/td>\n<td>Increment<\/td>\n<td>Increase the content of register by1.<\/td>\n<\/tr>\n<tr>\n<td>\u00a0DCR:<\/td>\n<td>Decrement<\/td>\n<td>Decrease the content of register by1.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>The arithmetic operations ADD and Subtract are performed in relation to the contents of the accumulator. However, the Increment or the Decrement operations can be performed in any register. The instructions for these operations are explained below:<\/p>\n<p><strong>INSTRUCTIONS<\/strong><\/p>\n<p>These arithmetic instructions(except INR and DCR)<\/p>\n<ol>\n<li>assume implicitly that the accumulator is one of the operands.<\/li>\n<li>modify all the flags according to the data conditions of the result.<\/li>\n<li>place the result in the accumulator.<\/li>\n<li>do not affect the contents of the operand register.<\/li>\n<\/ol>\n<p>The instructions INR and DCR<\/p>\n<ol>\n<li>affects the content of the specified register.<\/li>\n<li>affect all flags expect the CY flag.<\/li>\n<\/ol>\n<p>The descriptions of the instructions (including INR and DCR) are as follows:<\/p>\n<table border=\"1px\">\n<tbody>\n<tr>\n<td width=\"100px\"><strong>Opcode<\/strong><\/td>\n<td width=\"100px\"><strong>Operand<\/strong><\/td>\n<td width=\"500px\"><strong>Description<\/strong><\/td>\n<\/tr>\n<tr>\n<td width=\"100px\"><strong>\u00a0 ADD<\/strong><\/td>\n<td width=\"100px\">R<\/td>\n<td width=\"500px\">ADD<\/p>\n<ul>\n<li>This is 1-byte instructions.<\/li>\n<li>Adds the contents of register R to the contents of the accumulator.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"100px\"><strong>\u00a0 ADI<\/strong><\/td>\n<td width=\"100px\">8-bit<\/td>\n<td width=\"500px\">Add Immediately<\/p>\n<ul>\n<li>This is 2-byte instructions.<\/li>\n<li>Adds the second byte to the contents of the accumulator<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"100px\"><strong>\u00a0 SUB<\/strong><\/td>\n<td width=\"100px\">R+<\/td>\n<td width=\"500px\">Subtract<\/p>\n<ul>\n<li>This is 1-byte instructions.<\/li>\n<li>Subtract the contents of register R from the contents of the accumulator.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"100px\"><strong>\u00a0 SUI<\/strong><\/td>\n<td width=\"100px\">8-bit<\/td>\n<td width=\"500px\">Subtract Immediately<\/p>\n<ul>\n<li>This is 2-byte instructions.<\/li>\n<li>Subtracts the byte from the contents of the accumulator.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"100px\"><strong>\u00a0 INR<\/strong><\/td>\n<td width=\"100px\">R*<\/td>\n<td width=\"500px\">Increment<\/p>\n<ul>\n<li>This is 1-byte instructions.<\/li>\n<li>Increases the contents of register R by 1<br \/>\n<strong><em>Caution:\u00a0<\/em><\/strong>All flags except the CY are affected<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"100px\"><strong>\u00a0DCR<\/strong><\/td>\n<td width=\"100px\">R*<\/td>\n<td width=\"500px\">Decrement<\/p>\n<ul>\n<li>This is 1-byte instructions.<\/li>\n<li>Decreases the contents of register R by 1<br \/>\n<strong><em>Caution:<\/em><\/strong> All flags except the CY are affected.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>So, These are the arithmetic operations\/ instructions of the 8085 microprocessor.<\/p>\n<p>you may also like\u00a0<a href=\"https:\/\/bcisnotes.com\/thirdsemester\/computer-architecture-and-microprocessor\/data-transfer-instructions\/\" target=\"_blank\" rel=\"noopener noreferrer\">Data Transfer Instructions<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>Arithmetic Operations The 8085 microprocessor performs various arithmetic operations, such as addition, subtraction, increment, and decrement. These arithmetic operations have the following mnemonics. INTRODUCTION TO <a class=\"mh-excerpt-more\" href=\"https:\/\/bcisnotes.com\/thirdsemester\/computer-architecture-and-microprocessor\/arithmetic-operations\/\" title=\"Arithmetic Operations || 8085 Microprocessor || BcisNotes\">[&#8230;]<\/a><\/p>\n<\/div>","protected":false},"author":2,"featured_media":1572,"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>Arithmetic Operations || 8085 Microprocessor || BcisNotes<\/title>\n<meta name=\"description\" content=\"Arithmetic Instructions are the instructions which perform basic arithmetic operations such as addition, subtraction and a few more.\" \/>\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\/arithmetic-operations\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Arithmetic Operations || 8085 Microprocessor || BcisNotes\" \/>\n<meta property=\"og:description\" content=\"Arithmetic Instructions are the instructions which perform basic arithmetic operations such as addition, subtraction and a few more.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/bcisnotes.com\/thirdsemester\/computer-architecture-and-microprocessor\/arithmetic-operations\/\" \/>\n<meta property=\"og:site_name\" content=\"BCIS\" \/>\n<meta property=\"article:published_time\" content=\"2020-03-30T04:02:52+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-03-30T04:10:10+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/bcisnotes.com\/thirdsemester\/wp-content\/uploads\/2020\/03\/arithmetic.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=\"2 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\/arithmetic-operations\/#primaryimage\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/bcisnotes.com\/thirdsemester\/wp-content\/uploads\/2020\/03\/arithmetic.jpg\",\"contentUrl\":\"https:\/\/bcisnotes.com\/thirdsemester\/wp-content\/uploads\/2020\/03\/arithmetic.jpg\",\"width\":340,\"height\":230,\"caption\":\"Arithmetic Operations || 8085 Microprocessor || BcisNotes\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/bcisnotes.com\/thirdsemester\/computer-architecture-and-microprocessor\/arithmetic-operations\/#webpage\",\"url\":\"https:\/\/bcisnotes.com\/thirdsemester\/computer-architecture-and-microprocessor\/arithmetic-operations\/\",\"name\":\"Arithmetic Operations || 8085 Microprocessor || BcisNotes\",\"isPartOf\":{\"@id\":\"https:\/\/bcisnotes.com\/thirdsemester\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/bcisnotes.com\/thirdsemester\/computer-architecture-and-microprocessor\/arithmetic-operations\/#primaryimage\"},\"datePublished\":\"2020-03-30T04:02:52+00:00\",\"dateModified\":\"2020-03-30T04:10:10+00:00\",\"author\":{\"@id\":\"https:\/\/bcisnotes.com\/thirdsemester\/#\/schema\/person\/9133f4b573527de246e0b939f4fd5515\"},\"description\":\"Arithmetic Instructions are the instructions which perform basic arithmetic operations such as addition, subtraction and a few more.\",\"breadcrumb\":{\"@id\":\"https:\/\/bcisnotes.com\/thirdsemester\/computer-architecture-and-microprocessor\/arithmetic-operations\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/bcisnotes.com\/thirdsemester\/computer-architecture-and-microprocessor\/arithmetic-operations\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/bcisnotes.com\/thirdsemester\/computer-architecture-and-microprocessor\/arithmetic-operations\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/bcisnotes.com\/thirdsemester\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Arithmetic Operations || 8085 Microprocessor || BcisNotes\"}]},{\"@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":"Arithmetic Operations || 8085 Microprocessor || BcisNotes","description":"Arithmetic Instructions are the instructions which perform basic arithmetic operations such as addition, subtraction and a few more.","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\/arithmetic-operations\/","og_locale":"en_US","og_type":"article","og_title":"Arithmetic Operations || 8085 Microprocessor || BcisNotes","og_description":"Arithmetic Instructions are the instructions which perform basic arithmetic operations such as addition, subtraction and a few more.","og_url":"https:\/\/bcisnotes.com\/thirdsemester\/computer-architecture-and-microprocessor\/arithmetic-operations\/","og_site_name":"BCIS","article_published_time":"2020-03-30T04:02:52+00:00","article_modified_time":"2020-03-30T04:10:10+00:00","og_image":[{"width":340,"height":230,"url":"https:\/\/bcisnotes.com\/thirdsemester\/wp-content\/uploads\/2020\/03\/arithmetic.jpg","path":"\/home\/u251232636\/domains\/bcisnotes.com\/public_html\/thirdsemester\/wp-content\/uploads\/2020\/03\/arithmetic.jpg","size":"full","id":1572,"alt":"Arithmetic Operations || 8085 Microprocessor || BcisNotes","pixels":78200,"type":"image\/jpeg"}],"twitter_card":"summary_large_image","twitter_misc":{"Written by":"\u0938\u0932\u094d\u0932\u093e","Est. reading time":"2 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\/arithmetic-operations\/#primaryimage","inLanguage":"en-US","url":"https:\/\/bcisnotes.com\/thirdsemester\/wp-content\/uploads\/2020\/03\/arithmetic.jpg","contentUrl":"https:\/\/bcisnotes.com\/thirdsemester\/wp-content\/uploads\/2020\/03\/arithmetic.jpg","width":340,"height":230,"caption":"Arithmetic Operations || 8085 Microprocessor || BcisNotes"},{"@type":"WebPage","@id":"https:\/\/bcisnotes.com\/thirdsemester\/computer-architecture-and-microprocessor\/arithmetic-operations\/#webpage","url":"https:\/\/bcisnotes.com\/thirdsemester\/computer-architecture-and-microprocessor\/arithmetic-operations\/","name":"Arithmetic Operations || 8085 Microprocessor || BcisNotes","isPartOf":{"@id":"https:\/\/bcisnotes.com\/thirdsemester\/#website"},"primaryImageOfPage":{"@id":"https:\/\/bcisnotes.com\/thirdsemester\/computer-architecture-and-microprocessor\/arithmetic-operations\/#primaryimage"},"datePublished":"2020-03-30T04:02:52+00:00","dateModified":"2020-03-30T04:10:10+00:00","author":{"@id":"https:\/\/bcisnotes.com\/thirdsemester\/#\/schema\/person\/9133f4b573527de246e0b939f4fd5515"},"description":"Arithmetic Instructions are the instructions which perform basic arithmetic operations such as addition, subtraction and a few more.","breadcrumb":{"@id":"https:\/\/bcisnotes.com\/thirdsemester\/computer-architecture-and-microprocessor\/arithmetic-operations\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/bcisnotes.com\/thirdsemester\/computer-architecture-and-microprocessor\/arithmetic-operations\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/bcisnotes.com\/thirdsemester\/computer-architecture-and-microprocessor\/arithmetic-operations\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/bcisnotes.com\/thirdsemester\/"},{"@type":"ListItem","position":2,"name":"Arithmetic Operations || 8085 Microprocessor || BcisNotes"}]},{"@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\/1568"}],"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=1568"}],"version-history":[{"count":8,"href":"https:\/\/bcisnotes.com\/thirdsemester\/wp-json\/wp\/v2\/posts\/1568\/revisions"}],"predecessor-version":[{"id":1927,"href":"https:\/\/bcisnotes.com\/thirdsemester\/wp-json\/wp\/v2\/posts\/1568\/revisions\/1927"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/bcisnotes.com\/thirdsemester\/wp-json\/wp\/v2\/media\/1572"}],"wp:attachment":[{"href":"https:\/\/bcisnotes.com\/thirdsemester\/wp-json\/wp\/v2\/media?parent=1568"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bcisnotes.com\/thirdsemester\/wp-json\/wp\/v2\/categories?post=1568"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bcisnotes.com\/thirdsemester\/wp-json\/wp\/v2\/tags?post=1568"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}