system/boot/debug.c
/*
    Scrolls the screen by a character height.  A bit slow as reading from screen
   buffer
    memory and then writing back to screen buffer memory.
 */
Scrolls the screen by a character height.  A bit slow as reading from screen
buffer
memory and then writing back to screen buffer memory.
Scrolls the screen by a character height . A bit slow as reading from screen buffer memory and then writing back to screen buffer memory .
static void KScrollScreen(void) {
  long x, y;
  for (y = 0; y < screen_height - 8; y++) {
    for (x = 0; x < screen_width; x++) {
      *(uint16 *)((vm_addr)screen_buf + y * screen_pitch + x * 2) =
          *(uint16 *)((vm_addr)screen_buf + (y + 8) * screen_pitch + x * 2);
    }
  }
  for (y = screen_height - 8; y < screen_height; y++) {
    for (x = 0; x < screen_width; x++) {
      *(uint16 *)((vm_addr)screen_buf + y * screen_pitch + x * 2) = 0;
    }
  }
}
static void KScrollScreen ( void ) { long x , y ; for ( y = 0 ; y < screen_height - 8 ; y ++ ) { for ( x = 0 ; x < screen_width ; x ++ ) { * ( uint16 * ) ( ( vm_addr ) screen_buf + y * screen_pitch + x * 2 ) = * ( uint16 * ) ( ( vm_addr ) screen_buf + ( y + 8 ) * screen_pitch + x * 2 ) ; } } for ( y = screen_height - 8 ; y < screen_height ; y ++ ) { for ( x = 0 ; x < screen_width ; x ++ ) { * ( uint16 * ) ( ( vm_addr ) screen_buf + y * screen_pitch + x * 2 ) = 0 ; } } }
Scrolls the screen by a character height.
Scrolls the screen by a character height .