added 4kb bound thing
This commit is contained in:
parent
2374905355
commit
32c1e278b6
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
11
sys/video.c
11
sys/video.c
|
@ -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++) {
|
||||
|
|
Loading…
Reference in New Issue