Microprocessor exercise

Solved
youssef890 Posted messages 22 Status Member -  
 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
Configuration: Windows XP Internet Explorer 6.0

6 answers

  1. Où es-tu Mr Wirth ?
     
    ```html debut equ 1000h
    fin equ 1010h
    ld ab,debut
    ld hl,fin
    ld bc,fin-debut+1
    ldir

    you need to adapt this to a modern proc... because this one is limited to 64k ```
    5
    1. Tàha
       
      Here is the solution


      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.
      0