A83: Maps, ldir and others


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

A83: Maps, ldir and others




Ok.. first lets get this cleared up.. why doesn't this work:

#define pshadowy1 sram+48
#define pshadowy2 sram+50
#define pshadowy3 sram+52
#define pshadowy4 sram+54
#define pshadowy5 sram+56
#define pshadowy6 sram+58
#define pshadowy7 sram+60
#define pshadowy8 sram+62


other stuff.....


     ld hl,pshadowy1
     ld de,pshadowy2
     ld  bc, 14
     ldir

this should put pshadowy1 into pshadowy2.. ect.., but it doesn't.. why?

Also.. would this be feasable.. to make a map.. could you create a program
with a begging line that defined the map size... an then all the pieces of
the map would corospond with a matching sprite to be displayed on the
screen. like F would coraspond with a tree graphic... it  would be a pain to
make, but would it be reasonable to code? what about speed? would it be
insanly slow?

thanks..

Varth
johnm@ipeg.com