Heres some code that i think may help. The comments should explain it all.
`simple test setup
sync on : sync rate 100
backdrop off
`make a simple image to display
box 0, 0, 19, 19
get image 1, 0, 0, 19, 19, 1
cls
`initialy you will want to read all the data and place it into an array
dim map(10,5)
for n=1 to 5
for m=1 to 10
read variable
map(m,n)=variable
next m
next n
`view loop
do
`now paste the image tile to the screen where data specifies
for n=1 to 5
for m=1 to 10
if map(m,n)=1 then paste image 1, m*20, n*20 :` 20 times as that is the size of the image
next m
next n
sync
loop
`data block
data 0,1,1,1,0,1,0,1,0,1
data 0,1,1,1,0,0,0,0,0,0
data 0,0,0,0,0,1,1,1,1,1
data 1,1,1,1,1,1,1,1,1,1
data 1,1,1,1,1,1,1,1,1,1
OR you could do it a simpler way as follows...
`simple test setup
sync on : sync rate 100
backdrop off
`make a simple image to display
box 0, 0, 19, 19
get image 1, 0, 0, 19, 19, 1
cls
`view loop
do
`now paste the image tile to the screen where data specifies
for n=1 to 5
for m=1 to 10
read variable
if variable=1 then paste image 1, m*20, n*20, 1
next m
next n
`reset the data pointer to first data entry.
restore
sync
loop
`data block
data 0,1,1,1,0,1,0,1,0,1
data 0,1,1,1,0,0,0,0,0,0
data 0,0,0,0,0,1,1,1,1,1
data 1,1,1,1,1,1,1,1,1,1
data 1,1,1,1,1,1,1,1,1,1
Specs:- 1GHZ athlon, Radeon8500, 192mb ram, winxp