This commit is contained in:
MonkeyGG2 2024-02-18 09:14:54 -05:00
commit 5aa2889ca0
3 changed files with 9 additions and 7 deletions

View File

@ -20,10 +20,11 @@
*/
#define START 0xb80f1
#define SIZE 16384
#define USABLE(m) m + sizeof(s32) + sizeof(void *)
#define NEXT(m) (void *) *m
#define SIZE(m) (s32) m[sizeof(void *)]
void *start = 0x0 ;
void *start = 0x0;
#endif

View File

@ -45,4 +45,6 @@ sysinit(void)
"Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter."
"Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter."
"bob", 2003, 0x0F);
vga_write("indian", 6, 0x07);
vga_write("indian", 6, 0x07);
}

View File

@ -7,11 +7,12 @@ vga_write(s8 *sequence, s16 size, s8 flags)
if (size > VGA_TEXT_SIZE) {
s16 using_size = size - VGA_TEXT_SIZE;
for (s16 i = 0; i <= VGA_SIZE; i++) {
vga_vidmem[i] = sequence[using_size + i];
vga_vidmem[++i] = flags; }
for (s16 i = 0; i <= VGA_TEXT_SIZE; i++) {
vga_vidmem[i * 2] = sequence[using_size + i];
vga_vidmem[i * 2 + 1] = flags;
}
unused = 4000;
unused = VGA_SIZE;
return;
}
@ -21,8 +22,6 @@ vga_write(s8 *sequence, s16 size, s8 flags)
for (s16 i = 0; i <= (unused = VGA_SIZE - needed_space); i++) {
vga_vidmem[i] = vga_vidmem[needed_space + i];
}
unused--;
unused--;
}
for (s16 i = 0; i < size; i++) {