Step1. The following code copies a string from source to target: .data source BYTE "This is the source string",0 target BYTE SIZEOF source DUP (0) .code L1: mov esi, 0 mov ecx SIZEOF source mov mov target at source[esi] target[si], al inc esi loop L1 Imov edx, OFFSET source call WriteString moved, OFFSET target call WriteString ; index register ; loop counter ; get char from source ; store it in the ; move to next character ; repeat for entire string Rewrite the program using indirect addressing rather than indexed addressing.

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter9: Advanced Array Concepts
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
Step 1. The following code copies a string from source
to target:
.data
source
BYTE "This is the source string",0
target BYTE SIZEOF source DUP (0)
. code
L1:
mov esi, 0
mov ecx SIZEOF source
mov al source[esi]
mov target[esi), al
target
inc eşi
loop L1
mov edx, OFFSET source
call WriteString
mov edx, OFFSET target
call WriteString
; index register
; loop counter
; get char from source
; store it in the
; move to next character
; repeat for entire string
Rewrite the program using indirect addressing rather
than indexed addressing.
Transcribed Image Text:Step 1. The following code copies a string from source to target: .data source BYTE "This is the source string",0 target BYTE SIZEOF source DUP (0) . code L1: mov esi, 0 mov ecx SIZEOF source mov al source[esi] mov target[esi), al target inc eşi loop L1 mov edx, OFFSET source call WriteString mov edx, OFFSET target call WriteString ; index register ; loop counter ; get char from source ; store it in the ; move to next character ; repeat for entire string Rewrite the program using indirect addressing rather than indexed addressing.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
File Input and Output Operations
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT