subject

Assembly Language for x86 Processors In Assembly language Irvine 32 format. A prime number is an integer that is divisible only by 1 and by itself. Write a program that:

1.Takes a number as an input.

2.Prints back to the console all the primes that are larger than 1 but not larger than the number that has been entered.

You need to have a procedure called isPrime. You may have more procedures if you like.

1.This procedure receives a number through one of the registers.

2.Checks if this number is prime.

3.Returns back through one of the registers to the main program 1, if the number is prime, 0 otherwise.

sample run:

Please enter a number: 44

Primes found until the given number:

2 3 5 7 11 13 17 19 23 29 31 37 41 43

comment the code as well thank you.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 03:00
State 7 common key's for every keyboard
Answers: 1
question
Computers and Technology, 23.06.2019 13:00
Which one of the following voltages should never be measured directly with a vom? a. 1200 v b. 500 v c. 800 v d. 100v
Answers: 2
question
Computers and Technology, 23.06.2019 18:30
List 3 items that were on kens resume that should have been excluded
Answers: 1
question
Computers and Technology, 24.06.2019 15:30
How do i change the size of my bookmarks in my bookmarks bar in google chrome? ? plz hlp me
Answers: 2
You know the right answer?
Assembly Language for x86 Processors In Assembly language Irvine 32 format. A prime number is an in...
Questions
question
Mathematics, 28.01.2020 11:31
question
Mathematics, 28.01.2020 11:31
question
Mathematics, 28.01.2020 11:31
question
Mathematics, 28.01.2020 11:31
Questions on the website: 13722363