Re: A86: Question on tile maps


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

Re: A86: Question on tile maps




>From: "Akshay Dhalwala" <akdjr@SoftHome.net>
>To: "86asm Mailing List" <assembly-86@lists.ticalc.org>
>Subject: A86: Question on tile maps
>Date: Tue, 26 Jan 1999 16:32:20 -0800
>Reply-To: assembly-86@lists.ticalc.org
>
>i have a question for tile maps.  suppose i have the following map:
>Map1:
>.db $1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1
>.db $1,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$1
>.db $1,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$1
>.db $1,$0,$0,$0,$0,$0,$2,$2,$2,$0,$0,$0,$0,$0,$0,$1
>.db $1,$0,$0,$0,$0,$0,$2,$2,$2,$0,$0,$0,$0,$0,$0,$1
>.db $1,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$1
>.db $1,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$1
>.db $1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1,$1
>
>if i do  the following:
>ld hl,Map1

At this point, hl points to the beginning of your map, it means that it 
contains the address of the first element of your map.

>inc hl

At this point, hl points to the second element of the map

>


>would hl contain the first element of the map? or when i load hl with 
>the map, does it already point to the first element?  Also, <add hl,de> 
would move to the next row right? (de has 16 in it).
>
This will make hl points to one line beyond the original line (if de 
contains 16)

>thanks
No problem
>akshay
>



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