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)

Using assembly languages ((emu 8086)). I need simple and short(.model small) solution.

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

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!