Computer Networking: A Top-Down Approach (7th Edition)
Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN: 9780133594140
Author: James Kurose, Keith Ross
Publisher: PEARSON
Bartleby Related Questions 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
expand button
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
expand button
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
Check Mark
Knowledge Booster
Background pattern image
Similar questions
Recommended textbooks for you
Text book image
Computer Networking: A Top-Down Approach (7th Edi...
Computer Engineering
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:PEARSON
Text book image
Computer Organization and Design MIPS Edition, Fi...
Computer Engineering
ISBN:9780124077263
Author:David A. Patterson, John L. Hennessy
Publisher:Elsevier Science
Text book image
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:9781337569330
Author:Jill West, Tamara Dean, Jean Andrews
Publisher:Cengage Learning
Text book image
Concepts of Database Management
Computer Engineering
ISBN:9781337093422
Author:Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:Cengage Learning
Text book image
Prelude to Programming
Computer Engineering
ISBN:9780133750423
Author:VENIT, Stewart
Publisher:Pearson Education
Text book image
Sc Business Data Communications and Networking, T...
Computer Engineering
ISBN:9781119368830
Author:FITZGERALD
Publisher:WILEY