{"id":9946,"date":"2021-07-02T23:03:45","date_gmt":"2021-07-02T23:03:45","guid":{"rendered":"https:\/\/papersspot.com\/blog\/2021\/07\/02\/use-flat-assembler-write-a-program-that-converts-an-integer-from-100-to-100-to-text\/"},"modified":"2021-07-02T23:03:45","modified_gmt":"2021-07-02T23:03:45","slug":"use-flat-assembler-write-a-program-that-converts-an-integer-from-100-to-100-to-text","status":"publish","type":"post","link":"https:\/\/papersspot.com\/blog\/2021\/07\/02\/use-flat-assembler-write-a-program-that-converts-an-integer-from-100-to-100-to-text\/","title":{"rendered":"use flat assembler, write a program that converts an integer from -100 to 100 to text."},"content":{"rendered":"<p>Below is a partial algorithm to convert an integer to text: idiv user&#8217;s number by 10 and store eax into variable Quotient and edx into Remainder compare Quotient to 2 and jump to Twenty if equal; compare Quotient to 3 and jump to Thirty if equal; etc.Twenty: Output &#8220;twenty&#8221; Jump to OnesDigitThirty: Output &#8220;thirty&#8221; Jump to OnesDigitOnesDigit: compare Remainder to 1 and jump to One if equal; compare Remainder to 2 and jump to Two if equal; etc.One: Output &#8220;one&#8221; Jump to EndingTwo: Output &#8220;two&#8221; Jump to EndingExample outputsThis x86 assembly program converts an integer to text.Enter an integer from -100 to 100: 73seventy-threeEnter an integer from -100 to 100: -100negative one hundred <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Below is a partial algorithm to convert an integer to text: idiv user&#8217;s number by 10 and store eax into variable Quotient and edx into Remainder compare Quotient to 2 and jump to Twenty if equal; compare Quotient to 3 and jump to Thirty if equal; etc.Twenty: Output &#8220;twenty&#8221; Jump to OnesDigitThirty: Output &#8220;thirty&#8221; Jump [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[28],"class_list":["post-9946","post","type-post","status-publish","format-standard","hentry","category-research-paper-writing","tag-computer-science"],"_links":{"self":[{"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/posts\/9946","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/comments?post=9946"}],"version-history":[{"count":0,"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/posts\/9946\/revisions"}],"wp:attachment":[{"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/media?parent=9946"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/categories?post=9946"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/tags?post=9946"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}