Skip to content

Commit 04fef21

Browse files
committed
* Implemented semi scrolling
* Bumped kernel version to 2.3.1
1 parent a6e46af commit 04fef21

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

Include/Public_VAR.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
inline char* OS_NAME = "SectorOS";
55

66
inline char* KERNEL_NAME = "SectorOS";
7-
inline char* KERNEL_VERSION = "V2.2.2";
8-
inline char* KERNEL_BUILD = "Build: 2022-01-08";
7+
inline char* KERNEL_VERSION = "V2.3.1";
8+
inline char* KERNEL_BUILD = "Build: 2022-01-09";
99
inline char* KERNEL_ARCH = "x86";
1010

1111
inline char* SHELL_NAME = "SOSH";

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,4 +104,4 @@ stopVBOX:
104104
.PHONY: clean
105105
clean:
106106
@printf "\e[1;31mCleaning the object files...\n\e[0m"
107-
@rm -f $(objects) SectorOS_Kernel.bin SectorOS.iso
107+
@rm -f $(objects) CPU/shutdown.o SectorOS_Kernel.bin SectorOS.iso

kernel/kernel.cpp

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -700,9 +700,12 @@ void printf(char *str)
700700
if (y >= 25)
701701
{
702702
// ColourPrint(1);
703+
char *foo = " ";
703704
isused = true;
705+
for (int i = 0; i != 80; i++)
706+
foo[i] = VideoMemory[80 * 24 + i];
704707
for (y = 0; y < 25; y++)
705-
for (x = 0; x < 80; x++)
708+
for (x = 0; x < 79; x++)
706709
VideoMemory[80 * y + x] = (VideoMemory[80 * y + x] & 0xFF00) | ' ';
707710
x = 0;
708711
y = 0;
@@ -717,7 +720,11 @@ void printf(char *str)
717720
printf(INTTOCHARPOINT(rtclock.month));
718721
printf("/");
719722
printf(INTTOCHARPOINT(rtclock.year));
720-
printf(" Type: Shell ");
723+
printf(" Type: Shell\n");
724+
for (int i = 0; i != 80; i++)
725+
VideoMemory[80 * 1 + i] = (VideoMemory[80 * 1 + i] & 0xFF00) | foo[i];
726+
printf("\n");
727+
play_sound(440);
721728
}
722729
}
723730

0 commit comments

Comments
 (0)