plese can you help me in this question
Given an array of two digits numbers with each digit is stored as a character, do the following:
a. Write a function FINDMIN that will find the smallest number among a set of numbers.
b. Write a function FINDMAX that will find the largest number among a set of numbers.
c. Given the following array X=12,23,14,16, write a program that will use findmax and findmin functions. Remember X is an array of two digits numbers which are stored as characters and not numbers. That is, 12 is stored in two bytes as:32H in the most byte and 31H in the most byte
i've written the code but my numbers are stored as a byte hex numbers how can it be stored as two bytes?
this was the code i wrote:
X db 12,23,14,16
siz db 4
min db ?
max db ?
ASSUME CS:CODE, DS: DATA
MOV AX,DATA ;data seg. initialization
;---- Functions Calling ----
;----- FINDMAX function --------
FINDMax proc near
GR: mov al,[SI]
HI: mov max,al
;----- FINDMIN function --------
FINDMIN proc near
LEE: mov al,[SI]
NEE: inc SI
LO: mov min,al