{"id":6979,"date":"2023-03-02T16:32:56","date_gmt":"2023-03-02T16:32:56","guid":{"rendered":"https:\/\/www.goodacademic.com\/blog\/questions\/assembly-language-subtracting-three-integers\/"},"modified":"2023-03-02T16:32:56","modified_gmt":"2023-03-02T16:32:56","slug":"assembly-language-subtracting-three-integers","status":"publish","type":"questions","link":"https:\/\/www.goodacademic.com\/blog\/questions\/assembly-language-subtracting-three-integers\/","title":{"rendered":"Assembly language Subtracting three integers."},"content":{"rendered":"<div class=\"col-sm-12 messageContent\">\n <b>Learning Goal: <\/b>I&#8217;m working on a assembly language question and need the explanation and answer to help me learn.<\/p>\n<p>Subtracting three integers.<\/p>\n<p>Using the ADDSUB program from the section 3.2 as a reference, write a program that subtracts three integers only 16-bit registers. Insert a cal DumpRegs statement to display the register values<\/p>\n<p>This program must be done using Visual studio. Please submit .asm file or copy\/paste your program here.<\/p>\n<p>Please note that you will have two extra days of grace period for all homeworks, including midterm and final exam projects.Could you give the answer with a unique one (integer) so that I do not get detected?<\/p>\n<p>here is the code of the ADDSUB;<\/p>\n<pre><code>TITLE Add and Subtract, Version 2 (AddSub2.asm); This program adds and subtracts 32-bit unsigned; integers and stores the sum in a variable.INCLUDE Irvine32.inc.dataval1 DWORD 10000hval2 DWORD 40000hval3 DWORD 20000hfinalVal DWORD ?.codemain PROCmov eax,val1 ; start with 10000hadd eax,val2 ; add 40000hsub eax,val3 ; subtract 20000hmov finalVal,eax ; store the result (30000h)call DumpRegs ; display the registersexitmain ENDPEND main<\/code><\/pre>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Learning Goal: I&#8217;m working on a assembly language question and need the explanation and answer to help me learn. Subtracting three integers. Using the ADDSUB program from the section 3.2 as a reference, write a program that subtracts three integers only 16-bit registers. Insert a cal DumpRegs statement to display the register values This program [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":[],"disciplines":[1053],"paper_types":[],"tagged":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.goodacademic.com\/blog\/wp-json\/wp\/v2\/questions\/6979"}],"collection":[{"href":"https:\/\/www.goodacademic.com\/blog\/wp-json\/wp\/v2\/questions"}],"about":[{"href":"https:\/\/www.goodacademic.com\/blog\/wp-json\/wp\/v2\/types\/questions"}],"author":[{"embeddable":true,"href":"https:\/\/www.goodacademic.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.goodacademic.com\/blog\/wp-json\/wp\/v2\/comments?post=6979"}],"version-history":[{"count":0,"href":"https:\/\/www.goodacademic.com\/blog\/wp-json\/wp\/v2\/questions\/6979\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.goodacademic.com\/blog\/wp-json\/wp\/v2\/media?parent=6979"}],"wp:term":[{"taxonomy":"disciplines","embeddable":true,"href":"https:\/\/www.goodacademic.com\/blog\/wp-json\/wp\/v2\/disciplines?post=6979"},{"taxonomy":"paper_types","embeddable":true,"href":"https:\/\/www.goodacademic.com\/blog\/wp-json\/wp\/v2\/paper_types?post=6979"},{"taxonomy":"tagged","embeddable":true,"href":"https:\/\/www.goodacademic.com\/blog\/wp-json\/wp\/v2\/tagged?post=6979"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}