A86: Question on tile maps (Repost)


[Next][Index][Thread]

A86: Question on tile maps (Repost)



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
inc hl
 
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).
 
thanks
akshay