Cido 05 37 57 67 BNE AGALN ¡no, branch CI02 END ¡yes, stop A CI04 CI05 CI06 A7 B 6 fend e107 て151 C153 64 C.I55] 0 6 end C158 C159

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
1. Execute the foiiowing instructions by hand, then find the final centents of X, Y and memory locati
$C159 to $C159.
Moving a Block of Memory from One Location to Ancther
Algorithm Description
In this prograH, we want to move the contents of block 1 ($CI00 to $CIO7) to block 2
($C150 to'? This means that the contents of $C100 (44H) will move to the contents
of $C150 and overwrite them and so on. After executing the program, the contents of the
two blocks should be same.
Remember, when we write any new data over existing data, the latter will be lost
and replaced by the new data.
MOve.aSm
STARTI · EQU $C100
EQU $CI.07
EQU $C150
: END
START2
ORG $CO00
#STARTI
#START2
;x points to 1st byte in block 1
:Y points to 1st byte in block 2
;get data from blockl
;stoře ít in block2
;incremerit 1st poi.nter
¡increment 2nd pointer
;reached bottom of the b
• LDX
LDY
AGATN
LDAA 0,X
STAA 0,Y
Memory
Cido
INX -
INY
CPX
#END
AGALN
;no, branch
05
37
57
67
BNE
END
A
¡yes, stop
CI04
Transcribed Image Text:1. Execute the foiiowing instructions by hand, then find the final centents of X, Y and memory locati $C159 to $C159. Moving a Block of Memory from One Location to Ancther Algorithm Description In this prograH, we want to move the contents of block 1 ($CI00 to $CIO7) to block 2 ($C150 to'? This means that the contents of $C100 (44H) will move to the contents of $C150 and overwrite them and so on. After executing the program, the contents of the two blocks should be same. Remember, when we write any new data over existing data, the latter will be lost and replaced by the new data. MOve.aSm STARTI · EQU $C100 EQU $CI.07 EQU $C150 : END START2 ORG $CO00 #STARTI #START2 ;x points to 1st byte in block 1 :Y points to 1st byte in block 2 ;get data from blockl ;stoře ít in block2 ;incremerit 1st poi.nter ¡increment 2nd pointer ;reached bottom of the b • LDX LDY AGATN LDAA 0,X STAA 0,Y Memory Cido INX - INY CPX #END AGALN ;no, branch 05 37 57 67 BNE END A ¡yes, stop CI04
Cido
Li 4
CP
05
37
57
67
84
A 7
B 6
BNE
AĞALN
;no, branch
CI02
END
¡yes, stop
A
CI04
CI05!
CI06
end
cisot
て151
C153
64
ラ31つ
C.I55
lend
C158
C159
OA
Transcribed Image Text:Cido Li 4 CP 05 37 57 67 84 A 7 B 6 BNE AĞALN ;no, branch CI02 END ¡yes, stop A CI04 CI05! CI06 end cisot て151 C153 64 ラ31つ C.I55 lend C158 C159 OA
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY