- Problem 4 10 Points The Idiv Instruction Is Described In The Cpu Manual As Follow Operation D X X Remainder D De 1 (31.9 KiB) Viewed 26 times
Problem 4 [10 points] The IDIV instruction is described in the CPU manual as follow: Operation: D+X→ X; Remainder → D De
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Problem 4 [10 points] The IDIV instruction is described in the CPU manual as follow: Operation: D+X→ X; Remainder → D De
Problem 4 [10 points] The IDIV instruction is described in the CPU manual as follow: Operation: D+X→ X; Remainder → D Description: Divides an unsigned 16-bit dividend in double accumulator D by an unsigned 16-bit divisor in index register X, producing an unsigned 16-bit quotient in X, and an unsigned 16-bit remainder in D. In the case of division by zero, C is set, the quotient is set to SFFFF, and the remainder is indeterminate. Assume this instruction is not available in the HCS12 instruction Set. Write a subroutine IDIV that would implement it without using the other division instructions!