Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Config.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
defeat_console_textcolor = white
defeat_console_color = black
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
это изменённая версия операционной системы randomOS добавлены множество новых файлов
5 changes: 5 additions & 0 deletions Service.RL
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
void main(){
set service
if d2 service send ab0
send to d2 "Code 07"

9 changes: 9 additions & 0 deletions Sysinfo.dat
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#include kernel.c
#include filessystem.c
RAM -kernelinfo
sysdisc -filesystem
section .service
move data to void
update


1 change: 1 addition & 0 deletions headers/Sysinfo.h
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

52 changes: 48 additions & 4 deletions kernel.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ enum Commands {

REBOOT,

CLEAR
CLEAR,
SYSINFO
} Commands;

void EverySecond(void) {
Expand Down Expand Up @@ -400,7 +401,7 @@ void main(uint32 magic, struct multibootInfo* bootInfoArg) {

uint32 (*program) (uint32, uint32) = (void*)(address); // Program definition

UGSMASCIIputString("Random OS --> ");
UGSMASCIIputString("RandomOS --> ");

swap();

Expand Down Expand Up @@ -508,6 +509,7 @@ void main(uint32 magic, struct multibootInfo* bootInfoArg) {
UGSMASCIIputString("\treboot --> Restarts the computer\n");

UGSMASCIIputString("\tclear --> Clears the console\n");
UGSMASCIIputString("\tPRM --> print sysInfo\n");
}

else if (command == ECHO) {
Expand Down Expand Up @@ -603,8 +605,50 @@ void main(uint32 magic, struct multibootInfo* bootInfoArg) {

reboot();
}
else if (command == SYSINFO)
UGSMASCIIputString("0.0.9 global version \n");
if (RAMSize.gigabytes != 0) {
foregroundColor = 0xffff00;

putUX16Integer(RAMSize.gigabytes);

foregroundColor = 0x00ff00;

UGSMASCIIputString(" gigabytes\n");
}

if (RAMSize.megabytes != 0) {
foregroundColor = 0xffff00;

putUX16Integer(RAMSize.megabytes);

foregroundColor = 0x00ff00;

UGSMASCIIputString(" megabytes\n");
}

if (RAMSize.kilobytes != 0) {
foregroundColor = 0xffff00;

putUX16Integer(RAMSize.kilobytes);

foregroundColor = 0x00ff00;

UGSMASCIIputString(" kilobytes\n");
}

if (RAMSize.bytes != 0) {
foregroundColor = 0xffff00;

putUX16Integer(RAMSize.bytes);

foregroundColor = 0x00ff00;

else if (command == CLEAR) {
UGSMASCIIputString(" bytes\n");
}

}
else if (command == CLEAR) {
clear(backgroundColor);

EverySecond();
Expand Down Expand Up @@ -699,4 +743,4 @@ void main(uint32 magic, struct multibootInfo* bootInfoArg) {
}

for (;;);
}
}