Sets an internal pointer to the tileset that will be used when drawing tilemaps with etm-2x4 functions.
void cpct_etm_setTileset2x4 (const void* ptileset) __z88dk_fastcall;
(2B HL) ptileset | Pointer to the start of the tileset (array of pointers to tile definitions) |
call cpct_etm_setTileset2x4_asm
This function sets the internal pointer tileset that will be used by Easytilemap tile-drawing functions. The function inserts the pointer value into the required functions’ code to make that functions load the pointer value by default and use it. Concretely, it modifies the internal code of the cpct_etm_drawTileRow2x4 function. This also implies that using this function will automatically include cpct_etm_drawTileRow2x4’s code in the created binary.
A tileset is an ordered array of pointers (2-bytes each) to tiles. Tiles are expected to be defined as 2x4-bytes arrays with screen pixel data.
none
2 bytes
Case | microSecs (us) | CPU Cycles ----------------------------------------- Any | 9 | 36 -----------------------------------------