Question: using assembly language write a program to calculate the length of string in this photo belew which is the string is ABCDEFGH please be
DATA1 DB 'ABCDEFGH' mov di,OFFSET DATA1 mov al, 'F' MOV CX,08 cld ; DI points to the string ; search for the letter F repne scasb jnz quit dec di ; direction forward ; repeat while not equal ; quit if letter not found ; found: back up DI quit: ret
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
