Question: Using assembly languages ((emu 8086)). I need simple and short(.model small) solution. Solution must be beginner level. I need different solutions, from other chegg Q&A
Using assembly languages ((emu 8086)). I need simple and short(.model small) solution. Solution must be beginner level. I need different solutions, from other chegg Q&A
Write a program to automatically find the length of "abcdefgh" or "abc" or "abcd" in the "mov cx" command.
(In the image, the length of 'abcdefg' is defined manually (mov cx, 08)

DATA1 DB 'ABCDEFGH'. ; DI points to the string ; search for the letter F mov di,OFFSET DATA1 mov al, 'F' MOV CX,08 cld repne scasb jnz quit dec di i direction forward ; repeat while not equal ; quit if letter not found ; found: back up DI uit: ret
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
