Question
write an assembly language subordinate count according to these specs: accepts a pointer to an array or signed words in register X. Accepts a word value in register Y, which indicates the number of array elementsl Returns the number (i.e. count) of nonzero array elements in register D. On returnm preserves contents of all registers, other than the result return register.