Added cool stuff.

git-svn-id: https://spexeah.com:8443/svn/Asuro@376 6dbc8c32-bb84-406f-8558-d1cf31a0ab0c
This commit is contained in:
kieron 2018-04-07 17:19:13 +00:00
parent 2ffae7703c
commit 1c541dd753
47 changed files with 40 additions and 1 deletions

BIN
Asuro.iso

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -129,7 +129,7 @@ begin
testdriver.init(); testdriver.init();
E1000.init(); E1000.init();
//AHCI_OLD.init(); //AHCI_OLD.init();
IDE.init(); //IDE.init();
//Nothing beyond here //Nothing beyond here
USB.init(); USB.init();
pci.init(); pci.init();
@ -152,6 +152,7 @@ begin
console.setdefaultattribute(console.combinecolors(White, Black)); console.setdefaultattribute(console.combinecolors(White, Black));
console.writestringln(''); console.writestringln('');
console.writestringln('Press any key to boot in to Asuro Terminal...'); console.writestringln('Press any key to boot in to Asuro Terminal...');
BSOD('TOPKEK', 'Because why not?');
keyboard.hook(@temphook); keyboard.hook(@temphook);
util.halt_and_dont_catch_fire; util.halt_and_dont_catch_fire;

View File

@ -38,6 +38,7 @@ procedure memcpy(source : uint32; dest : uint32; size : uint32);
procedure halt_and_catch_fire(); procedure halt_and_catch_fire();
procedure halt_and_dont_catch_fire(); procedure halt_and_dont_catch_fire();
procedure BSOD(fault : pchar; info : pchar);
procedure psleep(t : uint16); procedure psleep(t : uint16);
var var
@ -227,4 +228,41 @@ begin
getByte:= (i AND mask) SHR (8*index); getByte:= (i AND mask) SHR (8*index);
end; end;
procedure BSOD(fault : pchar; info : pchar);
begin
console.setdefaultattribute(console.combinecolors(white, blue));
console.clear;
console.writestringln(' ');
console.writestringln(' ');
console.writestring(' ');
console.setdefaultattribute(console.combinecolors(black, white));
console.writestring(' SOMETHING HAS GONE WRONG AND ASURO HAD TO STOP! ');
console.setdefaultattribute(console.combinecolors(lwhite, blue));
console.writestringln(' ');
console.writestringln(' ');
console.writestringln(' ');
console.writestringln(' Asuro encountered an error and could not recover.');
console.writestringln(' ');
console.writestringln(' ');
console.writestringln(' The fault could have been caused by one or more of the following: ');
console.writestringln(' - A misconfigured device.');
console.writestringln(' - A malfunctioning driver.');
console.writestringln(' - A malfunctioning device.');
console.writestringln(' - A devlopers inability to handle faults correctly.');
console.writestringln(' - A Monkey inside the PC Case.');
console.writestringln(' - Spilt Coffeee.');
console.writestringln(' ');
console.writestringln(' ');
console.writestringln(' Details of the fault (for those boring enough to read) are as follows: ');
console.writestringln(' ');
console.writestring(' Fault ID: ');
console.writestringln(fault);
console.writestring(' Fault Info: ');
console.writestringln(info);
console.writestringln(' ');
console.writestringln(' ');
console.writestringln(' ');
halt_and_catch_fire();
end;
end. end.