Question: microprocessor ( assemply language) In this code we need to compute the length of this string. Here we write the length directly. The real question

microprocessor ( assemply language)
In this code we need to compute the length of this string.
Here we write the length directly. The real question we need to rewrite this code to be able to compute the length automatically by using counter
microprocessor ( assemply language) In this code we need to compute the
length of this string. Here we write the length directly. The real
question we need to rewrite this code to be able to compute

SCAS 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 quit: ret 10 MA X drive help extended value viewer walche AX Step delay ms: 100 word bylo H 07 hec L 16 ber 00000111 010001 007 106 original source code o model small 02 03 data 04 DATA1 DB os .code 06 07 main prog 08 MOV AX, @DATA 09 MOV DS. AX 10 MOV ES, AX 11 12 mov di.OFFSET DATA1 13 mov al, 'F' 14 mov cl. 8 15 cld 16 repne scasb 18 dec di 19 20 quit: ret 21 22 endp 0711:0014 MOV DI, 09000h MOV AL, 046h MOV CL, 08h CLD REPNE SCASB JNE 014h DEC DI RET NOP NOP NOP NOP NOP NOP oct: decimus unsigned signed 7 70 7 70 atcit F decimal 16 untigned 1862 tigned 1862 flags CF O vars debug stack flags ZF 0 SF 0 ; qui ; fou OF PF AF F CAS DATA1 DB 'ABCDEFGH A 08 7 6 ; DI points to the string ; search for the letter E mov di,OFFSET DATA1 mov al, 'F' MOV CX,08 cld repne scasb inz quit dec di D ; direction forward ; repeat while not equal ; quit if letter not found ; found: back up DI & Acho fuit: ret 10 MA AA UB EK HF HP MOET AV

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!