You must need to load map data into MAP1 between DIM MAP1[0] and BGLOAD , but there is no part to load map in your description.