GDT Works?!

git-svn-id: https://spexeah.com:8443/svn/Asuro@30 6dbc8c32-bb84-406f-8558-d1cf31a0ab0c
This commit is contained in:
kieron
2017-05-16 18:18:59 +00:00
parent 372c5ef010
commit 7da445635c
8 changed files with 9 additions and 0 deletions

View File

@ -34,6 +34,15 @@ begin
util.halt_and_catch_fire;
end;
console.clear();
console.writestring('If this reads "0x8" then we have a GDT: ');
asm
MOV dds, CS
end;
console.setdefaultattribute(console.combinecolors(Red, Black));
if dds = $08 then console.setdefaultattribute(console.combinecolors(Green, Black));
console.writehexln(dds);
util.halt_and_catch_fire;
console.setdefaultattribute(console.combinecolors(Green, Black));
console.writestringln('Asuro Booted Correctly!');
console.writestringln('');