×
Get Full Access to Electrical Engineering: Principles & Applications - 6 Edition - Chapter 8 - Problem P8.46
Get Full Access to Electrical Engineering: Principles & Applications - 6 Edition - Chapter 8 - Problem P8.46

×

# Suppose that register B contains a twodecimal-digit BCD

ISBN: 9780133116649 150

## Solution for problem P8.46 Chapter 8

Electrical Engineering: Principles & Applications | 6th Edition

• Textbook Solutions
• 2901 Step-by-step solutions solved by professors and subject experts
• Get 24/7 help from StudySoup virtual teaching assistants

Electrical Engineering: Principles & Applications | 6th Edition

4 5 1 333 Reviews
19
4
Problem P8.46

Suppose that register B contains a twodecimal-digit BCD number n. Write a subroutine called CONVERT that replaces the content of register B by its binary equivalent. The content of the other registers (except the program counter) should be unchanged at the completion of the subroutine. Memory locations \$1A, \$1B, and \$1C can be used for temporary storage. [Hint: We need to separate the upper nibble (four bits) of n from its lower nibble. This can be achieved by shifting n four bits to the left, with the result appearing in the D register. Shifting by four bits to the left is accomplished by multiplying by 24.]

Step-by-Step Solution:
Step 1 of 3

Date of Exam: March 9, 2016 Midterm 2 Study Guide: ● The exam will focus on three questions like the last one. ● The first question will be focusdecision­making cases ○ You have to choos​ out of 5 cases ○ For each one you have to analyze it bas​ levels (personal, domestic, regional and global) ● The second question will be focused​rotocol cases ○ More specificalthe visit of chairman Deng and the marriage of Maxima and king of Holland ● The third question will be focus​R is changing ● Decision Making: ○ Professor said to answer it in bullet points making sure to hit all the points in the outline and add two or three sente

Step 2 of 3

Step 3 of 3

#### Related chapters

Unlock Textbook Solution