Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Motorola 68000 assembly language help 6. (40 pts.) Write Motorolla 68000 assembler code that will solve fizzbuzz from 1 to 100. Fizzbuzz was a common

Motorola 68000 assembly language helpimage text in transcribed

6. (40 pts.) Write Motorolla 68000 assembler code that will solve fizzbuzz from 1 to 100. Fizzbuzz was a common interview problem at entry level positions in the late 90's. The problem is specified as such: Loop from 1 until 100. If the number you are currently examining is a multiple of three (3) then print out "Fizz". If the number is a multiple of five (5) then print out "Buzz". If it is a multiple of both three and five then print out "FizzBuzz". If the number is neither a multiple of three or five print out the number. You can print each printout on its own line. All of your numerical printouts should contain two digits. You do not need to take any input, start at one (1) and loop until one hundred (100). Use the provided lines. You must label your jumps clearly using good label names and comment your code as is appropriate. Write your solution on the next page. Example Output: 1 2 Fizz 4 Buzz Fizz 7 Fizz Buzz Fizz 13 14 FizzBuzz 16 17 Fizz 19 Buzz Fizz

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

What are Decision Trees?

Answered: 1 week ago

Question

What is meant by the Term Glass Ceiling?

Answered: 1 week ago