Guest User

Untitled

a guest
Apr 25th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.38 KB | None | 0 0
  1. unsigned int* Char_BaseRAM = CHAR_BASE_ADR(0);
  2.  
  3. u16* Map_BaseRAM = MAP_BASE_ADR(4);
  4.  
  5. //initialise
  6. int loop3;
  7. for(loop3 = 0; loop3 < 256*8; loop3++)
  8.   Char_BaseRAM[loop3+8] = fontData_1[loop3];
  9.  
  10. //Draw function
  11.  
  12. void printFont(u8 posX, u8 posY, u8 fontNum, u8 palletNum)
  13. {
  14. Map_Mem_Location[(posX * 32) + posY] = ((fontNum << 0)| (0 << 10) | (0 << 11)
  15. | (palletNum <<12));
  16. }
Add Comment
Please, Sign In to add comment