This commit is contained in:
spikey 2024-02-17 23:47:57 -05:00
parent b7925a9071
commit c57a7addab
2 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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);
}