Question: Write a Pep/9 assembler program that divides a number by a number by shifting right and subtracting. Each shift right halves the number. For example,
Write a Pep/9 assembler program that divides a number by a number by shifting right and subtracting. Each shift right halves the number. For example, if we shift 0x02 one bit to the right the answer is 0x01 (0000 0010 shifted left is 0000 0001). Divide 0x28 by 0x10 (in decimal it is 40 divided 16, but leave the answer in hex). Also indicate how many right shifts would need to be done?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
