Re: A86: Question on tile maps
[Prev][Next][Index][Thread]
Re: A86: Question on tile maps
how would i get the decimal version of what is in the map? right now, i
have that same map, except the numbers are in decimal like this:
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
how would i read what decimal number is in a position of the map? i think i
have a routine that works, but i am not sure. i have attached it so that if
anyone can help me, they can. unfortunately, it might be a bit hard to
read. the only comments are the ones that tell you the inputs and outputs of
the two routines that i made. i would appreciate any help.
thanks
akshay
----- Original Message -----
From: SANNIER Olivier <obones@hotmail.com>
To: <assembly-86@lists.ticalc.org>
Sent: Wednesday, January 27, 1999 3:54 AM
Subject: 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
>
>
- Warning
- Could not process part with given Content-Type:
application/x-zip-compressed; name="chstest.zip"