Re: A82: Ldir command


[Prev][Next][Index][Thread]

Re: A82: Ldir command




>When using LDIR, HL points to the source and DE to the destination. BC 
>contains the number of bytes to copy, but you probably already knew 
that.
>
>In the examples you gave, TEXT_MEM2 is copied to GRAPH_MEM-192 so 
>you'll need to switch those if you want to copy GRAPH_MEM-192 to 
>TEXT_MEM2
>
>          ld       hl,GRAPH_MEM-192    
>          ld       de,TEXT_MEM2      
>          ld       bc,128          
>          ldir                         
> 
> 
>          ld       hl,GRAPH_MEM-64
>          ld       de,TEXT_MEM+64  
>          ld       bc,64           
>          ldir      
>
>Wouter
>
   If thats the case, then something is very wrong. My original way 
seems to work fine. When I switch it to the correct way, a STAT_PLOT 
error occurs when you try to graph in the TI-OS. Unless someone reports 
a bug, I'll keep BD as is even if it is techinically wrong.

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com