Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- unsigned int* Char_BaseRAM = CHAR_BASE_ADR(0);
- u16* Map_BaseRAM = MAP_BASE_ADR(4);
- //initialise
- int loop3;
- for(loop3 = 0; loop3 < 256*8; loop3++)
- Char_BaseRAM[loop3+8] = fontData_1[loop3];
- //Draw function
- void printFont(u8 posX, u8 posY, u8 fontNum, u8 palletNum)
- {
- Map_Mem_Location[(posX * 32) + posY] = ((fontNum << 0)| (0 << 10) | (0 << 11)
- | (palletNum <<12));
- }
Add Comment
Please, Sign In to add comment