Question

CMPE 263-SPRING 2019-HW-3 Hint. For all the codes required, run them in the Basic Computer Simula...

CMPE 263-SPRING 2019-HW-3

Hint. For all the codes required, run them in the Basic Computer Simulator with two print screens, one shows code, registers, memory involved before run, and the second after run. Without them, the mark will reduce to ½.

Q3. Assume in locations A and B resides two 8 bit signed magnitudenumbers. Write an assembly subroutine code to multiply them and saves the result in C location. Start your code from 100. The code should be general for any sign of A and B numbers.

Try the code for A and B as positive and negative respectively, then, for both of them as negative numbers.

                        ORG    100

                        BSA     MUL

            A         HEX     0080

            B          HEX     1004

            C          HEX     0000

                        HLT

I need the solution using assembly language like the table above, please..!!!!

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

Assume c5:code, Ds: dato. data Seament data ends code Segment START MOV Ax,data MOV DS, AX Mov BL, No THUL BL HOV Na AX CODE

Add a comment
Know the answer?
Add Answer to:
CMPE 263-SPRING 2019-HW-3 Hint. For all the codes required, run them in the Basic Computer Simula...
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
  • CMPE 263-SPRING 2019-HW-3 Hint. For all the codes required, run them in the Basic Computer Simulator...

    CMPE 263-SPRING 2019-HW-3 Hint. For all the codes required, run them in the Basic Computer Simulator with two print screens, one shows code, registers, memory involved before run, and the second after run. Without them, the mark will reduce to ½. Q2. Write a subroutine code to divide two positive numbers by repeated subtraction method. For example, to divide 100 over 8 by subtracting 8 from 100 until the reminder be less than 8, then count the times of the...

  • CMPE 263-SPRING 2019-HW-3 Hint. For all the codes required, run them in the Basic Computer Simula...

    CMPE 263-SPRING 2019-HW-3 Hint. For all the codes required, run them in the Basic Computer Simulator with two print screens, one shows code, registers, memory involved before run, and the second after run. Without them, the mark will reduce to ½. Q1.Write a program loop using a pointer and a counter that get the negative of the contents of memory locations 300through 30F.

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