Question: Microprocessors 8085 simulator Given: At address 704Fh, there is a number which tells how many primes have been found so far. (Initialial value = -
Given: At address 704Fh, there is a number which tells how many primes have been found so far. (Initialial value = - 1) At address 7050h, the list of primes begins, 7051h will be the 2nd prime, 7052h the 3rd, etc. (7050h = 2) Instructions: 1) Evaluate the integers greater than 2, to assess if they are prime. 2) If the evaluated integer is prime, add it to the list of primes. 3) Continue until the designated number of primes is found. (For startup purposes, find the first 5 primes. The final check of your program will be to find all primes less than 255.) You are allowed (and encouraged) to discuss this challenge amongst yourselves, or ask me questions. You will have to explain your code (so comment it). NOTE: The addresses you use can be different than those in the instructions
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
