[A83] Re: Map question
[Prev][Next][Index][Thread]
[A83] Re: Map question
ld h,0
ld l,a
add hl,hl ;*2
add hl,hl ;*4
add hl,hl ;*8
ld de,data
add hl,de ;add to level offset
In a message dated 3/17/2001 5:24:49 PM Eastern Standard Time,
Mike3465@aol.com writes:
> Ok, i'm making a map program to use for an rpg I'm thinking about, and i was
> wondering if i could do this:
>
> (normal code, and then some to get the tile num(0-255) into a)
> ld f,0
> sla a
> sla a
> sla a ;same as a=a*8;
> add hl,af ;or should i exchange a to f? I'm not sure, i want to add
> the
> offset of ;the tile(a) to the tile data(hl) any help here?
> (normal code to display tile located at hl)
>
> would that work? or do i need to exchange a and f to get the right code? or
> could i just say " add hl,a" and that work?
>
> Any help would be....helpfull
----
Jonah Cohen
<ComAsYuAre@aol.com>
http://jonah.ticalc.org