+void vga_clearline(int row)
+{
+ uint16_t *ptr;
+
+ row += yoffs;
+
+ ptr = (uint16_t*)0xb8000 + row * 80;
+ memset16(ptr, attr, 80);
+
+ if(row - 25 >= 0) {
+ /* write a copy to wrap-around future scrolling */
+ ptr -= 80 * 25;
+ memset16(ptr, attr, 80);
+ }
+}
+