{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Lecture16

# Lecture16 - 0306-250 Assembly Language Programming Lecture...

This preview shows pages 1–10. Sign up to view the full content.

0306-250 Assembly Language Programming Lecture Sixteen: Multiplication and Division Multiply and Divide Instructions Test Instructions Load Effective Address Instructions Subroutine Example: Matrix Scale

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
Multiply and Divide Instructions 2 S12CPUV2 Reference Manual , p. 64
MUL Instruction 3 S12CPUV2 Reference Manual , p. 238

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
Test Instructions 4 S12CPUV2 Reference Manual , p. 62
TSTA Instruction 5 S12CPUV2 Reference Manual , p. 300

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
LEAS Instruction 7 S12CPUV2 Reference Manual , p. 220

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
Matrix Scale Subroutine Example 8 Integer scale of integer matrix— multiplies each element in matrix by a scalar value oe oe oe oe oe oe û ø OE OE OE OE OE OE º Ø = oe oe oe oe oe oe û ø OE OE OE OE OE OE º Ø 9 3 6 0 15 12 6 15 9 3 0 9 0 9 0 9 12 3 15 0 15 12 9 6 3 3 1 2 0 5 4 2 5 3 1 0 3 0 3 0 3 4 1 5 0 5 4 3 2 1 3
Matrix Scale Subroutine Parameters 9 Register usage “agreement” for design Inputs Stack: scale factor (signed word)—value X :

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern