Merge branch 'main' of https://git.disroot.org/dvonik/omos-tcnj2024
This commit is contained in:
commit
5aa2889ca0
@ -20,10 +20,11 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#define START 0xb80f1
|
#define START 0xb80f1
|
||||||
|
#define SIZE 16384
|
||||||
#define USABLE(m) m + sizeof(s32) + sizeof(void *)
|
#define USABLE(m) m + sizeof(s32) + sizeof(void *)
|
||||||
#define NEXT(m) (void *) *m
|
#define NEXT(m) (void *) *m
|
||||||
#define SIZE(m) (s32) m[sizeof(void *)]
|
#define SIZE(m) (s32) m[sizeof(void *)]
|
||||||
|
|
||||||
void *start = 0x0 ;
|
void *start = 0x0;
|
||||||
|
|
||||||
#endif
|
#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."
|
||||||
"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);
|
"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) {
|
if (size > VGA_TEXT_SIZE) {
|
||||||
s16 using_size = size - VGA_TEXT_SIZE;
|
s16 using_size = size - VGA_TEXT_SIZE;
|
||||||
|
|
||||||
for (s16 i = 0; i <= VGA_SIZE; i++) {
|
for (s16 i = 0; i <= VGA_TEXT_SIZE; i++) {
|
||||||
vga_vidmem[i] = sequence[using_size + i];
|
vga_vidmem[i * 2] = sequence[using_size + i];
|
||||||
vga_vidmem[++i] = flags; }
|
vga_vidmem[i * 2 + 1] = flags;
|
||||||
|
}
|
||||||
|
|
||||||
unused = 4000;
|
unused = VGA_SIZE;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -21,8 +22,6 @@ vga_write(s8 *sequence, s16 size, s8 flags)
|
|||||||
for (s16 i = 0; i <= (unused = VGA_SIZE - needed_space); i++) {
|
for (s16 i = 0; i <= (unused = VGA_SIZE - needed_space); i++) {
|
||||||
vga_vidmem[i] = vga_vidmem[needed_space + i];
|
vga_vidmem[i] = vga_vidmem[needed_space + i];
|
||||||
}
|
}
|
||||||
unused--;
|
|
||||||
unused--;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for (s16 i = 0; i < size; i++) {
|
for (s16 i = 0; i < size; i++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user