![subject](/tpl/images/cats/informatica.png)
Computers and Technology, 13.08.2021 04:10 liv467
Using x86 assembly language,
Write a program that converts an integer from -100 to 100 to text.
Below is a partial algorithm to convert an integer to text:
idiv user'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 "twenty"
Jump to OnesDigit
Thirty:
Output "thirty"
Jump to OnesDigit
OnesDigit:
compare Remainder to 1 and jump to One if equal; compare Remainder to 2 and jump to Two if equal; etc.
One:
Output "one"
Jump to Ending
Two:
Output "two"
Jump to Ending
Example outputs
This x86 assembly program converts an integer to text.
Enter an integer from -100 to 100: 73
seventy-three
Enter an integer from -100 to 100: -100
negative one hundred
File Edit Search Run Options Help
format PE console
include win32ax. inc!
start:
ask user to enter a number
mov [Num), -25
print negative is less than 0
cmp [Num], o
jge positive
cinvoke printf,
negative neg [Num]
positive;
mov EAX, [Num]
cda
mov EBX, 10
idiv EBX
mov [Q], EAX
mov [R], EDX
twenty
cmp [Q), 2
jne thirty
cinvoke printf, "twenty"
invoke Sleep, -1
![ansver](/tpl/images/cats/User.png)
Answers: 1
Another question on Computers and Technology
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 22.06.2019 01:40
Kali, a python programmer, is using the turtle module to write the word “hello.” which code should she use to indicate the location to begin writing the word? a # pick up the turtle and move it to its starting location. b penup(-100, 200) goto() pendown() c penup() goto(-100, 200) pendown() d # pick up the turtle and move it to (-100, 200)
Answers: 2
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 12:00
If you embed a word table into powerpoint, what happens when you make edits to the embedded data? a. edits made to embedded data change the data in the source file; however, edits made to the source file will not be reflected in the embedded data. b. edits made to embedded data will change the data in the source file, and edits made to the source file will be reflected in the embedded data. c. edits made to embedded data don't change the data in the source file, nor will edits made to the source file be reflected in the embedded data. d. edits made to embedded data don't change the data in the source file; however, edits made to the source file will be reflected in the embedded data.
Answers: 1
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 20:30
1. for which of the following are you not required to signal beforehand? a. changing lanes b. speeding up c. stopping
Answers: 2
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 24.06.2019 00:30
Asecurity policy is a a. set of guidlines b. set of transmission protocols c. written document d. set of rules based on standards and guidelines
Answers: 2
You know the right answer?
Using x86 assembly language,
Write a program that converts an integer from -100 to 100 to text.
Questions
![question](/tpl/images/cats/himiya.png)
![question](/tpl/images/cats/istoriya.png)
![question](/tpl/images/cats/istoriya.png)
History, 09.09.2021 07:40
![question](/tpl/images/cats/mat.png)
Mathematics, 09.09.2021 07:40
![question](/tpl/images/cats/mat.png)
Mathematics, 09.09.2021 07:50
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 09.09.2021 07:50
![question](/tpl/images/cats/fizika.png)
Physics, 09.09.2021 07:50
![question](/tpl/images/cats/fizika.png)
Physics, 09.09.2021 07:50
![question](/tpl/images/cats/nemec.png)
German, 09.09.2021 07:50
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 09.09.2021 07:50
![question](/tpl/images/cats/mat.png)
Mathematics, 09.09.2021 07:50
![question](/tpl/images/cats/mat.png)
Mathematics, 09.09.2021 07:50
![question](/tpl/images/cats/en.png)
English, 09.09.2021 07:50
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/geografiya.png)
Geography, 09.09.2021 07:50
![question](/tpl/images/cats/mat.png)
Mathematics, 09.09.2021 07:50