Microprocessor exercise
Solved
youssef890
Posted messages
22
Status
Member
-
Tàha -
Tàha -
Hello,
the exercise is:
We want to transfer data from memory zone 1 to memory zone 2.
The start and end addresses of the two memory zones are given:
Memory zone 1: Adr_deb1=10000H, Adr_fin1=10100H.
Memory zone 2: Adr_deb2=20000H, Adr_fin2=20100H
propose a solution
the exercise is:
We want to transfer data from memory zone 1 to memory zone 2.
The start and end addresses of the two memory zones are given:
Memory zone 1: Adr_deb1=10000H, Adr_fin1=10100H.
Memory zone 2: Adr_deb2=20000H, Adr_fin2=20100H
propose a solution
Configuration: Windows XP Internet Explorer 6.0
LDX #$ 10000 START
LDY #$ 20000
LDA 0,X+
STA 0,Y+
CMPX #$ 10100
BLS (-7)
SWI END
Note: the addresses need to be in hexadecimal.