Question

1. Suppose you found your dream job working on an 8-bit computer/microcontroller and working with assembly...

1. Suppose you found your dream job working on an 8-bit computer/microcontroller and working with assembly (which includes writing assembly from scratch). Also, suppose your project manager wants the 8-bit processor to able to handle fixed-point arithmetic operations that include addition, subtraction, and multiplication. Assume you can perform division with the combination of previously mentioned instructions.

The fixed-point number representation is eight bits and would need to represent numbers between

-2d = 1000 0000 And Max number = 0111 1111 = 2^0 + (2^-1) + (2^-2) + (2^-3) + (2^-4) + (2^-5) + (2^-6) = 1.984375

This would mean that the weights on the bits are:

-2, 2^0, 2^-1, 2^-2, 2^-3, 2^-4, 2^-5,2^6 (total of 8 bits)

Do you need to implement more instructions?

Why or why not? Give examples to justify your answer.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

8-bit microcontroller uses the 8 bits data to perform operation for example: 8051/8031 etc.

In 8 bit microcontroller we perform programming using instruction sets which are defined for particular operation in the library( assembly language) of microcontroller. In assembly language the code given to instruction set is given an abbrevation i.e MNEMONICS.

It perform addition and subtraction by loading data in memory and then in accumulator and using instruction set ADD and SUB.But for performing division it uses more tham add or sub instruction

for eg : program of division of two number

Here we use certain instruction set:

  • for loadind data into memory mnemonics is LXI
  • for moving data from one memory to other mnemonics is MOV
  • for Increment mnemonics is INX
  • for jump to other memory location if carry flag is one mnemonics is JC
  • for subtraction mnemonics is SUB

so we requires more instruction set for implementaion of division in 8-bit microcontroller

Add a comment
Know the answer?
Add Answer to:
1. Suppose you found your dream job working on an 8-bit computer/microcontroller and working with assembly...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Multiplication and Division using PIC16F PIC16 is a very basic microcontroller with the capability of limited...

    Multiplication and Division using PIC16F PIC16 is a very basic microcontroller with the capability of limited arithmetic and logical operations. It has dedicated arithmetic instructions for addition, subtraction, increment and decrement. If we want to perform a multiplication and division operations then we need to write a program for it. Multiplication is nothing but repeated addition. However, division can be implemented using repeated subtraction. This mini-project presents assembly or C language program for the multiplication and division of two 8-bits...

  • HW3: Problem 1: (first, study the example-1 in page-6) A computer uses 8-bit for FLP (1...

    HW3: Problem 1: (first, study the example-1 in page-6) A computer uses 8-bit for FLP (1 bit for sign, 4 bit for exponent with excess-7 rep. (see table below), rest for magnitude). Assume 0000 and 1111 in exponent field are reserved for denormalization. 6 Decimal 0 Unsigned 0000 Excess-7 Reserved used as -6 in unnormalized 1 0001 -6 2 0010 -5 3 0011 -4 4 0100 -3 5 0101 -2 0110 -1 7 0111 0 9 Decimal 8 Unsigned 1000...

  • Use the following information to answer questions 1-4. You have achieved a dream job working for...

    Use the following information to answer questions 1-4. You have achieved a dream job working for the Toledo Mud Hens. You estimate the demand for general admission tickets as follows. Price Quantity 15 5000 14 6000 13 7000 12 8000 11 9000 10 10000 The marginal cost of selling a ticket is $2. Other fixed costs per game equal $5000. Finally, the seating capacity is 9000. Question 1 (0.5 points) What is the profit maximizing price? O 15 O 14...

  • 1. You and your spouse have found your dream home. The selling price is $220,000; you...

    1. You and your spouse have found your dream home. The selling price is $220,000; you will put $50,000 down and obtain a 30-year fixed-rate mortgage at 12% compounded monthly for the balance a) Assume that monthly payments begin in one month. What will each payment be? b) How much interest will you pay (in dollars) over the lifetime of the loan? (Assume you make each of the required 360 payments on time.) c) Although you will get a 30-year...

  • Please answer all questions for UPVOTE LOCATION: Cleveland, Ohio DREAM LOCATION: Rome, Italy PRECALCULUS: VECTORS Directions: Suppose that you plan to take a trip to your dream destina...

    Please answer all questions for UPVOTE LOCATION: Cleveland, Ohio DREAM LOCATION: Rome, Italy PRECALCULUS: VECTORS Directions: Suppose that you plan to take a trip to your dream destination. You would like to know the shortest distance between your starting point and your destination. When calculating distances on a plane, you need only consider two dimensions because you are on a flat surface. However, when finding distances between two points on Earth, you must take into the account the curvature of...

  • 5 Exercises Now that everything is working you can try the following exercises. To complete them you will need to refer...

    5 Exercises Now that everything is working you can try the following exercises. To complete them you will need to refer to the documentation in Appendix A- The MiteASM Assembler and Appendix B - The MiteFPGA Processor. Write an assembly language program for an over counter for a cricket umpire. This should display a count on the 7-segment display. The count should increase by 1 when button 0 is 1. pressed. It should reset to 0 when button 1 is...

  • Group Project 1 The Micro-1 Processor Simulation <Micro-1 Computer> Here's the organization of a computer equipped...

    Group Project 1 The Micro-1 Processor Simulation <Micro-1 Computer> Here's the organization of a computer equipped with a Micro-1 processor Memory contains an array of integer cells: int cell[] = new int[CAP]; where CAP is the capacity of memory. Initially this is set to 256. Internally, the Micro-1 processor is equipped with eight 32-bit data/address registers and two 32 bit control registers: PC, the program counter, contains the address of the next instruction to execute. IR, the instruction register, contains...

  • computer analysis

    Questions1.  The function L is defined as L(1) = 2,L(2) = 1,L(3) = 3,L(4) = 4 and for n ≥ 4,L(n + 1) = L(n) + L(n − 1) + L(n − 2)L(n − 3)i.e., the (n + 1)-th value is given by the sum of the n-th, n − 1-th and n − 2-th values divided by the n − 3-th value.(a)  Write an assembly program for computing the k-th value L(k), where k is an integer bigger than...

  • There is an example below Now that everything is working you can try the following exercises. To complete them you wi...

    There is an example below Now that everything is working you can try the following exercises. To complete them you will need to refer to the documentation in Appendix A The MiteASM Assembler and Appendix B The MiteFPGA Processor. Write an assembly language program for an over counter for a cricket umpire. This should 1. display a count on the 7-segment display. The count should increase by 1 when button 0 is pressed. It should reset to 0 when button...

  • Please show steps for parts g through k Thank you for your help! 1. Suppose the...

    Please show steps for parts g through k Thank you for your help! 1. Suppose the following is true about Edna's utility: u = 10c0.5 p0.5 a. Calculate her utility if she consumes c = $49 and enjoys l = 12.25 hours of leisure. b. If she increases leisure to l = 16 hours, how much does she need to consume in order to maintain her level of utility in part (a)? C. If she decreases her leisure to l...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT