Advertisement
rezasurmar

Untitled

Mar 25th, 2016
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.35 KB | None | 0 0
  1. void FT800String (char *s){
  2.     int length, n, tmp = 0;
  3.     length = strlen(s) + 1;
  4.    
  5.     wr32(RAM_DL +  tmp, CLEAR(1, 1, 1));
  6.     wr32(RAM_DL +  tmp+4, BEGIN(BITMAPS));
  7.  
  8.     for(n = 0; n < length; n++){
  9.         wr32(RAM_DL + tmp, VERTEX2II(220+(8*n), 110, 19, *s));
  10.         tmp=tmp+4;
  11.     }
  12.     wr32(RAM_DL + tmp+4, END());
  13.     wr32(RAM_DL + tmp+8, DISPLAY());
  14.     wr32(REG_DLSWAP, 1);
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement