Question: Write an assembly program in TASM that decides whether two strings are completely matched or not. You may use the below strings to test in

 Write an assembly program in TASM that decides whether two stringsare completely matched or not. You may use the below strings to

Write an assembly program in TASM that decides whether two strings are completely matched or not. You may use the below strings to test in your code. You should report the result of the matching as true or false (true = 1 or T, false = 0) or F in RESULT). .DATA INPUTI DB 'COLORS INPUT2 DB COLOURS RESULT DB? Hint: Use the following code piece in your code segment. Fill the rest of the code according to the problem. ; from code segment: CLD MOV DI, OFFSET INPUT1 ; DI = INPUTI OFFSET MOV SI, OFFSET INPUT2 ; SI = INPUT2 OFFSET MOV CX, 5; load the counter REPE CMPSB ; repeat until or not equal or CX=0 Write an assembly program in TASM to perform following operations: a) Find the lowest value occurred while summing the sequence of numbers which is located below array. .DATA SIGN_DATA DB +25, -78, -95, +22, -69, +25, -85, +47,-39 LOWEST DB? b) Find the average value of the same array. Note that you do not have to handle any overflow that may occur (result of the sum is in range [-255, +255) thus you do not have to use CBW/CWD). .DATA SIGN_DATA DB +25, -78, -95, +22, -69, +25, -85, +47,-39 SUM DB? AVERAGE DB? c) Lets assume that we add -99 at the end of this array. Now, write an assembly program or extend your previous assembly program so that you can compute sum of the below array. .DATA SIGN_DATA DB +25, -78, -95, +22,-69, +25, -85, +47, -39, -99 SUMDW ? Hint: CBW/CWD instructions

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!