Rcises 1 Write Subroutine Create Time Delay Multiple Ms Multiple Passed Register R16 Assum Q27958317
Please help with E5.6rcises 1 Write a subroutine that can create a time delay that is a multiple of I ms. The multiple is passed in register r16, assuming that the CPU clock is 16 MHz. E5.2 Write a subroutine that can create a time delay that is a multiple of 10 ms. The multiple is passed in rl6, assuming that the CPU clock is 16 MHz. E5.3 Write a subroutine that can divide a 16-bit signed integer into another 16-bit signed int- eger. The dividend and divisor are passed in registers r16-r17 and r18-T19, respectively. The quotient and remainder are returned in r24-125 and r22-123, respectively. E5.4 Write a subroutine that can divide a 32-bit unsigned integer into another 32-bit unsigned integer. The dividend is passed in registers r16-r19, and the divisor is passed in the stack. The quotient is returned in registers r22-125, and the remainder is returned in registers r16-119. E5.5 Write a subroutine that can divide a 32-bit signed integer into another 32-bit signed int- eger. The dividend is passed in registers r16-r19, and the divisor is passed in the stack. The quotient is returned in registers r22-125, and the remainder is returned in registers r16-r19. E5.6 Write a subroutine to find the number of elements in an array that are a multiple of 5. The pointer to the array is passed in r30-r31, whereas the array count is passed in r16. The array has no more than 255 16-bit unsigned integers. The subroutine returns the result in register r22. E5.7 Write a subroutine to find the greatest common divisor of two 16-bit unsigned integers. Two integers are passed in registers r16-r17 and rl8-r19, respectively. The god is returned in har hae the following prop- Show transcribed image text rcises 1 Write a subroutine that can create a time delay that is a multiple of I ms. The multiple is passed in register r16, assuming that the CPU clock is 16 MHz. E5.2 Write a subroutine that can create a time delay that is a multiple of 10 ms. The multiple is passed in rl6, assuming that the CPU clock is 16 MHz. E5.3 Write a subroutine that can divide a 16-bit signed integer into another 16-bit signed int- eger. The dividend and divisor are passed in registers r16-r17 and r18-T19, respectively. The quotient and remainder are returned in r24-125 and r22-123, respectively. E5.4 Write a subroutine that can divide a 32-bit unsigned integer into another 32-bit unsigned integer. The dividend is passed in registers r16-r19, and the divisor is passed in the stack. The quotient is returned in registers r22-125, and the remainder is returned in registers r16-119. E5.5 Write a subroutine that can divide a 32-bit signed integer into another 32-bit signed int- eger. The dividend is passed in registers r16-r19, and the divisor is passed in the stack. The quotient is returned in registers r22-125, and the remainder is returned in registers r16-r19. E5.6 Write a subroutine to find the number of elements in an array that are a multiple of 5. The pointer to the array is passed in r30-r31, whereas the array count is passed in r16. The array has no more than 255 16-bit unsigned integers. The subroutine returns the result in register r22. E5.7 Write a subroutine to find the greatest common divisor of two 16-bit unsigned integers. Two integers are passed in registers r16-r17 and rl8-r19, respectively. The god is returned in har hae the following prop-