I want this value accessible in C because I need to know what the current tileset is. I tried this:
Code: Select all
extern unsigned char * tile_table_lo;
extern unsigned char * tile_table_hi;
Code: Select all
undefined reference to `tile_table_lo'
undefined reference to `tile_table_hi'
I would like to read the bytes for a tile so that I can compare each pixel byte against another tile which is a ram tile.
I could hard-code my tileset address in there but that doesn't sound like the best idea. I would rather not have to store whatever the tileset addresses are since I assume they could be accessed otherwise.
Any help?