TakaIsSilly!
http://phemusat.tripod.com/bgdebug.zip (main.c)
Got working foreground with background (but foreground uses background tiles).
If switch slPageNbg0 to tile_data from tile_data2 (tile_data2 is the bg tiles, tile_data is fg tiles) somehow BG layer not displayed only fg layer.
slPageNbg0 is the foreground page
when for both slPageNbg0 and Nbg1 we use tile_data2 - we have foreground and background layer working together ok.
Ok, please, look at this version code.
http://phemusat.tripod.com/bgdebug.zip (main.c)
Got working foreground with background (but foreground uses background tiles).
If switch slPageNbg0 to tile_data from tile_data2 (tile_data2 is the bg tiles, tile_data is fg tiles) somehow BG layer not displayed only fg layer.
slPageNbg0 is the foreground page
when for both slPageNbg0 and Nbg1 we use tile_data2 - we have foreground and background layer working together ok.
Ok, please, look at this version code.