testing
This commit is contained in:
parent
b7925a9071
commit
c57a7addab
@ -16,10 +16,10 @@ vga_write(s8 *sequence, s16 size, s8 flags)
|
||||
return;
|
||||
}
|
||||
|
||||
s16 needed_space = size + unused - VGA_TEXT_SIZE;
|
||||
s16 needed_space = (size + unused) * 2 - VGA_SIZE;
|
||||
if (needed_space >= 0) {
|
||||
for (s16 i = 0; i <= VGA_SIZE - needed_space; i++) {
|
||||
vga_vidmem[i] = vga_vidmem[i + needed_space];
|
||||
vga_vidmem[i] = vga_vidmem[i++ + needed_space];
|
||||
}
|
||||
|
||||
unused = VGA_SIZE - needed_space;
|
||||
|
@ -4,9 +4,9 @@ void
|
||||
sysinit(void)
|
||||
{
|
||||
vga_clearscreen();
|
||||
for (s16 i = 0; i < 51; i++) {
|
||||
for (s16 i = 0; i < 100; i++) {
|
||||
vga_write("Om Smart.", 9, 0x0F);
|
||||
vga_write("Om Smarter.", 11, 0x0F);
|
||||
}
|
||||
//vga_write("fish stick.", 10, 0x07);
|
||||
vga_write("fish stick.", 10, 0x07);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user