system/boot/debug.c
/*!
    Print a single character onto the screen.
*/
Print a single character onto the screen.
Print a single character onto the screen .
static void PrintChar(int x, int y, char ch) {
  uint8 r, c;
  uint8 bit_row;
  for (r = 0; r < 8; r++) {
    for (c = 0; c < 8; c++) {
      bit_row = font8x8_basic[(unsigned char)ch][r];
      if ((1 << c) & bit_row) {
        *(uint16 *)((vm_addr)screen_buf + (y + r) * screen_pitch +
                    ((x + c) * 2)) = pen_color;
      }
    }
  }
}
static void PrintChar ( int x , int y , char ch ) { uint8 r , c ; uint8 bit_row ; for ( r = 0 ; r < 8 ; r ++ ) { for ( c = 0 ; c < 8 ; c ++ ) { bit_row = font8x8_basic [ ( unsigned char ) ch ] [ r ] ; if ( ( 1 << c ) & bit_row ) { * ( uint16 * ) ( ( vm_addr ) screen_buf + ( y + r ) * screen_pitch + ( ( x + c ) * 2 ) ) = pen_color ; } } } }
Print a single character onto the screen.
Print a single character onto the screen .