mirror of
https://github.com/Zeal-Operating-System/ZealOS.git
synced 2024-12-27 07:46:33 +00:00
Update docs/.
This commit is contained in:
parent
68775b3b44
commit
31b3068ff9
24 changed files with 8298 additions and 2116 deletions
|
@ -36,7 +36,7 @@ body {background-color:#1f1f1f;}
|
|||
<a name="l9"></a> </span><span class=cF5>WinToTop</span><span class=cF0>;
|
||||
<a name="l10"></a> </span><span class=cF5>WinZBufUpdate</span><span class=cF0>;
|
||||
<a name="l11"></a> </span><span class=cF5>Dir</span><span class=cF0>;
|
||||
<a name="l12"></a> </span><span class=cF6>"\n95,262 LOC, "</span><span class=cF0>;
|
||||
<a name="l12"></a> </span><span class=cF6>"\n95,264 LOC, "</span><span class=cF0>;
|
||||
<a name="l13"></a> </span><span class=cF6>"%d MB RAM, "</span><span class=cF0>, </span><span class=cF5>MemBIOSTotal</span><span class=cF0> / </span><span class=cFE>1024</span><span class=cF0> / </span><span class=cFE>1024</span><span class=cF0>;
|
||||
<a name="l14"></a> </span><span class=cF5>CPURep</span><span class=cF0>;
|
||||
<a name="l15"></a> </span><span class=cF6>"\n"</span><span class=cF0>;
|
||||
|
|
|
@ -38,7 +38,7 @@ body {background-color:#1f1f1f;}
|
|||
<a name="l11"></a>* Low line count and code complexity is the highest good, so it is easy to learn the whole thing. Users should see the light
|
||||
<a name="l12"></a>at the end of the tunnel. One file system, for example, is better than many file systems.
|
||||
<a name="l13"></a>
|
||||
<a name="l14"></a>* There is a limit of 100,000 lines of code for all time, not including applications and demos. Currently, there are 95,262
|
||||
<a name="l14"></a>* There is a limit of 100,000 lines of code for all time, not including applications and demos. Currently, there are 95,264
|
||||
<a name="l15"></a>lines of code. </span><span class=cF4>3rd party libraries are banned</span><span class=cF0> because they circumvent the intent of this limit. The vision is a Commodore 64
|
||||
<a name="l16"></a>ROM -- a fixed core API that is the only dependency of applications. Dependency on components and libraries creates a hell
|
||||
<a name="l17"></a>that is no longer blissful.
|
||||
|
|
|
@ -37,7 +37,7 @@ body {background-color:#1f1f1f;}
|
|||
<a name="l10"></a>
|
||||
<a name="l11"></a>Simplicity is a goal to </span><a href="https://zeal-operating-system.github.io/ZealOS/Doc/Strategy.DD.html#l1"><span class=cF4>keep the line count down</span></a><span class=cF0>, so it's easy to tinker with. As it turns-out, simplicity makes it faster in
|
||||
<a name="l12"></a>some ways, too. It never switches privilege levels, never changes address maps, tends to load whole contiguous files and
|
||||
<a name="l13"></a>other, similar things which boost speed. It's only 95,262 lines of code including the kernel, the 64-bit compiler, the
|
||||
<a name="l13"></a>other, similar things which boost speed. It's only 95,264 lines of code including the kernel, the 64-bit compiler, the
|
||||
<a name="l14"></a>graphics library and all the tools. More importantly, it's designed to keep the user's line count down -- you can do a </span><span class=cF4>
|
||||
<a name="l15"></a></span><a href="https://zeal-operating-system.github.io/ZealOS/Doc/HelloWorld.DD.html#l1"><span class=cF4>Hello World</span></a><span class=cF0> application in one line of code and can put graphics on the screen with a three line program!
|
||||
<a name="l16"></a>
|
||||
|
|
5488
docs/Home/ASCII-ZEAL.TXT.html
Executable file
5488
docs/Home/ASCII-ZEAL.TXT.html
Executable file
File diff suppressed because it is too large
Load diff
42
docs/Home/MakeHome.CC.html
Executable file
42
docs/Home/MakeHome.CC.html
Executable file
|
@ -0,0 +1,42 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=US-ASCII">
|
||||
<meta name="generator" content="ZealOS V1.04">
|
||||
<style type="text/css">
|
||||
body {background-color:#1f1f1f;}
|
||||
.cF0{color:#e3e3e3;background-color:#1f1f1f;}
|
||||
.cF1{color:#4f84a6;background-color:#1f1f1f;}
|
||||
.cF2{color:#73a255;background-color:#1f1f1f;}
|
||||
.cF3{color:#297582;background-color:#1f1f1f;}
|
||||
.cF4{color:#b34f4b;background-color:#1f1f1f;}
|
||||
.cF5{color:#8a52c3;background-color:#1f1f1f;}
|
||||
.cF6{color:#b7822f;background-color:#1f1f1f;}
|
||||
.cF7{color:#444444;background-color:#1f1f1f;}
|
||||
.cF8{color:#6d6d6d;background-color:#1f1f1f;}
|
||||
.cF9{color:#94bfde;background-color:#1f1f1f;}
|
||||
.cFA{color:#a1ce97;background-color:#1f1f1f;}
|
||||
.cFB{color:#6db4be;background-color:#1f1f1f;}
|
||||
.cFC{color:#e88e88;background-color:#1f1f1f;}
|
||||
.cFD{color:#ca94e8;background-color:#1f1f1f;}
|
||||
.cFE{color:#d4b475;background-color:#1f1f1f;}
|
||||
.cFF{color:#1f1f1f;background-color:#1f1f1f;}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<pre style="font-family:monospace;font-size:12pt">
|
||||
<a name="l1"></a><span class=cF5>Cd</span><span class=cF0>(</span><span class=cF3>__DIR__</span><span class=cF0>);;
|
||||
<a name="l2"></a>
|
||||
<a name="l3"></a></span><span class=cF2>//If these are not present in /Home, it uses the version in the root dir. You</span><span class=cF0>
|
||||
<a name="l4"></a></span><span class=cF2>//can make your own, modified, version of these files in your /Home directory.</span><span class=cF0>
|
||||
<a name="l5"></a>#</span><span class=cF1>include</span><span class=cF0> </span><span class=cF6>"~/HomeLocalize"</span><span class=cF0>
|
||||
<a name="l6"></a>#</span><span class=cF1>include</span><span class=cF0> </span><span class=cF6>"/System/Boot/MakeBoot"</span><span class=cF0>
|
||||
<a name="l7"></a>#</span><span class=cF1>include</span><span class=cF0> </span><span class=cF6>"/System/Utils/MakeUtils"</span><span class=cF0>
|
||||
<a name="l8"></a>#</span><span class=cF1>include</span><span class=cF0> </span><span class=cF6>"~/HomeWrappers"</span><span class=cF0>
|
||||
<a name="l9"></a></span><span class=cF5>MapFileLoad</span><span class=cF0>(</span><span class=cF6>"::/Kernel/Kernel"</span><span class=cF0>);
|
||||
<a name="l10"></a></span><span class=cF5>MapFileLoad</span><span class=cF0>(</span><span class=cF6>"::/Compiler/Compiler"</span><span class=cF0>);
|
||||
<a name="l11"></a>#</span><span class=cF1>include</span><span class=cF0> </span><span class=cF6>"~/HomeKeyPlugIns"</span><span class=cF0>
|
||||
<a name="l12"></a>#</span><span class=cF1>include</span><span class=cF0> </span><span class=cF6>"~/HomeSys"</span><span class=cF0>
|
||||
<a name="l13"></a></span><span class=cF5>Cd</span><span class=cF0>(</span><span class=cF6>".."</span><span class=cF0>);;
|
||||
</span></pre></body>
|
||||
</html>
|
|
@ -44,10 +44,11 @@ body {background-color:#1f1f1f;}
|
|||
<a name="l17"></a>
|
||||
<a name="l18"></a>#</span><span class=cF1>include</span><span class=cF0> </span><span class=cF6>"Utilities/BST"</span><span class=cF0>
|
||||
<a name="l19"></a>#</span><span class=cF1>include</span><span class=cF0> </span><span class=cF6>"Protocols/UDP/MakeUDP"</span><span class=cF0>
|
||||
<a name="l20"></a>#</span><span class=cF1>include</span><span class=cF0> </span><span class=cF6>"Protocols/TCP/MakeTCP"</span><span class=cF0>
|
||||
<a name="l20"></a>#</span><span class=cF1>include</span><span class=cF0> </span><span class=cF6>"Protocols/DNS"</span><span class=cF0>
|
||||
<a name="l21"></a>
|
||||
<a name="l22"></a>#</span><span class=cF1>include</span><span class=cF0> </span><span class=cF6>"Protocols/DNS"</span><span class=cF0>
|
||||
<a name="l23"></a>#</span><span class=cF1>include</span><span class=cF0> </span><span class=cF6>"Protocols/DHCP"</span><span class=cF0>
|
||||
<a name="l24"></a>
|
||||
<a name="l25"></a>#</span><span class=cF1>include</span><span class=cF0> </span><span class=cF6>"Utilities/NetHandler"</span><span class=cF0> </span><span class=cF2>// needs IPV4, UDP, ICMP</span></pre></body>
|
||||
<a name="l22"></a>#</span><span class=cF1>include</span><span class=cF0> </span><span class=cF6>"Protocols/TCP/MakeTCP"</span><span class=cF0>
|
||||
<a name="l23"></a>
|
||||
<a name="l24"></a>#</span><span class=cF1>include</span><span class=cF0> </span><span class=cF6>"Protocols/DHCP"</span><span class=cF0>
|
||||
<a name="l25"></a>
|
||||
<a name="l26"></a>#</span><span class=cF1>include</span><span class=cF0> </span><span class=cF6>"Utilities/NetHandler"</span><span class=cF0> </span><span class=cF2>// needs IPV4, UDP, ICMP</span></pre></body>
|
||||
</html>
|
||||
|
|
366
docs/Home/Net/Programs/Gopher.CC.html
Executable file
366
docs/Home/Net/Programs/Gopher.CC.html
Executable file
|
@ -0,0 +1,366 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=US-ASCII">
|
||||
<meta name="generator" content="ZealOS V1.04">
|
||||
<style type="text/css">
|
||||
body {background-color:#1f1f1f;}
|
||||
.cF0{color:#e3e3e3;background-color:#1f1f1f;}
|
||||
.cF1{color:#4f84a6;background-color:#1f1f1f;}
|
||||
.cF2{color:#73a255;background-color:#1f1f1f;}
|
||||
.cF3{color:#297582;background-color:#1f1f1f;}
|
||||
.cF4{color:#b34f4b;background-color:#1f1f1f;}
|
||||
.cF5{color:#8a52c3;background-color:#1f1f1f;}
|
||||
.cF6{color:#b7822f;background-color:#1f1f1f;}
|
||||
.cF7{color:#444444;background-color:#1f1f1f;}
|
||||
.cF8{color:#6d6d6d;background-color:#1f1f1f;}
|
||||
.cF9{color:#94bfde;background-color:#1f1f1f;}
|
||||
.cFA{color:#a1ce97;background-color:#1f1f1f;}
|
||||
.cFB{color:#6db4be;background-color:#1f1f1f;}
|
||||
.cFC{color:#e88e88;background-color:#1f1f1f;}
|
||||
.cFD{color:#ca94e8;background-color:#1f1f1f;}
|
||||
.cFE{color:#d4b475;background-color:#1f1f1f;}
|
||||
.cFF{color:#1f1f1f;background-color:#1f1f1f;}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<pre style="font-family:monospace;font-size:12pt">
|
||||
<a name="l1"></a><span class=cF2>/* Gopher client for TempleOS/Sockets</span><span class=cF0>
|
||||
<a name="l2"></a></span><span class=cF2> by Declan Hoare 2020</span><span class=cF0>
|
||||
<a name="l3"></a></span><span class=cF2> ported to ZealOS and modified by TomAwezome in 2021</span><span class=cF0>
|
||||
<a name="l4"></a></span><span class=cF2> Public Domain - No Warranty */</span><span class=cF0>
|
||||
<a name="l5"></a>
|
||||
<a name="l6"></a>#</span><span class=cF1>define</span><span class=cF0> GOPHER_CLIENT_LOADED
|
||||
<a name="l7"></a>
|
||||
<a name="l8"></a>#</span><span class=cF1>ifndef</span><span class=cF0> GOPHER_ASSOCIATIONS
|
||||
<a name="l9"></a>#</span><span class=cF1>define</span><span class=cF0> GOPHER_ASSOCIATIONS
|
||||
<a name="l10"></a></span><span class=cF1>U8</span><span class=cF0> *gopher_associations[</span><span class=cFE>256</span><span class=cF0>];
|
||||
<a name="l11"></a>#</span><span class=cF1>endif</span><span class=cF0>
|
||||
<a name="l12"></a>
|
||||
<a name="l13"></a></span><span class=cF9>I64</span><span class=cF0> GopherOpen(</span><span class=cF1>U8</span><span class=cF0> *host, </span><span class=cF9>U16</span><span class=cF0> port, </span><span class=cF1>U8</span><span class=cF0> *selector, </span><span class=cF1>U8</span><span class=cF0> *query)
|
||||
<a name="l14"></a>{
|
||||
<a name="l15"></a> </span><span class=cF1>U8</span><span class=cF0> *line;
|
||||
<a name="l16"></a> </span><span class=cF9>I64</span><span class=cF0> sock;
|
||||
<a name="l17"></a>
|
||||
<a name="l18"></a> </span><span class=cF1>if</span><span class=cF0> (host == </span><span class=cF3>NULL</span><span class=cF0>)
|
||||
<a name="l19"></a> </span><span class=cF7>{</span><span class=cF0>
|
||||
<a name="l20"></a> </span><span class=cF1>return</span><span class=cF0> -</span><span class=cFE>1</span><span class=cF0>;
|
||||
<a name="l21"></a> </span><span class=cF7>}</span><span class=cF0>
|
||||
<a name="l22"></a>
|
||||
<a name="l23"></a></span><span class=cF2>//</span><span class=cF0> </span><span class=cF2>sock = create_connection(host, port);</span><span class=cF0>
|
||||
<a name="l24"></a> sock = TCPConnectionCreate(host, port);
|
||||
<a name="l25"></a> </span><span class=cF1>if</span><span class=cF0> (sock <= </span><span class=cFE>0</span><span class=cF0>)
|
||||
<a name="l26"></a> </span><span class=cF7>{</span><span class=cF0>
|
||||
<a name="l27"></a> </span><span class=cF5>PrintErr</span><span class=cF0>(</span><span class=cF6>"Failed to connect to %s:%d\n"</span><span class=cF0>, host, port);
|
||||
<a name="l28"></a> </span><span class=cF1>return</span><span class=cF0> sock;
|
||||
<a name="l29"></a> </span><span class=cF7>}</span><span class=cF0>
|
||||
<a name="l30"></a>
|
||||
<a name="l31"></a> </span><span class=cF1>if</span><span class=cF0> (query == </span><span class=cF3>NULL</span><span class=cF0>)
|
||||
<a name="l32"></a> </span><span class=cF7>{</span><span class=cF0>
|
||||
<a name="l33"></a> line = </span><span class=cF5>StrPrint</span><span class=cF0>(</span><span class=cF3>NULL</span><span class=cF0>, </span><span class=cF6>"%s\r\n"</span><span class=cF0>, selector);
|
||||
<a name="l34"></a> </span><span class=cF7>}</span><span class=cF0>
|
||||
<a name="l35"></a> </span><span class=cF1>else</span><span class=cF0>
|
||||
<a name="l36"></a> </span><span class=cF7>{</span><span class=cF0>
|
||||
<a name="l37"></a> line = </span><span class=cF5>StrPrint</span><span class=cF0>(</span><span class=cF3>NULL</span><span class=cF0>, </span><span class=cF6>"%s\t%s\r\n"</span><span class=cF0>, selector, query);
|
||||
<a name="l38"></a> </span><span class=cF7>}</span><span class=cF0>
|
||||
<a name="l39"></a>
|
||||
<a name="l40"></a> sock(CTCPSocket *)->timeout = TCP_TIMEOUT * </span><span class=cFE>5</span><span class=cF0>;
|
||||
<a name="l41"></a>
|
||||
<a name="l42"></a></span><span class=cF2>//</span><span class=cF0> </span><span class=cF2>sendString(sock, line, 0);</span><span class=cF0>
|
||||
<a name="l43"></a> TCPSocketSendString(sock, line);
|
||||
<a name="l44"></a> </span><span class=cF5>Free</span><span class=cF0>(line);
|
||||
<a name="l45"></a>
|
||||
<a name="l46"></a> </span><span class=cF1>return</span><span class=cF0> sock;
|
||||
<a name="l47"></a>}
|
||||
<a name="l48"></a>
|
||||
<a name="l49"></a></span><span class=cF1>public</span><span class=cF0> </span><span class=cF9>I64</span><span class=cF0> GopherDl(</span><span class=cF1>U8</span><span class=cF0> *host, </span><span class=cF9>U16</span><span class=cF0> port = </span><span class=cFE>70</span><span class=cF0>, </span><span class=cF1>U8</span><span class=cF0> *selector, </span><span class=cF1>U8</span><span class=cF0> *query = </span><span class=cF3>NULL</span><span class=cF0>, </span><span class=cF1>U8</span><span class=cF0> *dest)
|
||||
<a name="l50"></a>{
|
||||
<a name="l51"></a> </span><span class=cF9>CFile</span><span class=cF0> *f;
|
||||
<a name="l52"></a> </span><span class=cF1>U8</span><span class=cF0> buf[</span><span class=cF3>BLK_SIZE</span><span class=cF0>];
|
||||
<a name="l53"></a> </span><span class=cF9>I64</span><span class=cF0> data_len = </span><span class=cFE>0</span><span class=cF0>, total_len = </span><span class=cFE>0</span><span class=cF0>, got, sock;
|
||||
<a name="l54"></a>
|
||||
<a name="l55"></a> </span><span class=cFB>progress4</span><span class=cF0> = </span><span class=cFE>0</span><span class=cF0>;
|
||||
<a name="l56"></a> f = </span><span class=cF5>FOpen</span><span class=cF0>(dest, </span><span class=cF6>"w"</span><span class=cF0>);
|
||||
<a name="l57"></a> </span><span class=cF1>if</span><span class=cF0> (!f)
|
||||
<a name="l58"></a> </span><span class=cF7>{</span><span class=cF0>
|
||||
<a name="l59"></a> </span><span class=cF5>PrintErr</span><span class=cF0>(</span><span class=cF6>"Failed to open %s for writing\n"</span><span class=cF0>, dest);
|
||||
<a name="l60"></a> </span><span class=cF1>return</span><span class=cF0> -</span><span class=cFE>1</span><span class=cF0>;
|
||||
<a name="l61"></a> </span><span class=cF7>}</span><span class=cF0>
|
||||
<a name="l62"></a>
|
||||
<a name="l63"></a> sock = GopherOpen(host, port, selector, query);
|
||||
<a name="l64"></a> </span><span class=cF1>if</span><span class=cF0> (sock <= </span><span class=cFE>0</span><span class=cF0>)
|
||||
<a name="l65"></a> </span><span class=cF7>{</span><span class=cF0>
|
||||
<a name="l66"></a> </span><span class=cF1>return</span><span class=cF0> sock;
|
||||
<a name="l67"></a> </span><span class=cF7>}</span><span class=cF0>
|
||||
<a name="l68"></a>
|
||||
<a name="l69"></a> </span><span class=cF1>while</span><span class=cF0> (</span><span class=cF3>TRUE</span><span class=cF0>)
|
||||
<a name="l70"></a> </span><span class=cF7>{</span><span class=cF0>
|
||||
<a name="l71"></a></span><span class=cF2>//</span><span class=cF0> </span><span class=cF2>got = recv(sock, buf + data_len, sizeof(buf) - data_len, 0);</span><span class=cF0>
|
||||
<a name="l72"></a> got = TCPSocketReceive(sock, buf + data_len, </span><span class=cF1>sizeof</span><span class=cF7>(</span><span class=cF0>buf</span><span class=cF7>)</span><span class=cF0> - data_len);
|
||||
<a name="l73"></a> </span><span class=cF1>if</span><span class=cF0> (got <= </span><span class=cFE>0</span><span class=cF0>)
|
||||
<a name="l74"></a> {
|
||||
<a name="l75"></a> </span><span class=cF1>if</span><span class=cF0> (got < </span><span class=cFE>0</span><span class=cF0>)
|
||||
<a name="l76"></a> </span><span class=cF5>PrintErr</span><span class=cF0>(</span><span class=cF6>"Failed to receive TCP data\n"</span><span class=cF0>);
|
||||
<a name="l77"></a> </span><span class=cF1>if</span><span class=cF0> (data_len != </span><span class=cFE>0</span><span class=cF0> && !</span><span class=cF5>FBlkWrite</span><span class=cF7>(</span><span class=cF0>f, buf</span><span class=cF7>)</span><span class=cF0>)
|
||||
<a name="l78"></a> </span><span class=cF7>{</span><span class=cF0>
|
||||
<a name="l79"></a> </span><span class=cF1>break</span><span class=cF0>;
|
||||
<a name="l80"></a> </span><span class=cF7>}</span><span class=cF0>
|
||||
<a name="l81"></a> f->de.size = total_len;
|
||||
<a name="l82"></a> </span><span class=cF5>FClose</span><span class=cF0>(f);
|
||||
<a name="l83"></a> </span><span class=cF1>return</span><span class=cF0> got;
|
||||
<a name="l84"></a> }
|
||||
<a name="l85"></a> data_len += got;
|
||||
<a name="l86"></a> total_len += got;
|
||||
<a name="l87"></a> </span><span class=cFB>progress4</span><span class=cF0> += got;
|
||||
<a name="l88"></a> </span><span class=cF1>if</span><span class=cF0> (data_len == </span><span class=cF3>BLK_SIZE</span><span class=cF0>)
|
||||
<a name="l89"></a> {
|
||||
<a name="l90"></a> </span><span class=cF1>if</span><span class=cF0> (!</span><span class=cF5>FBlkWrite</span><span class=cF7>(</span><span class=cF0>f, buf</span><span class=cF7>)</span><span class=cF0>)
|
||||
<a name="l91"></a> </span><span class=cF7>{</span><span class=cF0>
|
||||
<a name="l92"></a> </span><span class=cF1>break</span><span class=cF0>;
|
||||
<a name="l93"></a> </span><span class=cF7>}</span><span class=cF0>
|
||||
<a name="l94"></a> data_len = </span><span class=cFE>0</span><span class=cF0>;
|
||||
<a name="l95"></a> }
|
||||
<a name="l96"></a> </span><span class=cF7>}</span><span class=cF0>
|
||||
<a name="l97"></a>
|
||||
<a name="l98"></a> </span><span class=cF5>PrintErr</span><span class=cF0>(</span><span class=cF6>"Write failed, %s may be corrupted\n"</span><span class=cF0>, dest);
|
||||
<a name="l99"></a> </span><span class=cF5>FClose</span><span class=cF0>(f);
|
||||
<a name="l100"></a> </span><span class=cF1>return</span><span class=cF0> -</span><span class=cFE>1</span><span class=cF0>;
|
||||
<a name="l101"></a>
|
||||
<a name="l102"></a>}
|
||||
<a name="l103"></a>
|
||||
<a name="l104"></a></span><span class=cF1>U0</span><span class=cF0> PrintEscaped(</span><span class=cF1>U8</span><span class=cF0> *txt, </span><span class=cF1>U8</span><span class=cF0> *backslashes = </span><span class=cF6>""</span><span class=cF0>)
|
||||
<a name="l105"></a>{
|
||||
<a name="l106"></a> </span><span class=cF1>U8</span><span class=cF0> *cur;
|
||||
<a name="l107"></a> </span><span class=cF9>U64</span><span class=cF0> offending;
|
||||
<a name="l108"></a>
|
||||
<a name="l109"></a> </span><span class=cF1>while</span><span class=cF0> (cur = </span><span class=cF5>StrFirstOcc</span><span class=cF7>(</span><span class=cF0>txt, </span><span class=cF6>"$\\\""</span><span class=cF7>)</span><span class=cF0>)
|
||||
<a name="l110"></a> </span><span class=cF7>{</span><span class=cF0>
|
||||
<a name="l111"></a> offending = *cur;
|
||||
<a name="l112"></a> *cur = </span><span class=cFE>0</span><span class=cF0>;
|
||||
<a name="l113"></a> </span><span class=cF1>if</span><span class=cF0> (offending == </span><span class=cF6>'$'</span><span class=cF0>)
|
||||
<a name="l114"></a> {
|
||||
<a name="l115"></a> </span><span class=cF6>"%s$$"</span><span class=cF0>, txt;
|
||||
<a name="l116"></a> }
|
||||
<a name="l117"></a> </span><span class=cF1>else</span><span class=cF0>
|
||||
<a name="l118"></a> {
|
||||
<a name="l119"></a> </span><span class=cF6>"%s%s%c"</span><span class=cF0>, txt, backslashes, offending;
|
||||
<a name="l120"></a> }
|
||||
<a name="l121"></a> txt = cur + </span><span class=cFE>1</span><span class=cF0>;
|
||||
<a name="l122"></a> </span><span class=cF7>}</span><span class=cF0>
|
||||
<a name="l123"></a>
|
||||
<a name="l124"></a> </span><span class=cF6>"%s"</span><span class=cF0>, txt;
|
||||
<a name="l125"></a>}
|
||||
<a name="l126"></a>
|
||||
<a name="l127"></a></span><span class=cF1>U8</span><span class=cF0> *GopherBasename(</span><span class=cF1>U8</span><span class=cF0> *selector)
|
||||
<a name="l128"></a>{
|
||||
<a name="l129"></a> </span><span class=cF1>U8</span><span class=cF0> *lastslash = </span><span class=cF5>StrLastOcc</span><span class=cF0>(selector, </span><span class=cF6>"/"</span><span class=cF0>), *result;
|
||||
<a name="l130"></a>
|
||||
<a name="l131"></a> </span><span class=cF1>if</span><span class=cF0> (lastslash == </span><span class=cF3>NULL</span><span class=cF0>)
|
||||
<a name="l132"></a> </span><span class=cF7>{</span><span class=cF0>
|
||||
<a name="l133"></a> result = selector;
|
||||
<a name="l134"></a> </span><span class=cF7>}</span><span class=cF0>
|
||||
<a name="l135"></a> </span><span class=cF1>else</span><span class=cF0>
|
||||
<a name="l136"></a> </span><span class=cF7>{</span><span class=cF0>
|
||||
<a name="l137"></a> result = lastslash + </span><span class=cFE>1</span><span class=cF0>;
|
||||
<a name="l138"></a> </span><span class=cF7>}</span><span class=cF0>
|
||||
<a name="l139"></a>
|
||||
<a name="l140"></a> </span><span class=cF2>//BAD FOR FILENAMES: ? / | = % : ; * + " < > space </span><span class=cF0>
|
||||
<a name="l141"></a> result = </span><span class=cF5>StrReplace</span><span class=cF0>(result, </span><span class=cF6>"?"</span><span class=cF0>, </span><span class=cF6>""</span><span class=cF0>);
|
||||
<a name="l142"></a> result = </span><span class=cF5>StrReplace</span><span class=cF0>(result, </span><span class=cF6>"/"</span><span class=cF0>, </span><span class=cF6>""</span><span class=cF0>,, </span><span class=cF3>TRUE</span><span class=cF0>);
|
||||
<a name="l143"></a> result = </span><span class=cF5>StrReplace</span><span class=cF0>(result, </span><span class=cF6>"|"</span><span class=cF0>, </span><span class=cF6>""</span><span class=cF0>,, </span><span class=cF3>TRUE</span><span class=cF0>);
|
||||
<a name="l144"></a> result = </span><span class=cF5>StrReplace</span><span class=cF0>(result, </span><span class=cF6>"="</span><span class=cF0>, </span><span class=cF6>""</span><span class=cF0>,, </span><span class=cF3>TRUE</span><span class=cF0>);
|
||||
<a name="l145"></a> result = </span><span class=cF5>StrReplace</span><span class=cF0>(result, </span><span class=cF6>"%"</span><span class=cF0>, </span><span class=cF6>""</span><span class=cF0>,, </span><span class=cF3>TRUE</span><span class=cF0>);
|
||||
<a name="l146"></a> result = </span><span class=cF5>StrReplace</span><span class=cF0>(result, </span><span class=cF6>":"</span><span class=cF0>, </span><span class=cF6>""</span><span class=cF0>,, </span><span class=cF3>TRUE</span><span class=cF0>);
|
||||
<a name="l147"></a> result = </span><span class=cF5>StrReplace</span><span class=cF0>(result, </span><span class=cF6>";"</span><span class=cF0>, </span><span class=cF6>""</span><span class=cF0>,, </span><span class=cF3>TRUE</span><span class=cF0>);
|
||||
<a name="l148"></a> result = </span><span class=cF5>StrReplace</span><span class=cF0>(result, </span><span class=cF6>"*"</span><span class=cF0>, </span><span class=cF6>""</span><span class=cF0>,, </span><span class=cF3>TRUE</span><span class=cF0>);
|
||||
<a name="l149"></a> result = </span><span class=cF5>StrReplace</span><span class=cF0>(result, </span><span class=cF6>"+"</span><span class=cF0>, </span><span class=cF6>""</span><span class=cF0>,, </span><span class=cF3>TRUE</span><span class=cF0>);
|
||||
<a name="l150"></a> result = </span><span class=cF5>StrReplace</span><span class=cF0>(result, </span><span class=cF6>"\""</span><span class=cF0>, </span><span class=cF6>""</span><span class=cF0>,, </span><span class=cF3>TRUE</span><span class=cF0>);
|
||||
<a name="l151"></a> result = </span><span class=cF5>StrReplace</span><span class=cF0>(result, </span><span class=cF6>"<"</span><span class=cF0>, </span><span class=cF6>""</span><span class=cF0>,, </span><span class=cF3>TRUE</span><span class=cF0>);
|
||||
<a name="l152"></a> result = </span><span class=cF5>StrReplace</span><span class=cF0>(result, </span><span class=cF6>">"</span><span class=cF0>, </span><span class=cF6>""</span><span class=cF0>,, </span><span class=cF3>TRUE</span><span class=cF0>);
|
||||
<a name="l153"></a> result = </span><span class=cF5>StrReplace</span><span class=cF0>(result, </span><span class=cF6>" "</span><span class=cF0>, </span><span class=cF6>""</span><span class=cF0>,, </span><span class=cF3>TRUE</span><span class=cF0>);
|
||||
<a name="l154"></a>
|
||||
<a name="l155"></a> </span><span class=cF5>SysLog</span><span class=cF0>(</span><span class=cF6>"%s\n"</span><span class=cF0>, result);
|
||||
<a name="l156"></a>
|
||||
<a name="l157"></a> </span><span class=cF1>return</span><span class=cF0> result;
|
||||
<a name="l158"></a>}
|
||||
<a name="l159"></a>
|
||||
<a name="l160"></a></span><span class=cF1>U0</span><span class=cF0> GopherTextView(</span><span class=cF1>U8</span><span class=cF0> *host, </span><span class=cF9>U16</span><span class=cF0> port, </span><span class=cF1>U8</span><span class=cF0> *selector)
|
||||
<a name="l161"></a>{
|
||||
<a name="l162"></a> </span><span class=cF1>U8</span><span class=cF0> *basename;
|
||||
<a name="l163"></a> </span><span class=cF1>U8</span><span class=cF0> *tmpname;
|
||||
<a name="l164"></a>
|
||||
<a name="l165"></a> </span><span class=cF5>DirMake</span><span class=cF0>(</span><span class=cF6>"::/Tmp/Gopher"</span><span class=cF0>);
|
||||
<a name="l166"></a>
|
||||
<a name="l167"></a> tmpname = </span><span class=cF5>StrNew</span><span class=cF0>(selector);
|
||||
<a name="l168"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>StrLen</span><span class=cF7>(</span><span class=cF0>tmpname</span><span class=cF7>)</span><span class=cF0> > </span><span class=cFE>22</span><span class=cF0>)
|
||||
<a name="l169"></a> tmpname[</span><span class=cFE>21</span><span class=cF0>] = </span><span class=cFE>0</span><span class=cF0>; </span><span class=cF2>// too long, terminate it early</span><span class=cF0>
|
||||
<a name="l170"></a> basename = </span><span class=cF5>ExtChange</span><span class=cF0>(GopherBasename</span><span class=cF7>(</span><span class=cF0>tmpname</span><span class=cF7>)</span><span class=cF0>, </span><span class=cF6>"TXT"</span><span class=cF0>);
|
||||
<a name="l171"></a> </span><span class=cF5>Free</span><span class=cF0>(tmpname);
|
||||
<a name="l172"></a> tmpname = </span><span class=cF5>StrPrint</span><span class=cF0>(</span><span class=cF3>NULL</span><span class=cF0>, </span><span class=cF6>"::/Tmp/Gopher/%s"</span><span class=cF0>, basename);
|
||||
<a name="l173"></a> </span><span class=cF5>Free</span><span class=cF0>(basename);
|
||||
<a name="l174"></a>
|
||||
<a name="l175"></a> </span><span class=cF1>if</span><span class=cF0> (GopherDl</span><span class=cF7>(</span><span class=cF0>host, port, selector,, tmpname</span><span class=cF7>)</span><span class=cF0> == </span><span class=cFE>0</span><span class=cF0>)
|
||||
<a name="l176"></a> </span><span class=cF7>{</span><span class=cF0>
|
||||
<a name="l177"></a> </span><span class=cF5>SysLog</span><span class=cF0>(</span><span class=cF6>"%s\n"</span><span class=cF0>, tmpname);
|
||||
<a name="l178"></a> </span><span class=cF5>Plain</span><span class=cF0>(tmpname);
|
||||
<a name="l179"></a> </span><span class=cF7>}</span><span class=cF0>
|
||||
<a name="l180"></a> </span><span class=cF1>else</span><span class=cF0>
|
||||
<a name="l181"></a> </span><span class=cF7>{</span><span class=cF0>
|
||||
<a name="l182"></a> </span><span class=cF5>PrintErr</span><span class=cF0>(</span><span class=cF6>"Failed to download %s from %s:%d\n"</span><span class=cF0>,
|
||||
<a name="l183"></a> selector, host, port);
|
||||
<a name="l184"></a> </span><span class=cF7>}</span><span class=cF0>
|
||||
<a name="l185"></a> </span><span class=cF5>Free</span><span class=cF0>(tmpname);
|
||||
<a name="l186"></a>}
|
||||
<a name="l187"></a>
|
||||
<a name="l188"></a></span><span class=cF1>U0</span><span class=cF0> GopherLine(</span><span class=cF1>U8</span><span class=cF0> *line)
|
||||
<a name="l189"></a>{
|
||||
<a name="l190"></a> </span><span class=cF9>U64</span><span class=cF0> type;
|
||||
<a name="l191"></a> </span><span class=cF1>U8</span><span class=cF0> *display;
|
||||
<a name="l192"></a> </span><span class=cF1>U8</span><span class=cF0> *selector;
|
||||
<a name="l193"></a> </span><span class=cF1>U8</span><span class=cF0> *host = </span><span class=cF3>NULL</span><span class=cF0>;
|
||||
<a name="l194"></a> </span><span class=cF9>U16</span><span class=cF0> port = </span><span class=cFE>0</span><span class=cF0>;
|
||||
<a name="l195"></a>
|
||||
<a name="l196"></a> </span><span class=cF1>if</span><span class=cF0> (*line == </span><span class=cFE>0</span><span class=cF0>)
|
||||
<a name="l197"></a> </span><span class=cF7>{</span><span class=cF0>
|
||||
<a name="l198"></a> </span><span class=cF6>"\n"</span><span class=cF0>;
|
||||
<a name="l199"></a> </span><span class=cF1>return</span><span class=cF0>;
|
||||
<a name="l200"></a> </span><span class=cF7>}</span><span class=cF0>
|
||||
<a name="l201"></a> type = *line++;
|
||||
<a name="l202"></a> display = line;
|
||||
<a name="l203"></a>
|
||||
<a name="l204"></a> line = </span><span class=cF5>StrFind</span><span class=cF0>(</span><span class=cF6>"\t"</span><span class=cF0>, line);
|
||||
<a name="l205"></a> </span><span class=cF1>if</span><span class=cF0> (line)
|
||||
<a name="l206"></a> </span><span class=cF7>{</span><span class=cF0>
|
||||
<a name="l207"></a> *line = </span><span class=cFE>0</span><span class=cF0>;
|
||||
<a name="l208"></a> line++;
|
||||
<a name="l209"></a> </span><span class=cF7>}</span><span class=cF0>
|
||||
<a name="l210"></a> selector = line;
|
||||
<a name="l211"></a>
|
||||
<a name="l212"></a> </span><span class=cF1>if</span><span class=cF0> (line)
|
||||
<a name="l213"></a> </span><span class=cF7>{</span><span class=cF0>
|
||||
<a name="l214"></a> line = </span><span class=cF5>StrFind</span><span class=cF0>(</span><span class=cF6>"\t"</span><span class=cF0>, line);
|
||||
<a name="l215"></a> </span><span class=cF7>}</span><span class=cF0>
|
||||
<a name="l216"></a> </span><span class=cF1>if</span><span class=cF0> (line)
|
||||
<a name="l217"></a> </span><span class=cF7>{</span><span class=cF0>
|
||||
<a name="l218"></a> *line = </span><span class=cFE>0</span><span class=cF0>;
|
||||
<a name="l219"></a> line++;
|
||||
<a name="l220"></a> </span><span class=cF7>}</span><span class=cF0>
|
||||
<a name="l221"></a> host = line;
|
||||
<a name="l222"></a>
|
||||
<a name="l223"></a> </span><span class=cF1>if</span><span class=cF0> (line)
|
||||
<a name="l224"></a> </span><span class=cF7>{</span><span class=cF0>
|
||||
<a name="l225"></a> line = </span><span class=cF5>StrFind</span><span class=cF0>(</span><span class=cF6>"\t"</span><span class=cF0>, line);
|
||||
<a name="l226"></a> </span><span class=cF7>}</span><span class=cF0>
|
||||
<a name="l227"></a> </span><span class=cF1>if</span><span class=cF0> (line)
|
||||
<a name="l228"></a> </span><span class=cF7>{</span><span class=cF0>
|
||||
<a name="l229"></a> *line = </span><span class=cFE>0</span><span class=cF0>;
|
||||
<a name="l230"></a> line++;
|
||||
<a name="l231"></a> port = </span><span class=cF5>Str2I64</span><span class=cF0>(line);
|
||||
<a name="l232"></a> </span><span class=cF7>}</span><span class=cF0>
|
||||
<a name="l233"></a>
|
||||
<a name="l234"></a> </span><span class=cF1>if</span><span class=cF0> (!*host)
|
||||
<a name="l235"></a> </span><span class=cF1>return</span><span class=cF0>;
|
||||
<a name="l236"></a>
|
||||
<a name="l237"></a> </span><span class=cF1>switch</span><span class=cF0> (type)
|
||||
<a name="l238"></a> </span><span class=cF7>{</span><span class=cF0>
|
||||
<a name="l239"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF6>'3'</span><span class=cF0>:
|
||||
<a name="l240"></a> </span><span class=cF5>PrintErr</span><span class=cF0>(</span><span class=cF6>""</span><span class=cF0>);
|
||||
<a name="l241"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF6>'i'</span><span class=cF0>:
|
||||
<a name="l242"></a> PrintEscaped(display);
|
||||
<a name="l243"></a> </span><span class=cF1>break</span><span class=cF0>;
|
||||
<a name="l244"></a> </span><span class=cF1>default</span><span class=cF0>:
|
||||
<a name="l245"></a> </span><span class=cF6>"$MA,\""</span><span class=cF0>;
|
||||
<a name="l246"></a> PrintEscaped(display, </span><span class=cF6>"\\"</span><span class=cF0>);
|
||||
<a name="l247"></a> </span><span class=cF6>"\",LM=\"%s(\\\""</span><span class=cF0>, gopher_associations[type];
|
||||
<a name="l248"></a> PrintEscaped(host, </span><span class=cF6>"\\\\\\"</span><span class=cF0>);
|
||||
<a name="l249"></a> </span><span class=cF6>"\\\",%d,\\\""</span><span class=cF0>, port;
|
||||
<a name="l250"></a> PrintEscaped(selector, </span><span class=cF6>"\\\\\\"</span><span class=cF0>);
|
||||
<a name="l251"></a> </span><span class=cF6>"\\\");\\n\"$"</span><span class=cF0>;
|
||||
<a name="l252"></a> </span><span class=cF7>}</span><span class=cF0>
|
||||
<a name="l253"></a> </span><span class=cF6>"\n"</span><span class=cF0>;
|
||||
<a name="l254"></a>}
|
||||
<a name="l255"></a>
|
||||
<a name="l256"></a></span><span class=cF1>public</span><span class=cF0> </span><span class=cF9>I64</span><span class=cF0> GopherMenu(</span><span class=cF1>U8</span><span class=cF0> *host, </span><span class=cF9>U16</span><span class=cF0> port = </span><span class=cFE>70</span><span class=cF0>, </span><span class=cF1>U8</span><span class=cF0> *selector = </span><span class=cF6>"/"</span><span class=cF0>, </span><span class=cF1>U8</span><span class=cF0> *query = </span><span class=cF3>NULL</span><span class=cF0>)
|
||||
<a name="l257"></a>{
|
||||
<a name="l258"></a> </span><span class=cF9>I64</span><span class=cF0> sock, n;
|
||||
<a name="l259"></a> </span><span class=cF1>U8</span><span class=cF0> buf[</span><span class=cFE>256</span><span class=cF0>];
|
||||
<a name="l260"></a>
|
||||
<a name="l261"></a> sock = GopherOpen(host, port, selector, query);
|
||||
<a name="l262"></a> </span><span class=cF1>if</span><span class=cF0> (sock <= </span><span class=cFE>0</span><span class=cF0>)
|
||||
<a name="l263"></a> </span><span class=cF7>{</span><span class=cF0>
|
||||
<a name="l264"></a> </span><span class=cF1>return</span><span class=cF0> sock;
|
||||
<a name="l265"></a> </span><span class=cF7>}</span><span class=cF0>
|
||||
<a name="l266"></a>
|
||||
<a name="l267"></a> </span><span class=cF1>do</span><span class=cF0>
|
||||
<a name="l268"></a> </span><span class=cF7>{</span><span class=cF0>
|
||||
<a name="l269"></a></span><span class=cF2>//</span><span class=cF0> </span><span class=cF2>n = recvLine(sock, buf, sizeof(buf), 0);</span><span class=cF0>
|
||||
<a name="l270"></a> n = TCPSocketReceiveLine(sock, buf, </span><span class=cF1>sizeof</span><span class=cF7>(</span><span class=cF0>buf</span><span class=cF7>)</span><span class=cF0>);
|
||||
<a name="l271"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>StrCompare</span><span class=cF7>(</span><span class=cF0>buf, </span><span class=cF6>"."</span><span class=cF7>)</span><span class=cF0> == </span><span class=cFE>0</span><span class=cF0>)
|
||||
<a name="l272"></a> {
|
||||
<a name="l273"></a> </span><span class=cF1>break</span><span class=cF0>;
|
||||
<a name="l274"></a> }
|
||||
<a name="l275"></a> GopherLine(buf);
|
||||
<a name="l276"></a> </span><span class=cF7>}</span><span class=cF0>
|
||||
<a name="l277"></a> </span><span class=cF1>while</span><span class=cF0> (n > </span><span class=cFE>0</span><span class=cF0>);
|
||||
<a name="l278"></a>
|
||||
<a name="l279"></a></span><span class=cF2>//</span><span class=cF0> </span><span class=cF2>close(sock);</span><span class=cF0>
|
||||
<a name="l280"></a> TCPSocketClose(sock);
|
||||
<a name="l281"></a> </span><span class=cF1>return</span><span class=cF0> </span><span class=cFE>0</span><span class=cF0>;
|
||||
<a name="l282"></a>}
|
||||
<a name="l283"></a>
|
||||
<a name="l284"></a></span><span class=cF1>class</span><span class=cF0> CQueryForm
|
||||
<a name="l285"></a>{
|
||||
<a name="l286"></a> </span><span class=cF1>U8</span><span class=cF0> query[</span><span class=cFE>65</span><span class=cF0>] format </span><span class=cF6>"$DA-P,A=\"Query:%s\"$"</span><span class=cF0>;
|
||||
<a name="l287"></a>};
|
||||
<a name="l288"></a></span><span class=cF1>U0</span><span class=cF0> GopherQueryPrompt(</span><span class=cF1>U8</span><span class=cF0> *host, </span><span class=cF9>U16</span><span class=cF0> port, </span><span class=cF1>U8</span><span class=cF0> *selector)
|
||||
<a name="l289"></a>{
|
||||
<a name="l290"></a> CQueryForm form;
|
||||
<a name="l291"></a>
|
||||
<a name="l292"></a> form.query[</span><span class=cFE>0</span><span class=cF0>] = </span><span class=cFE>0</span><span class=cF0>;
|
||||
<a name="l293"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>PopUpForm</span><span class=cF7>(</span><span class=cF0>&form</span><span class=cF7>)</span><span class=cF0>)
|
||||
<a name="l294"></a> </span><span class=cF7>{</span><span class=cF0>
|
||||
<a name="l295"></a> GopherMenu(host, port, selector, form.query);
|
||||
<a name="l296"></a> </span><span class=cF7>}</span><span class=cF0>
|
||||
<a name="l297"></a>}
|
||||
<a name="l298"></a>
|
||||
<a name="l299"></a></span><span class=cF1>class</span><span class=cF0> CDlForm
|
||||
<a name="l300"></a>{
|
||||
<a name="l301"></a> </span><span class=cF1>U8</span><span class=cF0> name[</span><span class=cFE>256</span><span class=cF0>] format </span><span class=cF6>"$DA-P,LEN=255,A=\"FileName:%s\"$"</span><span class=cF0>;
|
||||
<a name="l302"></a>};
|
||||
<a name="l303"></a></span><span class=cF1>U0</span><span class=cF0> GopherDlPrompt(</span><span class=cF1>U8</span><span class=cF0> *host, </span><span class=cF9>U16</span><span class=cF0> port, </span><span class=cF1>U8</span><span class=cF0> *selector)
|
||||
<a name="l304"></a>{
|
||||
<a name="l305"></a> CDlForm form;
|
||||
<a name="l306"></a> </span><span class=cF1>U8</span><span class=cF0> *basename;
|
||||
<a name="l307"></a>
|
||||
<a name="l308"></a> basename = GopherBasename(selector);
|
||||
<a name="l309"></a> </span><span class=cF5>MemSet</span><span class=cF0>(form.name, </span><span class=cFE>0</span><span class=cF0>, </span><span class=cFE>256</span><span class=cF0>);
|
||||
<a name="l310"></a> </span><span class=cF5>MemCopy</span><span class=cF0>(form.name, basename,
|
||||
<a name="l311"></a> </span><span class=cF5>MinI64</span><span class=cF7>(</span><span class=cF5>StrLen</span><span class=cF0>(basename), </span><span class=cF1>sizeof</span><span class=cF0>(form.name) - </span><span class=cFE>1</span><span class=cF7>)</span><span class=cF0>);
|
||||
<a name="l312"></a> form.name[</span><span class=cFE>255</span><span class=cF0>] = </span><span class=cFE>0</span><span class=cF0>;
|
||||
<a name="l313"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>PopUpForm</span><span class=cF7>(</span><span class=cF0>&form</span><span class=cF7>)</span><span class=cF0>)
|
||||
<a name="l314"></a> </span><span class=cF7>{</span><span class=cF0>
|
||||
<a name="l315"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>StrLen</span><span class=cF7>(</span><span class=cF0>form.name</span><span class=cF7>)</span><span class=cF0> >= </span><span class=cFE>26</span><span class=cF0>)
|
||||
<a name="l316"></a> form.name[</span><span class=cFE>25</span><span class=cF0>] = </span><span class=cFE>0</span><span class=cF0>;
|
||||
<a name="l317"></a> GopherDl(host, port, selector,, form.name);
|
||||
<a name="l318"></a> </span><span class=cF7>}</span><span class=cF0>
|
||||
<a name="l319"></a>}
|
||||
<a name="l320"></a>
|
||||
<a name="l321"></a></span><span class=cF1>public</span><span class=cF0> </span><span class=cF9>I64</span><span class=cF0> Gopher(</span><span class=cF1>U8</span><span class=cF0> *hostname)
|
||||
<a name="l322"></a>{
|
||||
<a name="l323"></a> </span><span class=cF1>return</span><span class=cF0> GopherMenu(hostname);
|
||||
<a name="l324"></a>}
|
||||
<a name="l325"></a>
|
||||
<a name="l326"></a></span><span class=cF5>MemSetI64</span><span class=cF0>(gopher_associations, </span><span class=cF6>"GopherDlPrompt"</span><span class=cF0>, </span><span class=cFE>256</span><span class=cF0>);
|
||||
<a name="l327"></a>gopher_associations[</span><span class=cF6>'0'</span><span class=cF0>] = </span><span class=cF6>"GopherTextView"</span><span class=cF0>;
|
||||
<a name="l328"></a>gopher_associations[</span><span class=cF6>'1'</span><span class=cF0>] = </span><span class=cF6>"GopherMenu"</span><span class=cF0>;
|
||||
<a name="l329"></a>gopher_associations[</span><span class=cF6>'7'</span><span class=cF0>] = </span><span class=cF6>"GopherQueryPrompt"</span><span class=cF0>;
|
||||
<a name="l330"></a></span><span class=cF2>/* Include this file from your Net/Load.CC, then add more associations */</span><span class=cF0>
|
||||
<a name="l331"></a>
|
||||
<a name="l332"></a>
|
||||
<a name="l333"></a></span><span class=cF5>DocMax</span><span class=cF0>;
|
||||
<a name="l334"></a></span><span class=cF6>"\n\nTry using Gopher to connect to a gopher server, for example:"</span><span class=cF0>
|
||||
<a name="l335"></a></span><span class=cF6>"\n\n Gopher(\"gopher.floodgap.com\");"</span><span class=cF0>
|
||||
<a name="l336"></a></span><span class=cF6>"\n\n GopherMenu(\"eyeblea.ch\",70,\"/~zealos\");"</span><span class=cF0>
|
||||
<a name="l337"></a></span><span class=cF6>"\n\n Gopher(\"codevoid.de\");"</span><span class=cF0>
|
||||
<a name="l338"></a></span><span class=cF6>"\n\n"</span><span class=cF0>;</span></pre></body>
|
||||
</html>
|
|
@ -29,10 +29,11 @@ body {background-color:#1f1f1f;}
|
|||
<a name="l1"></a><span class=cF0>Directory of C:/Home/Net/Programs
|
||||
<a name="l2"></a></span><a href="https://zeal-operating-system.github.io/ZealOS/Home/Net/Programs/index.html#l1"><span class=cE4>./</span></a><span class=cF0>
|
||||
<a name="l3"></a></span><a href="https://zeal-operating-system.github.io/ZealOS/Home/Net/index.html#l1"><span class=cE4>../</span></a><span class=cF4>
|
||||
<a name="l4"></a></span><a href="https://zeal-operating-system.github.io/ZealOS/Home/Net/Programs/TCPChatClient.CC.html#l1"><span class=cF4>TCPChatClient.CC</span></a><span class=cF4>
|
||||
<a name="l5"></a></span><a href="https://zeal-operating-system.github.io/ZealOS/Home/Net/Programs/TCPChatServer.CC.html#l1"><span class=cF4>TCPChatServer.CC</span></a><span class=cF4>
|
||||
<a name="l6"></a></span><a href="https://zeal-operating-system.github.io/ZealOS/Home/Net/Programs/UDPChat.CC.html#l1"><span class=cF4>UDPChat.CC</span></a><span class=cF0>
|
||||
<a name="l7"></a>
|
||||
<a name="l4"></a></span><a href="https://zeal-operating-system.github.io/ZealOS/Home/Net/Programs/Gopher.CC.html#l1"><span class=cF4>Gopher.CC</span></a><span class=cF4>
|
||||
<a name="l5"></a></span><a href="https://zeal-operating-system.github.io/ZealOS/Home/Net/Programs/TCPChatClient.CC.html#l1"><span class=cF4>TCPChatClient.CC</span></a><span class=cF4>
|
||||
<a name="l6"></a></span><a href="https://zeal-operating-system.github.io/ZealOS/Home/Net/Programs/TCPChatServer.CC.html#l1"><span class=cF4>TCPChatServer.CC</span></a><span class=cF4>
|
||||
<a name="l7"></a></span><a href="https://zeal-operating-system.github.io/ZealOS/Home/Net/Programs/UDPChat.CC.html#l1"><span class=cF4>UDPChat.CC</span></a><span class=cF0>
|
||||
<a name="l8"></a>
|
||||
<a name="l9"></a>
|
||||
</span></pre></body>
|
||||
</html>
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -303,90 +303,93 @@ body {background-color:#1f1f1f;}
|
|||
<a name="l276"></a>
|
||||
<a name="l277"></a> </span><span class=cF2>// review RFC Reset-Generation ...</span><span class=cF0>
|
||||
<a name="l278"></a>
|
||||
<a name="l279"></a> de_index = TCPSend(packet->destination_ip_address,
|
||||
<a name="l280"></a> </span><span class=cF5>EndianU16</span><span class=cF7>(</span><span class=cF0>header->destination_port</span><span class=cF7>)</span><span class=cF0>,
|
||||
<a name="l281"></a> packet->source_ip_address,
|
||||
<a name="l282"></a> </span><span class=cF5>EndianU16</span><span class=cF7>(</span><span class=cF0>header->source_port</span><span class=cF7>)</span><span class=cF0>,
|
||||
<a name="l283"></a> seq_num,
|
||||
<a name="l284"></a> ack_num,
|
||||
<a name="l285"></a> TCPF_RST | TCPF_ACK);
|
||||
<a name="l286"></a> </span><span class=cF1>if</span><span class=cF0> (de_index < </span><span class=cFE>0</span><span class=cF0>)
|
||||
<a name="l287"></a> </span><span class=cF7>{</span><span class=cF0>
|
||||
<a name="l288"></a> NetErr(</span><span class=cF6>"TCP Handler Refuse: TCP Send failed."</span><span class=cF0>);
|
||||
<a name="l289"></a> </span><span class=cF1>return</span><span class=cF0> de_index;
|
||||
<a name="l290"></a> </span><span class=cF7>}</span><span class=cF0>
|
||||
<a name="l291"></a>
|
||||
<a name="l292"></a> </span><span class=cF1>return</span><span class=cF0> </span><span class=cFE>0</span><span class=cF0>;
|
||||
<a name="l293"></a>}
|
||||
<a name="l279"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>Bt</span><span class=cF7>(</span><span class=cF0>&header->flags, TCPf_RST</span><span class=cF7>)</span><span class=cF0> && </span><span class=cF5>Bt</span><span class=cF7>(</span><span class=cF0>&header->flags, TCPf_ACK</span><span class=cF7>)</span><span class=cF0>)
|
||||
<a name="l280"></a> </span><span class=cF1>return</span><span class=cF0> </span><span class=cFE>0</span><span class=cF0>; </span><span class=cF2>// bail: we probably sent an RST earlier, and this is the acknowledgement</span><span class=cF0>
|
||||
<a name="l281"></a>
|
||||
<a name="l282"></a> de_index = TCPSend(packet->destination_ip_address,
|
||||
<a name="l283"></a> </span><span class=cF5>EndianU16</span><span class=cF7>(</span><span class=cF0>header->destination_port</span><span class=cF7>)</span><span class=cF0>,
|
||||
<a name="l284"></a> packet->source_ip_address,
|
||||
<a name="l285"></a> </span><span class=cF5>EndianU16</span><span class=cF7>(</span><span class=cF0>header->source_port</span><span class=cF7>)</span><span class=cF0>,
|
||||
<a name="l286"></a> seq_num,
|
||||
<a name="l287"></a> ack_num,
|
||||
<a name="l288"></a> TCPF_RST | TCPF_ACK);
|
||||
<a name="l289"></a> </span><span class=cF1>if</span><span class=cF0> (de_index < </span><span class=cFE>0</span><span class=cF0>)
|
||||
<a name="l290"></a> </span><span class=cF7>{</span><span class=cF0>
|
||||
<a name="l291"></a> NetErr(</span><span class=cF6>"TCP Handler Refuse: TCP Send failed."</span><span class=cF0>);
|
||||
<a name="l292"></a> </span><span class=cF1>return</span><span class=cF0> de_index;
|
||||
<a name="l293"></a> </span><span class=cF7>}</span><span class=cF0>
|
||||
<a name="l294"></a>
|
||||
<a name="l295"></a></span><span class=cF9>I64</span><span class=cF0> TCPHandler(CIPV4Packet *packet)
|
||||
<a name="l296"></a>{
|
||||
<a name="l297"></a> CTCPHeader *header;
|
||||
<a name="l298"></a> </span><span class=cF9>U16</span><span class=cF0> destination_port;
|
||||
<a name="l299"></a> </span><span class=cF1>U8</span><span class=cF0> *data;
|
||||
<a name="l300"></a> </span><span class=cF9>I64</span><span class=cF0> length;
|
||||
<a name="l301"></a> CTCPTreeNode *head = tcp_globals.bound_socket_tree;
|
||||
<a name="l302"></a> CTCPTreeNode *node;
|
||||
<a name="l303"></a> CTCPTreeQueue *queue;
|
||||
<a name="l304"></a> CTCPSocket *tcp_socket;
|
||||
<a name="l305"></a> </span><span class=cF9>I64</span><span class=cF0> error = TCPPacketParse(&header, &data, &length, packet);
|
||||
<a name="l306"></a>
|
||||
<a name="l307"></a> </span><span class=cF1>if</span><span class=cF0> (error < </span><span class=cFE>0</span><span class=cF0>)
|
||||
<a name="l308"></a> </span><span class=cF7>{</span><span class=cF0>
|
||||
<a name="l309"></a> NetErr(</span><span class=cF6>"TCP HANDLER: Packet Parse Error."</span><span class=cF0>);
|
||||
<a name="l310"></a> </span><span class=cF1>return</span><span class=cF0> error;
|
||||
<a name="l311"></a> </span><span class=cF7>}</span><span class=cF0>
|
||||
<a name="l312"></a>
|
||||
<a name="l313"></a> NetDebug(</span><span class=cF6>"TCP HANDLER: Caught packet with dest port of %0X (B.E.)"</span><span class=cF0>, header->destination_port);
|
||||
<a name="l314"></a>
|
||||
<a name="l315"></a> destination_port = </span><span class=cF5>EndianU16</span><span class=cF0>(header->destination_port); </span><span class=cF2>// B.E. -> L.E.</span><span class=cF0>
|
||||
<a name="l316"></a> NetDebug(</span><span class=cF6>"TCP HANDLER: Caught packet with dest port of %0X (L.E.)"</span><span class=cF0>, destination_port);
|
||||
<a name="l295"></a> </span><span class=cF1>return</span><span class=cF0> </span><span class=cFE>0</span><span class=cF0>;
|
||||
<a name="l296"></a>}
|
||||
<a name="l297"></a>
|
||||
<a name="l298"></a></span><span class=cF9>I64</span><span class=cF0> TCPHandler(CIPV4Packet *packet)
|
||||
<a name="l299"></a>{
|
||||
<a name="l300"></a> CTCPHeader *header;
|
||||
<a name="l301"></a> </span><span class=cF9>U16</span><span class=cF0> destination_port;
|
||||
<a name="l302"></a> </span><span class=cF1>U8</span><span class=cF0> *data;
|
||||
<a name="l303"></a> </span><span class=cF9>I64</span><span class=cF0> length;
|
||||
<a name="l304"></a> CTCPTreeNode *head = tcp_globals.bound_socket_tree;
|
||||
<a name="l305"></a> CTCPTreeNode *node;
|
||||
<a name="l306"></a> CTCPTreeQueue *queue;
|
||||
<a name="l307"></a> CTCPSocket *tcp_socket;
|
||||
<a name="l308"></a> </span><span class=cF9>I64</span><span class=cF0> error = TCPPacketParse(&header, &data, &length, packet);
|
||||
<a name="l309"></a>
|
||||
<a name="l310"></a> </span><span class=cF1>if</span><span class=cF0> (error < </span><span class=cFE>0</span><span class=cF0>)
|
||||
<a name="l311"></a> </span><span class=cF7>{</span><span class=cF0>
|
||||
<a name="l312"></a> NetErr(</span><span class=cF6>"TCP HANDLER: Packet Parse Error."</span><span class=cF0>);
|
||||
<a name="l313"></a> </span><span class=cF1>return</span><span class=cF0> error;
|
||||
<a name="l314"></a> </span><span class=cF7>}</span><span class=cF0>
|
||||
<a name="l315"></a>
|
||||
<a name="l316"></a> NetDebug(</span><span class=cF6>"TCP HANDLER: Caught packet with dest port of %0X (B.E.)"</span><span class=cF0>, header->destination_port);
|
||||
<a name="l317"></a>
|
||||
<a name="l318"></a> </span><span class=cF1>if</span><span class=cF0> (head)
|
||||
<a name="l319"></a> </span><span class=cF7>{</span><span class=cF0>
|
||||
<a name="l320"></a> node = TCPTreeNodeFind(destination_port, head);
|
||||
<a name="l321"></a>
|
||||
<a name="l322"></a> </span><span class=cF1>if</span><span class=cF0> (node)
|
||||
<a name="l323"></a> {
|
||||
<a name="l324"></a> NetDebug(</span><span class=cF6>"TCP HANDLER: Found node for port, looking for address %0X (L.E.)"</span><span class=cF0>, packet->source_ip_address);
|
||||
<a name="l325"></a> queue = TCPTreeNodeQueueIPV4Find(packet->source_ip_address, node); </span><span class=cF2>// TODO: make sure bit order is correct here!!</span><span class=cF0>
|
||||
<a name="l326"></a> </span><span class=cF1>if</span><span class=cF0> (queue)
|
||||
<a name="l327"></a> </span><span class=cF7>{</span><span class=cF0>
|
||||
<a name="l328"></a> tcp_socket = queue->socket;
|
||||
<a name="l329"></a> NetLog(</span><span class=cF6>"TCP HANDLER: Port and Address are in bound tree."</span><span class=cF0>);
|
||||
<a name="l330"></a> </span><span class=cF7>}</span><span class=cF0>
|
||||
<a name="l331"></a> </span><span class=cF1>else</span><span class=cF0>
|
||||
<a name="l332"></a> </span><span class=cF7>{</span><span class=cF0>
|
||||
<a name="l333"></a> NetWarn(</span><span class=cF6>"TCP HANDLER: Found node for port, but address is not in node queue."</span><span class=cF0>);
|
||||
<a name="l334"></a> NetWarn(</span><span class=cF6>" TCP source ip: 0x%0X."</span><span class=cF0>, packet->source_ip_address);
|
||||
<a name="l335"></a>
|
||||
<a name="l336"></a> NetWarn(</span><span class=cF6>"TCP HANDLER: Sending TCP RST ACK packet. Refusing connection."</span><span class=cF0>);
|
||||
<a name="l337"></a> TCPHandleRefuse(packet, header, length);
|
||||
<a name="l338"></a> </span><span class=cF1>return</span><span class=cF0> -</span><span class=cFE>1</span><span class=cF0>;
|
||||
<a name="l339"></a> </span><span class=cF7>}</span><span class=cF0>
|
||||
<a name="l340"></a> }
|
||||
<a name="l341"></a> </span><span class=cF1>else</span><span class=cF0>
|
||||
<a name="l342"></a> {
|
||||
<a name="l343"></a> NetDebug(</span><span class=cF6>"TCP HANDLER: NODE SEARCH FAILURE: PORT %0X"</span><span class=cF0>, destination_port);
|
||||
<a name="l344"></a> NetWarn(</span><span class=cF6>"TCP HANDLER: Node for Port is not in tree."</span><span class=cF0>);
|
||||
<a name="l345"></a> NetWarn(</span><span class=cF6>"TCP HANDLER: Sending TCP RST ACK packet. Refusing connection."</span><span class=cF0>);
|
||||
<a name="l346"></a> TCPHandleRefuse(packet, header, length);
|
||||
<a name="l347"></a> </span><span class=cF1>return</span><span class=cF0> -</span><span class=cFE>1</span><span class=cF0>;
|
||||
<a name="l348"></a> }
|
||||
<a name="l349"></a>
|
||||
<a name="l350"></a> </span><span class=cF7>}</span><span class=cF0>
|
||||
<a name="l351"></a> </span><span class=cF1>else</span><span class=cF0>
|
||||
<a name="l352"></a> </span><span class=cF7>{</span><span class=cF0>
|
||||
<a name="l353"></a> NetWarn(</span><span class=cF6>"TCP HANDLER: Socket tree is currently empty."</span><span class=cF0>);
|
||||
<a name="l354"></a> NetWarn(</span><span class=cF6>"TCP HANDLER: Sending TCP RST ACK packet. Refusing connection."</span><span class=cF0>);
|
||||
<a name="l355"></a> TCPHandleRefuse(packet, header, length);
|
||||
<a name="l356"></a> </span><span class=cF1>return</span><span class=cF0> -</span><span class=cFE>1</span><span class=cF0>;
|
||||
<a name="l357"></a> </span><span class=cF7>}</span><span class=cF0>
|
||||
<a name="l358"></a>
|
||||
<a name="l359"></a> </span><span class=cF2>// at this point, tcp_socket is set, otherwise has already returned -1.</span><span class=cF0>
|
||||
<a name="l360"></a>
|
||||
<a name="l361"></a> NetDebug(</span><span class=cF6>"TCP HANDLER: Running TCP HANDLE SOCKET"</span><span class=cF0>);
|
||||
<a name="l362"></a> TCPHandleSocket(tcp_socket, packet, header, data, length);
|
||||
<a name="l318"></a> destination_port = </span><span class=cF5>EndianU16</span><span class=cF0>(header->destination_port); </span><span class=cF2>// B.E. -> L.E.</span><span class=cF0>
|
||||
<a name="l319"></a> NetDebug(</span><span class=cF6>"TCP HANDLER: Caught packet with dest port of %0X (L.E.)"</span><span class=cF0>, destination_port);
|
||||
<a name="l320"></a>
|
||||
<a name="l321"></a> </span><span class=cF1>if</span><span class=cF0> (head)
|
||||
<a name="l322"></a> </span><span class=cF7>{</span><span class=cF0>
|
||||
<a name="l323"></a> node = TCPTreeNodeFind(destination_port, head);
|
||||
<a name="l324"></a>
|
||||
<a name="l325"></a> </span><span class=cF1>if</span><span class=cF0> (node)
|
||||
<a name="l326"></a> {
|
||||
<a name="l327"></a> NetDebug(</span><span class=cF6>"TCP HANDLER: Found node for port, looking for address %0X (L.E.)"</span><span class=cF0>, packet->source_ip_address);
|
||||
<a name="l328"></a> queue = TCPTreeNodeQueueIPV4Find(packet->source_ip_address, node); </span><span class=cF2>// TODO: make sure bit order is correct here!!</span><span class=cF0>
|
||||
<a name="l329"></a> </span><span class=cF1>if</span><span class=cF0> (queue)
|
||||
<a name="l330"></a> </span><span class=cF7>{</span><span class=cF0>
|
||||
<a name="l331"></a> tcp_socket = queue->socket;
|
||||
<a name="l332"></a> NetLog(</span><span class=cF6>"TCP HANDLER: Port and Address are in bound tree."</span><span class=cF0>);
|
||||
<a name="l333"></a> </span><span class=cF7>}</span><span class=cF0>
|
||||
<a name="l334"></a> </span><span class=cF1>else</span><span class=cF0>
|
||||
<a name="l335"></a> </span><span class=cF7>{</span><span class=cF0>
|
||||
<a name="l336"></a> NetWarn(</span><span class=cF6>"TCP HANDLER: Found node for port, but address is not in node queue."</span><span class=cF0>);
|
||||
<a name="l337"></a> NetWarn(</span><span class=cF6>" TCP source ip: 0x%0X."</span><span class=cF0>, packet->source_ip_address);
|
||||
<a name="l338"></a>
|
||||
<a name="l339"></a> NetWarn(</span><span class=cF6>"TCP HANDLER: Sending TCP RST ACK packet. Refusing connection."</span><span class=cF0>);
|
||||
<a name="l340"></a> TCPHandleRefuse(packet, header, length);
|
||||
<a name="l341"></a> </span><span class=cF1>return</span><span class=cF0> -</span><span class=cFE>1</span><span class=cF0>;
|
||||
<a name="l342"></a> </span><span class=cF7>}</span><span class=cF0>
|
||||
<a name="l343"></a> }
|
||||
<a name="l344"></a> </span><span class=cF1>else</span><span class=cF0>
|
||||
<a name="l345"></a> {
|
||||
<a name="l346"></a> NetDebug(</span><span class=cF6>"TCP HANDLER: NODE SEARCH FAILURE: PORT %0X"</span><span class=cF0>, destination_port);
|
||||
<a name="l347"></a> NetWarn(</span><span class=cF6>"TCP HANDLER: Node for Port is not in tree."</span><span class=cF0>);
|
||||
<a name="l348"></a> NetWarn(</span><span class=cF6>"TCP HANDLER: Sending TCP RST ACK packet. Refusing connection."</span><span class=cF0>);
|
||||
<a name="l349"></a> TCPHandleRefuse(packet, header, length);
|
||||
<a name="l350"></a> </span><span class=cF1>return</span><span class=cF0> -</span><span class=cFE>1</span><span class=cF0>;
|
||||
<a name="l351"></a> }
|
||||
<a name="l352"></a>
|
||||
<a name="l353"></a> </span><span class=cF7>}</span><span class=cF0>
|
||||
<a name="l354"></a> </span><span class=cF1>else</span><span class=cF0>
|
||||
<a name="l355"></a> </span><span class=cF7>{</span><span class=cF0>
|
||||
<a name="l356"></a> NetWarn(</span><span class=cF6>"TCP HANDLER: Socket tree is currently empty."</span><span class=cF0>);
|
||||
<a name="l357"></a> NetWarn(</span><span class=cF6>"TCP HANDLER: Sending TCP RST ACK packet. Refusing connection."</span><span class=cF0>);
|
||||
<a name="l358"></a> TCPHandleRefuse(packet, header, length);
|
||||
<a name="l359"></a> </span><span class=cF1>return</span><span class=cF0> -</span><span class=cFE>1</span><span class=cF0>;
|
||||
<a name="l360"></a> </span><span class=cF7>}</span><span class=cF0>
|
||||
<a name="l361"></a>
|
||||
<a name="l362"></a> </span><span class=cF2>// at this point, tcp_socket is set, otherwise has already returned -1.</span><span class=cF0>
|
||||
<a name="l363"></a>
|
||||
<a name="l364"></a>}</span></pre></body>
|
||||
<a name="l364"></a> NetDebug(</span><span class=cF6>"TCP HANDLER: Running TCP HANDLE SOCKET"</span><span class=cF0>);
|
||||
<a name="l365"></a> TCPHandleSocket(tcp_socket, packet, header, data, length);
|
||||
<a name="l366"></a>
|
||||
<a name="l367"></a>}</span></pre></body>
|
||||
</html>
|
||||
|
|
|
@ -33,11 +33,13 @@ body {background-color:#1f1f1f;}
|
|||
<a name="l5"></a></span><a href="https://zeal-operating-system.github.io/ZealOS/Home/DoDistro.CC.html#l1"><span class=cF4>DoDistro.CC</span></a><span class=cF4>
|
||||
<a name="l6"></a></span><a href="https://zeal-operating-system.github.io/ZealOS/Home/HtmlGen.CC.html#l1"><span class=cF4>HtmlGen.CC</span></a><span class=cF4>
|
||||
<a name="l7"></a></span><a href="https://zeal-operating-system.github.io/ZealOS/Home/K.CC.html#l1"><span class=cF4>K.CC</span></a><span class=cF4>
|
||||
<a name="l8"></a></span><a href="https://zeal-operating-system.github.io/ZealOS/Home/Registry.CC.html#l1"><span class=cF4>Registry.CC</span></a><span class=cF4>
|
||||
<a name="l9"></a></span><a href="https://zeal-operating-system.github.io/ZealOS/Home/SSE.CC.html#l1"><span class=cF4>SSE.CC</span></a><span class=cF4>
|
||||
<a name="l10"></a></span><a href="https://zeal-operating-system.github.io/ZealOS/Home/Basics.DD.html#l1"><span class=cF4>Basics.DD</span></a><span class=cF4>
|
||||
<a name="l11"></a></span><a href="https://zeal-operating-system.github.io/ZealOS/Home/Roadmap.DD.html#l1"><span class=cF4>Roadmap.DD</span></a><span class=cF0>
|
||||
<a name="l12"></a>
|
||||
<a name="l13"></a>
|
||||
<a name="l8"></a></span><a href="https://zeal-operating-system.github.io/ZealOS/Home/MakeHome.CC.html#l1"><span class=cF4>MakeHome.CC</span></a><span class=cF4>
|
||||
<a name="l9"></a></span><a href="https://zeal-operating-system.github.io/ZealOS/Home/Registry.CC.html#l1"><span class=cF4>Registry.CC</span></a><span class=cF4>
|
||||
<a name="l10"></a></span><a href="https://zeal-operating-system.github.io/ZealOS/Home/SSE.CC.html#l1"><span class=cF4>SSE.CC</span></a><span class=cF4>
|
||||
<a name="l11"></a></span><a href="https://zeal-operating-system.github.io/ZealOS/Home/Basics.DD.html#l1"><span class=cF4>Basics.DD</span></a><span class=cF4>
|
||||
<a name="l12"></a></span><a href="https://zeal-operating-system.github.io/ZealOS/Home/Roadmap.DD.html#l1"><span class=cF4>Roadmap.DD</span></a><span class=cF4>
|
||||
<a name="l13"></a></span><a href="https://zeal-operating-system.github.io/ZealOS/Home/ASCII-ZEAL.TXT.html#l1"><span class=cF4>ASCII-ZEAL.TXT</span></a><span class=cF0>
|
||||
<a name="l14"></a>
|
||||
<a name="l15"></a>
|
||||
</span></pre></body>
|
||||
</html>
|
||||
|
|
|
@ -103,7 +103,7 @@ body {background-color:#1f1f1f;}
|
|||
<a name="l76"></a> </span><span class=cF1>if</span><span class=cF0> (i > drive->spc)
|
||||
<a name="l77"></a> i = drive->spc;
|
||||
<a name="l78"></a> </span><span class=cF5>BlkRead</span><span class=cF0>(drive, buf, drive->data_area + c * drive->spc, i);
|
||||
<a name="l79"></a> buf+=i << </span><span class=cF3>BLK_SIZE_BITS</span><span class=cF0>;
|
||||
<a name="l79"></a> buf += i << </span><span class=cF3>BLK_SIZE_BITS</span><span class=cF0>;
|
||||
<a name="l80"></a> c = </span><span class=cF5>ClusNumNext</span><span class=cF0>(drive, c, </span><span class=cFE>1</span><span class=cF0>);
|
||||
<a name="l81"></a> blks -= i;
|
||||
<a name="l82"></a> </span><span class=cF7>}</span><span class=cF0>
|
||||
|
|
|
@ -752,7 +752,7 @@ body {background-color:#1f1f1f;}
|
|||
<a name="l725"></a>
|
||||
<a name="l726"></a> </span><span class=cF6>"Task \""</span><span class=cF0>;
|
||||
<a name="l727"></a> </span><span class=cF6>"%s"</span><span class=cF0>, </span><span class=cF5>Fs</span><span class=cF0>->task_title;
|
||||
<a name="l728"></a> </span><span class=cF6>"\"\n"</span><span class=cF0>;
|
||||
<a name="l728"></a> </span><span class=cF6>"\"\n\n"</span><span class=cF0>;
|
||||
<a name="l729"></a> </span><span class=cF6>"Fault: 0x%02X %Z\n"</span><span class=cF0>, fault_num, fault_num, </span><span class=cF6>"ST_INT_NAMES"</span><span class=cF0>;
|
||||
<a name="l730"></a> </span><span class=cF6>"Err Code: %08X\n"</span><span class=cF0>, fault_err_code;
|
||||
<a name="l731"></a> was_in_debug = </span><span class=cF5>DebugMode</span><span class=cF0>(</span><span class=cF3>ON</span><span class=cF0>);
|
||||
|
|
|
@ -33,48 +33,44 @@ body {background-color:#1f1f1f;}
|
|||
<a name="l6"></a>
|
||||
<a name="l7"></a></span><span class=cF1>U0</span><span class=cF0> MakeMyISO(</span><span class=cF1>U8</span><span class=cF0> *_out_iso_filename)
|
||||
<a name="l8"></a>{</span><span class=cF2>//Does everything with current drive.</span><span class=cF0>
|
||||
<a name="l9"></a></span><span class=cF2>//If you have not recompiled Kernel and defined your CD/DVD drive, use </span><a href="https://zeal-operating-system.github.io/ZealOS/System/BlkDev/Mount.CC.html#l307"><span class=cF4>Mount</span></a><span class=cF2>.</span><span class=cF0>
|
||||
<a name="l10"></a> </span><span class=cF1>U8</span><span class=cF0> *out_iso_filename = </span><span class=cF5>FileNameAbs</span><span class=cF0>(_out_iso_filename);
|
||||
<a name="l11"></a> </span><span class=cF1>if</span><span class=cF0> (!</span><span class=cF5>DriveIsWritable</span><span class=cF0>)
|
||||
<a name="l12"></a> </span><span class=cF7>{</span><span class=cF0>
|
||||
<a name="l13"></a> </span><span class=cF6>"Drive must be writable.</span><span class=cF0> </span><span class=cF6>Install on Hard drive, first.\n"</span><span class=cF0>;
|
||||
<a name="l14"></a> </span><span class=cF1>return</span><span class=cF0>;
|
||||
<a name="l15"></a> </span><span class=cF7>}</span><span class=cF0>
|
||||
<a name="l16"></a> </span><span class=cF5>DelTree</span><span class=cF0>(</span><span class=cF6>"/Distro"</span><span class=cF0>);
|
||||
<a name="l17"></a> </span><span class=cF5>Del</span><span class=cF0>(out_iso_filename);
|
||||
<a name="l18"></a>
|
||||
<a name="l19"></a> </span><span class=cF5>DirMake</span><span class=cF0>(</span><span class=cF6>"/Distro"</span><span class=cF0>);
|
||||
<a name="l20"></a> </span><span class=cF5>In</span><span class=cF0>(</span><span class=cF3>STD_DISTRO_DVD_CONFIG</span><span class=cF0>);
|
||||
<a name="l21"></a> </span><span class=cF5>BootDVDIns</span><span class=cF0>;
|
||||
<a name="l22"></a>
|
||||
<a name="l23"></a> </span><span class=cF5>Copy</span><span class=cF0>(</span><span class=cF6>"/*"</span><span class=cF0>,</span><span class=cF6>"/Distro"</span><span class=cF0>);
|
||||
<a name="l24"></a> </span><span class=cF5>DirMake</span><span class=cF0>(</span><span class=cF6>"/Distro"</span><span class=cF0> </span><span class=cF3>BOOT_DIR</span><span class=cF0>);
|
||||
<a name="l25"></a> </span><span class=cF5>Move</span><span class=cF0>(</span><span class=cF3>BOOT_DIR_DVD_KERNEL_BIN_C</span><span class=cF0>, </span><span class=cF6>"/Distro"</span><span class=cF0> </span><span class=cF3>BOOT_DIR_KERNEL_BIN_C</span><span class=cF0>);
|
||||
<a name="l26"></a>
|
||||
<a name="l27"></a> </span><span class=cF5>CopyTree</span><span class=cF0>(</span><span class=cF6>"/Home"</span><span class=cF0>, </span><span class=cF6>"/Distro/Home"</span><span class=cF0>);
|
||||
<a name="l28"></a> </span><span class=cF5>Del</span><span class=cF0>(</span><span class=cF6>"/Distro/Home/Registry.CC"</span><span class=cF0>);
|
||||
<a name="l29"></a> </span><span class=cF5>CopyTree</span><span class=cF0>(</span><span class=cF6>"/System"</span><span class=cF0>, </span><span class=cF6>"/Distro/System"</span><span class=cF0>);
|
||||
<a name="l30"></a> </span><span class=cF5>Del</span><span class=cF0>(</span><span class=cF6>"/Distro/System/AutoComplete/ACDefs.DATA"</span><span class=cF0>);
|
||||
<a name="l31"></a> </span><span class=cF5>CopyTree</span><span class=cF0>(</span><span class=cF6>"/Compiler"</span><span class=cF0>, </span><span class=cF6>"/Distro/Compiler"</span><span class=cF0>);
|
||||
<a name="l32"></a> </span><span class=cF5>CopyTree</span><span class=cF0>(</span><span class=cF6>"/Kernel"</span><span class=cF0>, </span><span class=cF6>"/Distro/Kernel"</span><span class=cF0>);
|
||||
<a name="l33"></a> </span><span class=cF5>CopyTree</span><span class=cF0>(</span><span class=cF6>"/Misc"</span><span class=cF0>, </span><span class=cF6>"/Distro/Misc"</span><span class=cF0>);
|
||||
<a name="l34"></a> </span><span class=cF5>DirMake</span><span class=cF0>(</span><span class=cF6>"/Distro/Doc"</span><span class=cF0>);
|
||||
<a name="l35"></a> </span><span class=cF5>Copy</span><span class=cF0>(</span><span class=cF6>"/Doc/EdPullDown.DD"</span><span class=cF0>, </span><span class=cF6>"/Distro/Doc/EdPullDown.DD"</span><span class=cF0>);
|
||||
<a name="l36"></a> </span><span class=cF5>Copy</span><span class=cF0>(</span><span class=cF6>"/Doc/Tips.DD"</span><span class=cF0>, </span><span class=cF6>"/Distro/Doc/Tips.DD"</span><span class=cF0>);
|
||||
<a name="l37"></a> </span><span class=cF5>Copy</span><span class=cF0>(</span><span class=cF6>"/Misc/Auto/Once.CC"</span><span class=cF0>, </span><span class=cF6>"/Distro/Once.CC"</span><span class=cF0>);
|
||||
<a name="l38"></a> </span><span class=cF5>Copy</span><span class=cF0>(</span><span class=cF6>"/Misc/Auto/HomeSys.CC"</span><span class=cF0>, </span><span class=cF6>"/Distro/HomeSys.CC"</span><span class=cF0>);
|
||||
<a name="l39"></a> </span><span class=cF5>Del</span><span class=cF0>(</span><span class=cF6>"/Distro/Misc/PCIDevices.DD"</span><span class=cF0>);
|
||||
<a name="l40"></a> </span><span class=cF5>Del</span><span class=cF0>(</span><span class=cF6>"/Distro/Misc/Bible.TXT"</span><span class=cF0>);
|
||||
<a name="l41"></a> </span><span class=cF5>Del</span><span class=cF0>(</span><span class=cF6>"/Distro/Misc/Clementine.TXT"</span><span class=cF0>);
|
||||
<a name="l42"></a>
|
||||
<a name="l43"></a> </span><span class=cF5>RedSeaISO</span><span class=cF0>(out_iso_filename, </span><span class=cF6>"/Distro"</span><span class=cF0>, </span><span class=cF6>"/Distro"</span><span class=cF0> </span><span class=cF3>BOOT_DIR_KERNEL_BIN_C</span><span class=cF0>);
|
||||
<a name="l44"></a>
|
||||
<a name="l45"></a> </span><span class=cF5>DelTree</span><span class=cF0>(</span><span class=cF6>"/Distro"</span><span class=cF0>);
|
||||
<a name="l46"></a> </span><span class=cF5>Free</span><span class=cF0>(out_iso_filename);
|
||||
<a name="l47"></a>}
|
||||
<a name="l48"></a>
|
||||
<a name="l49"></a>MakeMyISO(</span><span class=cF6>"/Tmp/AUTO.ISO.C"</span><span class=cF0>);
|
||||
<a name="l50"></a>
|
||||
<a name="l51"></a></span><span class=cF2>// Study the account examples </span><a href="https://zeal-operating-system.github.io/ZealOS/Demo/AcctExample/TOS/TOSConfig.CC.html#l1"><span class=cF4>Config Strs</span></a><span class=cF2>, </span><a href="https://zeal-operating-system.github.io/ZealOS/Demo/AcctExample/TOS/TOSDistro.CC.html#l1"><span class=cF4>Update Funs</span></a><span class=cF2>.</span><span class=cF0>
|
||||
<a name="l9"></a> </span><span class=cF1>U8</span><span class=cF0> *out_iso_filename = </span><span class=cF5>FileNameAbs</span><span class=cF0>(_out_iso_filename);
|
||||
<a name="l10"></a> </span><span class=cF1>if</span><span class=cF0> (!</span><span class=cF5>DriveIsWritable</span><span class=cF0>)
|
||||
<a name="l11"></a> </span><span class=cF7>{</span><span class=cF0>
|
||||
<a name="l12"></a> </span><span class=cF6>"Drive must be writable.</span><span class=cF0> </span><span class=cF6>Install on Hard drive, first.\n"</span><span class=cF0>;
|
||||
<a name="l13"></a> </span><span class=cF1>return</span><span class=cF0>;
|
||||
<a name="l14"></a> </span><span class=cF7>}</span><span class=cF0>
|
||||
<a name="l15"></a> </span><span class=cF5>DelTree</span><span class=cF0>(</span><span class=cF6>"/Distro"</span><span class=cF0>);
|
||||
<a name="l16"></a> </span><span class=cF5>Del</span><span class=cF0>(out_iso_filename);
|
||||
<a name="l17"></a>
|
||||
<a name="l18"></a> </span><span class=cF5>DirMake</span><span class=cF0>(</span><span class=cF6>"/Distro"</span><span class=cF0>);
|
||||
<a name="l19"></a> </span><span class=cF5>In</span><span class=cF0>(</span><span class=cF3>STD_DISTRO_DVD_CONFIG</span><span class=cF0>);
|
||||
<a name="l20"></a> </span><span class=cF5>BootDVDIns</span><span class=cF0>;
|
||||
<a name="l21"></a>
|
||||
<a name="l22"></a> </span><span class=cF5>Copy</span><span class=cF0>(</span><span class=cF6>"/*"</span><span class=cF0>,</span><span class=cF6>"/Distro"</span><span class=cF0>);
|
||||
<a name="l23"></a> </span><span class=cF5>DirMake</span><span class=cF0>(</span><span class=cF6>"/Distro"</span><span class=cF0> </span><span class=cF3>BOOT_DIR</span><span class=cF0>);
|
||||
<a name="l24"></a> </span><span class=cF5>Move</span><span class=cF0>(</span><span class=cF3>BOOT_DIR_DVD_KERNEL_BIN_C</span><span class=cF0>, </span><span class=cF6>"/Distro"</span><span class=cF0> </span><span class=cF3>BOOT_DIR_KERNEL_BIN_C</span><span class=cF0>);
|
||||
<a name="l25"></a>
|
||||
<a name="l26"></a> </span><span class=cF5>CopyTree</span><span class=cF0>(</span><span class=cF6>"/Home"</span><span class=cF0>, </span><span class=cF6>"/Distro/Home"</span><span class=cF0>);
|
||||
<a name="l27"></a> </span><span class=cF5>Del</span><span class=cF0>(</span><span class=cF6>"/Distro/Home/Registry.CC"</span><span class=cF0>);
|
||||
<a name="l28"></a> </span><span class=cF5>CopyTree</span><span class=cF0>(</span><span class=cF6>"/System"</span><span class=cF0>, </span><span class=cF6>"/Distro/System"</span><span class=cF0>);
|
||||
<a name="l29"></a> </span><span class=cF5>Del</span><span class=cF0>(</span><span class=cF6>"/Distro/System/AutoComplete/ACDefs.DATA"</span><span class=cF0>);
|
||||
<a name="l30"></a> </span><span class=cF5>CopyTree</span><span class=cF0>(</span><span class=cF6>"/Compiler"</span><span class=cF0>, </span><span class=cF6>"/Distro/Compiler"</span><span class=cF0>);
|
||||
<a name="l31"></a> </span><span class=cF5>CopyTree</span><span class=cF0>(</span><span class=cF6>"/Kernel"</span><span class=cF0>, </span><span class=cF6>"/Distro/Kernel"</span><span class=cF0>);
|
||||
<a name="l32"></a> </span><span class=cF5>CopyTree</span><span class=cF0>(</span><span class=cF6>"/Misc"</span><span class=cF0>, </span><span class=cF6>"/Distro/Misc"</span><span class=cF0>);
|
||||
<a name="l33"></a> </span><span class=cF5>DirMake</span><span class=cF0>(</span><span class=cF6>"/Distro/Doc"</span><span class=cF0>);
|
||||
<a name="l34"></a> </span><span class=cF5>Copy</span><span class=cF0>(</span><span class=cF6>"/Doc/EdPullDown.DD"</span><span class=cF0>, </span><span class=cF6>"/Distro/Doc/EdPullDown.DD"</span><span class=cF0>);
|
||||
<a name="l35"></a> </span><span class=cF5>Copy</span><span class=cF0>(</span><span class=cF6>"/Doc/Tips.DD"</span><span class=cF0>, </span><span class=cF6>"/Distro/Doc/Tips.DD"</span><span class=cF0>);
|
||||
<a name="l36"></a> </span><span class=cF5>Copy</span><span class=cF0>(</span><span class=cF6>"/Misc/Auto/Once.CC"</span><span class=cF0>, </span><span class=cF6>"/Distro/Once.CC"</span><span class=cF0>);
|
||||
<a name="l37"></a> </span><span class=cF5>Copy</span><span class=cF0>(</span><span class=cF6>"/Misc/Auto/HomeSys.CC"</span><span class=cF0>, </span><span class=cF6>"/Distro/HomeSys.CC"</span><span class=cF0>);
|
||||
<a name="l38"></a> </span><span class=cF5>Del</span><span class=cF0>(</span><span class=cF6>"/Distro/Misc/PCIDevices.DD"</span><span class=cF0>);
|
||||
<a name="l39"></a> </span><span class=cF5>Del</span><span class=cF0>(</span><span class=cF6>"/Distro/Misc/Bible.TXT"</span><span class=cF0>);
|
||||
<a name="l40"></a> </span><span class=cF5>Del</span><span class=cF0>(</span><span class=cF6>"/Distro/Misc/Clementine.TXT"</span><span class=cF0>);
|
||||
<a name="l41"></a>
|
||||
<a name="l42"></a> </span><span class=cF5>RedSeaISO</span><span class=cF0>(out_iso_filename, </span><span class=cF6>"/Distro"</span><span class=cF0>, </span><span class=cF6>"/Distro"</span><span class=cF0> </span><span class=cF3>BOOT_DIR_KERNEL_BIN_C</span><span class=cF0>);
|
||||
<a name="l43"></a>
|
||||
<a name="l44"></a> </span><span class=cF5>DelTree</span><span class=cF0>(</span><span class=cF6>"/Distro"</span><span class=cF0>);
|
||||
<a name="l45"></a> </span><span class=cF5>Free</span><span class=cF0>(out_iso_filename);
|
||||
<a name="l46"></a>}
|
||||
<a name="l47"></a>MakeMyISO(</span><span class=cF6>"/Tmp/AUTO.ISO.C"</span><span class=cF0>);
|
||||
</span></pre></body>
|
||||
</html>
|
||||
|
|
57
docs/Misc/Auto/AutoFullDistro0.CC.html
Executable file
57
docs/Misc/Auto/AutoFullDistro0.CC.html
Executable file
|
@ -0,0 +1,57 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=US-ASCII">
|
||||
<meta name="generator" content="ZealOS V1.04">
|
||||
<style type="text/css">
|
||||
body {background-color:#1f1f1f;}
|
||||
.cF0{color:#e3e3e3;background-color:#1f1f1f;}
|
||||
.cF1{color:#4f84a6;background-color:#1f1f1f;}
|
||||
.cF2{color:#73a255;background-color:#1f1f1f;}
|
||||
.cF3{color:#297582;background-color:#1f1f1f;}
|
||||
.cF4{color:#b34f4b;background-color:#1f1f1f;}
|
||||
.cF5{color:#8a52c3;background-color:#1f1f1f;}
|
||||
.cF6{color:#b7822f;background-color:#1f1f1f;}
|
||||
.cF7{color:#444444;background-color:#1f1f1f;}
|
||||
.cF8{color:#6d6d6d;background-color:#1f1f1f;}
|
||||
.cF9{color:#94bfde;background-color:#1f1f1f;}
|
||||
.cFA{color:#a1ce97;background-color:#1f1f1f;}
|
||||
.cFB{color:#6db4be;background-color:#1f1f1f;}
|
||||
.cFC{color:#e88e88;background-color:#1f1f1f;}
|
||||
.cFD{color:#ca94e8;background-color:#1f1f1f;}
|
||||
.cFE{color:#d4b475;background-color:#1f1f1f;}
|
||||
.cFF{color:#1f1f1f;background-color:#1f1f1f;}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<pre style="font-family:monospace;font-size:12pt">
|
||||
<a name="l1"></a><span class=cF1>U0</span><span class=cF0> Auto()
|
||||
<a name="l2"></a>{
|
||||
<a name="l3"></a> </span><span class=cF9>I64</span><span class=cF0> i, ata_port = -</span><span class=cFE>1</span><span class=cF0>;
|
||||
<a name="l4"></a> </span><span class=cF9>CAHCIPort</span><span class=cF0> *port;
|
||||
<a name="l5"></a> </span><span class=cF1>U8</span><span class=cF0> *in_str;
|
||||
<a name="l6"></a>
|
||||
<a name="l7"></a> </span><span class=cF1>for</span><span class=cF0> (i = </span><span class=cFE>0</span><span class=cF0>; i < </span><span class=cF3>AHCI_MAX_PORTS</span><span class=cF0>; i++)
|
||||
<a name="l8"></a>
|
||||
<a name="l9"></a> </span><span class=cF7>{</span><span class=cF0>
|
||||
<a name="l10"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>Bt</span><span class=cF7>(</span><span class=cF0>&</span><span class=cFB>blkdev</span><span class=cF0>.ahci_hba->ports_implemented, i</span><span class=cF7>)</span><span class=cF0>)
|
||||
<a name="l11"></a> {
|
||||
<a name="l12"></a> port = &</span><span class=cFB>blkdev</span><span class=cF0>.ahci_hba->ports[i];
|
||||
<a name="l13"></a> </span><span class=cF1>if</span><span class=cF0> (port->signature == </span><span class=cF3>AHCI_PxSIG_ATA</span><span class=cF0>)
|
||||
<a name="l14"></a> </span><span class=cF7>{</span><span class=cF0>
|
||||
<a name="l15"></a> ata_port = i;
|
||||
<a name="l16"></a> </span><span class=cF1>break</span><span class=cF0>;
|
||||
<a name="l17"></a> </span><span class=cF7>}</span><span class=cF0>
|
||||
<a name="l18"></a> }
|
||||
<a name="l19"></a> </span><span class=cF7>}</span><span class=cF0>
|
||||
<a name="l20"></a>
|
||||
<a name="l21"></a> </span><span class=cF5>BootMHDIns</span><span class=cF0>(</span><span class=cF6>'C'</span><span class=cF0>);
|
||||
<a name="l22"></a> in_str = </span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>"Sleep(700);In(\"CC\\n%d\\n\\n1024\\n768\\n\\n\\n\");"</span><span class=cF0>, ata_port);
|
||||
<a name="l23"></a> </span><span class=cF5>OnceDrive</span><span class=cF0>(</span><span class=cF6>'C'</span><span class=cF0>, in_str);
|
||||
<a name="l24"></a> </span><span class=cF5>Free</span><span class=cF0>(in_str);
|
||||
<a name="l25"></a> in_str = </span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>"BootHDIns;OnceFlush;Once(\"#include \\\"/Misc/Auto/AutoFullDistro1\\\";;Auto;\");Reboot;"</span><span class=cF0>);
|
||||
<a name="l26"></a> </span><span class=cF5>OnceDrive</span><span class=cF0>(</span><span class=cF6>'C'</span><span class=cF0>, in_str);
|
||||
<a name="l27"></a> </span><span class=cF5>OutU8</span><span class=cF0>(</span><span class=cFE>0x501</span><span class=cF0>,</span><span class=cFE>0x31</span><span class=cF0>);
|
||||
<a name="l28"></a>}
|
||||
<a name="l29"></a>Auto;</span></pre></body>
|
||||
</html>
|
|
@ -123,38 +123,34 @@ body {background-color:#1f1f1f;}
|
|||
<a name="l96"></a> </span><span class=cF5>BootMHDIns</span><span class=cF0>(</span><span class=cF6>'C'</span><span class=cF0>);
|
||||
<a name="l97"></a> </span><span class=cF7>}</span><span class=cF0>
|
||||
<a name="l98"></a>
|
||||
<a name="l99"></a> in_str = </span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>"Sleep(300);In(\"CC\\n%d\\n\\n1024\\n768\\n\\n\\n\");"</span><span class=cF0>, ata_port);
|
||||
<a name="l100"></a> </span><span class=cF5>OnceDrive</span><span class=cF0>(</span><span class=cF6>'C'</span><span class=cF0>, in_str);
|
||||
<a name="l101"></a> </span><span class=cF5>Free</span><span class=cF0>(in_str);
|
||||
<a name="l102"></a> in_str = </span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>"BootHDIns;BootMHDIns('c');OnceFlush;"</span><span class=cF0>
|
||||
<a name="l103"></a> </span><span class=cF6>"Once(\"#include \\\"/Misc/Auto/AutoFullDistro1\\\";;Auto;\");Reboot;"</span><span class=cF0>);
|
||||
<a name="l104"></a> </span><span class=cF5>OnceDrive</span><span class=cF0>(</span><span class=cF6>'C'</span><span class=cF0>, in_str);
|
||||
<a name="l105"></a>
|
||||
<a name="l106"></a> </span><span class=cF2>////////////////////////////////////</span><span class=cF0>
|
||||
<a name="l107"></a>
|
||||
<a name="l108"></a> </span><span class=cF5>WinVert</span><span class=cF0>(task->win_top, </span><span class=cF5>Fs</span><span class=cF0>->win_bottom);
|
||||
<a name="l109"></a> </span><span class=cF5>Kill</span><span class=cF0>(task);
|
||||
<a name="l110"></a>}
|
||||
<a name="l111"></a>
|
||||
<a name="l112"></a></span><span class=cF1>Bool</span><span class=cF0> DoInstall(</span><span class=cF1>Bool</span><span class=cF0> prompt_reboot)
|
||||
<a name="l113"></a>{
|
||||
<a name="l114"></a> </span><span class=cF9>I64</span><span class=cF0> res = </span><span class=cF3>FALSE</span><span class=cF0>, vm_install = </span><span class=cF3>TRUE</span><span class=cF0>;
|
||||
<a name="l115"></a>
|
||||
<a name="l116"></a> vm_install = </span><span class=cF3>TRUE</span><span class=cF0>;
|
||||
<a name="l117"></a> </span><span class=cF5>DocBottom</span><span class=cF0>;
|
||||
<a name="l118"></a> VMInstallWiz();
|
||||
<a name="l119"></a> res = </span><span class=cF3>TRUE</span><span class=cF0>;
|
||||
<a name="l120"></a> </span><span class=cF5>OutU8</span><span class=cF0>(</span><span class=cFE>0x501</span><span class=cF0>,</span><span class=cFE>0x31</span><span class=cF0>);
|
||||
<a name="l121"></a> </span><span class=cF1>return</span><span class=cF0> res;
|
||||
<a name="l122"></a>}
|
||||
<a name="l123"></a>
|
||||
<a name="l124"></a></span><span class=cF1>Bool</span><span class=cF0> OSInstall(</span><span class=cF1>Bool</span><span class=cF0> prompt_reboot=</span><span class=cF3>TRUE</span><span class=cF0>)
|
||||
<a name="l125"></a>{
|
||||
<a name="l126"></a> </span><span class=cF1>return</span><span class=cF0> DoInstall(prompt_reboot);
|
||||
<a name="l127"></a>}
|
||||
<a name="l128"></a>
|
||||
<a name="l129"></a>#</span><span class=cF1>if</span><span class=cF0> </span><span class=cF3>__CMD_LINE__</span><span class=cF0>
|
||||
<a name="l130"></a>OSInstall(</span><span class=cF3>TRUE</span><span class=cF0>);
|
||||
<a name="l131"></a>#</span><span class=cF1>endif</span><span class=cF0>
|
||||
<a name="l99"></a> </span><span class=cF5>Copy</span><span class=cF0>(</span><span class=cF6>"::/Misc/Auto/BootMHD2.CC"</span><span class=cF0>, </span><span class=cF6>"C:/System/Boot/BootMHD2.CC"</span><span class=cF0>);
|
||||
<a name="l100"></a>
|
||||
<a name="l101"></a> </span><span class=cF2>////////////////////////////////////</span><span class=cF0>
|
||||
<a name="l102"></a>
|
||||
<a name="l103"></a> </span><span class=cF5>WinVert</span><span class=cF0>(task->win_top, </span><span class=cF5>Fs</span><span class=cF0>->win_bottom);
|
||||
<a name="l104"></a> </span><span class=cF5>Kill</span><span class=cF0>(task);
|
||||
<a name="l105"></a>}
|
||||
<a name="l106"></a>
|
||||
<a name="l107"></a></span><span class=cF1>Bool</span><span class=cF0> DoInstall(</span><span class=cF1>Bool</span><span class=cF0> prompt_reboot)
|
||||
<a name="l108"></a>{
|
||||
<a name="l109"></a> </span><span class=cF9>I64</span><span class=cF0> res = </span><span class=cF3>FALSE</span><span class=cF0>, vm_install = </span><span class=cF3>TRUE</span><span class=cF0>;
|
||||
<a name="l110"></a>
|
||||
<a name="l111"></a> vm_install = </span><span class=cF3>TRUE</span><span class=cF0>;
|
||||
<a name="l112"></a> </span><span class=cF5>DocBottom</span><span class=cF0>;
|
||||
<a name="l113"></a> VMInstallWiz();
|
||||
<a name="l114"></a> res = </span><span class=cF3>TRUE</span><span class=cF0>;
|
||||
<a name="l115"></a> </span><span class=cF5>OnceDrive</span><span class=cF0>(</span><span class=cF6>'C'</span><span class=cF0>, </span><span class=cF6>"PopUp(\"#include \\\"/Misc/Auto/AutoFullDistro0\\\";\");"</span><span class=cF0>);
|
||||
<a name="l116"></a> </span><span class=cF5>BootRAM</span><span class=cF0>(</span><span class=cF6>"C:"</span><span class=cF0> </span><span class=cF3>BOOT_DIR_KERNEL_BIN_C</span><span class=cF0>);
|
||||
<a name="l117"></a> </span><span class=cF1>return</span><span class=cF0> res;
|
||||
<a name="l118"></a>}
|
||||
<a name="l119"></a>
|
||||
<a name="l120"></a></span><span class=cF1>Bool</span><span class=cF0> OSInstall(</span><span class=cF1>Bool</span><span class=cF0> prompt_reboot=</span><span class=cF3>TRUE</span><span class=cF0>)
|
||||
<a name="l121"></a>{
|
||||
<a name="l122"></a> </span><span class=cF1>return</span><span class=cF0> DoInstall(prompt_reboot);
|
||||
<a name="l123"></a>}
|
||||
<a name="l124"></a>
|
||||
<a name="l125"></a>#</span><span class=cF1>if</span><span class=cF0> </span><span class=cF3>__CMD_LINE__</span><span class=cF0>
|
||||
<a name="l126"></a>OSInstall(</span><span class=cF3>TRUE</span><span class=cF0>);
|
||||
<a name="l127"></a>#</span><span class=cF1>endif</span><span class=cF0>
|
||||
</span></pre></body>
|
||||
</html>
|
||||
|
|
151
docs/Misc/Auto/BootMHD2.CC.html
Executable file
151
docs/Misc/Auto/BootMHD2.CC.html
Executable file
|
@ -0,0 +1,151 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=US-ASCII">
|
||||
<meta name="generator" content="ZealOS V1.04">
|
||||
<style type="text/css">
|
||||
body {background-color:#1f1f1f;}
|
||||
.cF0{color:#e3e3e3;background-color:#1f1f1f;}
|
||||
.cF1{color:#4f84a6;background-color:#1f1f1f;}
|
||||
.cF2{color:#73a255;background-color:#1f1f1f;}
|
||||
.cF3{color:#297582;background-color:#1f1f1f;}
|
||||
.cF4{color:#b34f4b;background-color:#1f1f1f;}
|
||||
.cF5{color:#8a52c3;background-color:#1f1f1f;}
|
||||
.cF6{color:#b7822f;background-color:#1f1f1f;}
|
||||
.cF7{color:#444444;background-color:#1f1f1f;}
|
||||
.cF8{color:#6d6d6d;background-color:#1f1f1f;}
|
||||
.cF9{color:#94bfde;background-color:#1f1f1f;}
|
||||
.cFA{color:#a1ce97;background-color:#1f1f1f;}
|
||||
.cFB{color:#6db4be;background-color:#1f1f1f;}
|
||||
.cFC{color:#e88e88;background-color:#1f1f1f;}
|
||||
.cFD{color:#ca94e8;background-color:#1f1f1f;}
|
||||
.cFE{color:#d4b475;background-color:#1f1f1f;}
|
||||
.cFF{color:#1f1f1f;background-color:#1f1f1f;}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<pre style="font-family:monospace;font-size:12pt">
|
||||
<a name="l1"></a><span class=cF0>#</span><span class=cF1>define</span><span class=cF0> </span><span class=cF3>MODULE_SIZE</span><span class=cF0> </span><span class=cFE>2</span><span class=cF0> * </span><span class=cF3>BLK_SIZE</span><span class=cF0>
|
||||
<a name="l2"></a>#</span><span class=cF1>define</span><span class=cF0> </span><span class=cF3>BOOT_HIGH_LOC_MHD2</span><span class=cF0> (</span><span class=cF7>(</span><span class=cF3>BOOT_RAM_LIMIT</span><span class=cF0> - (</span><span class=cF3>BOOT_STACK_SIZE</span><span class=cF0> + </span><span class=cF3>MODULE_SIZE</span><span class=cF0>)</span><span class=cF7>)</span><span class=cF0> >> </span><span class=cFE>4</span><span class=cF0>)
|
||||
<a name="l3"></a>
|
||||
<a name="l4"></a></span><span class=cF5>DefinePrint</span><span class=cF0>(</span><span class=cF6>"DD_BOOT_HIGH_LOC_MHD2"</span><span class=cF0>, </span><span class=cF6>"%08X"</span><span class=cF0>, </span><span class=cF3>BOOT_HIGH_LOC_MHD2</span><span class=cF0> << </span><span class=cFE>4</span><span class=cF0>);
|
||||
<a name="l5"></a>
|
||||
<a name="l6"></a></span><span class=cF1>asm</span><span class=cF0> {
|
||||
<a name="l7"></a></span><span class=cF1>USE16</span><span class=cF0>
|
||||
<a name="l8"></a></span><span class=cFD>BMHD2_START</span><span class=cF0>::
|
||||
<a name="l9"></a> </span><span class=cF1>MOV</span><span class=cF0> </span><span class=cF9>U32</span><span class=cF0> </span><span class=cFC>FS</span><span class=cF0>:[</span><span class=cFE>0</span><span class=cF0>], </span><span class=cF6>'B'</span><span class=cF0> + </span><span class=cFE>0x2000</span><span class=cF0> + (</span><span class=cF6>'2'</span><span class=cF0> + </span><span class=cFE>0x2000</span><span class=cF0>) << </span><span class=cFE>16</span><span class=cF0>
|
||||
<a name="l10"></a>
|
||||
<a name="l11"></a> </span><span class=cF1>MOV</span><span class=cF0> </span><span class=cFC>AX</span><span class=cF0>, </span><span class=cF3>BOOT_HIGH_LOC_MHD2</span><span class=cF0>
|
||||
<a name="l12"></a> </span><span class=cF1>MOV</span><span class=cF0> </span><span class=cFC>ES</span><span class=cF0>, </span><span class=cFC>AX</span><span class=cF0>
|
||||
<a name="l13"></a></span><span class=cF2>//This copies this bootloader's code to 0x00096A00</span><span class=cF0>
|
||||
<a name="l14"></a> </span><span class=cF1>MOV</span><span class=cF0> </span><span class=cFC>AX</span><span class=cF0>, </span><span class=cFC>CS</span><span class=cF0>
|
||||
<a name="l15"></a> </span><span class=cF1>MOV</span><span class=cF0> </span><span class=cFC>DS</span><span class=cF0>, </span><span class=cFC>AX</span><span class=cF0>
|
||||
<a name="l16"></a> </span><span class=cF1>MOV</span><span class=cF0> </span><span class=cF9>U32</span><span class=cF0> [BMHD2_OLD_CS_RIP - </span><span class=cFD>BMHD2_START</span><span class=cF0>], </span><span class=cFC>EBX</span><span class=cF0>
|
||||
<a name="l17"></a> </span><span class=cF1>MOV</span><span class=cF0> </span><span class=cF1>U8</span><span class=cF0> [BMHD2_BIOS_DRIVE_NUM - </span><span class=cFD>BMHD2_START</span><span class=cF0>], </span><span class=cFC>DL</span><span class=cF0>
|
||||
<a name="l18"></a>
|
||||
<a name="l19"></a> </span><span class=cF1>MOV</span><span class=cF0> </span><span class=cFC>CX</span><span class=cF0>, </span><span class=cF3>MODULE_SIZE</span><span class=cF0>
|
||||
<a name="l20"></a> </span><span class=cF1>XOR</span><span class=cF0> </span><span class=cFC>SI</span><span class=cF0>, </span><span class=cFC>SI</span><span class=cF0>
|
||||
<a name="l21"></a> </span><span class=cF1>XOR</span><span class=cF0> </span><span class=cFC>DI</span><span class=cF0>, </span><span class=cFC>DI</span><span class=cF0>
|
||||
<a name="l22"></a> </span><span class=cF1>REP_MOVSB</span><span class=cF0>
|
||||
<a name="l23"></a>
|
||||
<a name="l24"></a> </span><span class=cF1>MOV</span><span class=cF0> </span><span class=cFC>AX</span><span class=cF0>, </span><span class=cF3>BOOT_HIGH_LOC_MHD2</span><span class=cF0>
|
||||
<a name="l25"></a> </span><span class=cF1>MOV</span><span class=cF0> </span><span class=cFC>DS</span><span class=cF0>, </span><span class=cFC>AX</span><span class=cF0>
|
||||
<a name="l26"></a>
|
||||
<a name="l27"></a></span><span class=cF2>//The assembler doesn't support 16-bit very well.</span><span class=cF0>
|
||||
<a name="l28"></a> </span><span class=cF1>DU8</span><span class=cF0> </span><span class=cFE>0xEA</span><span class=cF0>; </span><span class=cF2>//JMP BOOT_HIGH_LOC_MHD2:BMHD2_HISTART</span><span class=cF0>
|
||||
<a name="l29"></a> </span><span class=cF1>DU16</span><span class=cF0> BMHD2_HISTART - </span><span class=cFD>BMHD2_START</span><span class=cF0>, </span><span class=cF3>BOOT_HIGH_LOC_MHD2</span><span class=cF0>;
|
||||
<a name="l30"></a>
|
||||
<a name="l31"></a></span><span class=cFD>BMHD2_BOOT_MESSAGE</span><span class=cF0>::
|
||||
<a name="l32"></a> </span><span class=cF1>DU8</span><span class=cF0> </span><span class=cFE>256</span><span class=cF0> </span><span class=cF1>DUP</span><span class=cF0>(</span><span class=cFE>0</span><span class=cF0>);
|
||||
<a name="l33"></a>
|
||||
<a name="l34"></a>BMHD2_BIOS_DRIVE_NUM: </span><span class=cF1>DU8</span><span class=cF0> </span><span class=cFE>0</span><span class=cF0>;
|
||||
<a name="l35"></a>BMHD2_PAGE: </span><span class=cF1>DU8</span><span class=cF0> </span><span class=cFE>0</span><span class=cF0>;
|
||||
<a name="l36"></a></span><span class=cFD>BMHD2_BLK_ARRAY</span><span class=cF0>:: </span><span class=cF1>DU64</span><span class=cF0> </span><span class=cFE>8</span><span class=cF0> </span><span class=cF1>DUP</span><span class=cF0>(</span><span class=cFE>0</span><span class=cF0>);
|
||||
<a name="l37"></a>
|
||||
<a name="l38"></a>BMHD2_DAP: </span><span class=cF1>DU8</span><span class=cF0> </span><span class=cFE>16</span><span class=cF0>, </span><span class=cFE>0</span><span class=cF0>, </span><span class=cFE>1</span><span class=cF0>, </span><span class=cFE>0</span><span class=cF0>; </span><span class=cF2>//One block at a time</span><span class=cF0>
|
||||
<a name="l39"></a>BMHD2_DAP_BUF: </span><span class=cF1>DU16</span><span class=cF0> </span><span class=cFE>0</span><span class=cF0>, </span><span class=cFE>0</span><span class=cF0>;
|
||||
<a name="l40"></a></span><span class=cFD>BMHD2_DAP_BLK</span><span class=cF0>:: </span><span class=cF2>//64-bit</span><span class=cF0>
|
||||
<a name="l41"></a>BMHD2_DAP_BLK_LO: </span><span class=cF1>DU32</span><span class=cF0> </span><span class=cFE>0</span><span class=cF0>;
|
||||
<a name="l42"></a>BMHD2_DAP_BLK_HI: </span><span class=cF1>DU32</span><span class=cF0> </span><span class=cFE>0</span><span class=cF0>;
|
||||
<a name="l43"></a>
|
||||
<a name="l44"></a></span><span class=cFD>BMHD2_PUT_CHAR</span><span class=cF0>::
|
||||
<a name="l45"></a> </span><span class=cF1>MOV</span><span class=cF0> </span><span class=cFC>AH</span><span class=cF0>, </span><span class=cFE>0xE</span><span class=cF0>
|
||||
<a name="l46"></a> </span><span class=cF1>MOV</span><span class=cF0> </span><span class=cFC>BL</span><span class=cF0>, </span><span class=cFE>7</span><span class=cF0> </span><span class=cF2>//Might be foreground color on some BIOS's</span><span class=cF0>
|
||||
<a name="l47"></a> </span><span class=cF1>MOV</span><span class=cF0> </span><span class=cFC>BH</span><span class=cF0>, </span><span class=cF1>U8</span><span class=cF0> [BMHD2_PAGE - </span><span class=cFD>BMHD2_START</span><span class=cF0>]
|
||||
<a name="l48"></a> </span><span class=cF1>INT</span><span class=cF0> </span><span class=cFE>0x10</span><span class=cF0>
|
||||
<a name="l49"></a></span><span class=cFD>BMHD2_RET</span><span class=cF0>::
|
||||
<a name="l50"></a> </span><span class=cF1>RET</span><span class=cF0>
|
||||
<a name="l51"></a></span><span class=cFD>BMHD2_PUTS</span><span class=cF0>::
|
||||
<a name="l52"></a>@@1: </span><span class=cF1>LODSB</span><span class=cF0>
|
||||
<a name="l53"></a> </span><span class=cF1>TEST</span><span class=cF0> </span><span class=cFC>AL</span><span class=cF0>, </span><span class=cFC>AL</span><span class=cF0>
|
||||
<a name="l54"></a> </span><span class=cF1>JZ</span><span class=cF0> </span><span class=cFD>BMHD2_RET</span><span class=cF0>
|
||||
<a name="l55"></a> </span><span class=cF1>CALL</span><span class=cF0> </span><span class=cFD>BMHD2_PUT_CHAR</span><span class=cF0>
|
||||
<a name="l56"></a> </span><span class=cF1>JMP</span><span class=cF0> @@1
|
||||
<a name="l57"></a>
|
||||
<a name="l58"></a>BMHD2_GETCHAR:
|
||||
<a name="l59"></a> </span><span class=cF1>XOR</span><span class=cF0> </span><span class=cFC>AH</span><span class=cF0>, </span><span class=cFC>AH</span><span class=cF0>
|
||||
<a name="l60"></a> </span><span class=cF1>INT</span><span class=cF0> </span><span class=cFE>0x16</span><span class=cF0>
|
||||
<a name="l61"></a> </span><span class=cF1>PUSH</span><span class=cF0> </span><span class=cFC>AX</span><span class=cF0>
|
||||
<a name="l62"></a> </span><span class=cF1>MOV</span><span class=cF0> </span><span class=cFC>AH</span><span class=cF0>, </span><span class=cFE>0x0E</span><span class=cF0>
|
||||
<a name="l63"></a> </span><span class=cF1>MOV</span><span class=cF0> </span><span class=cFC>BX</span><span class=cF0>, </span><span class=cFE>0x07</span><span class=cF0>
|
||||
<a name="l64"></a> </span><span class=cF1>INT</span><span class=cF0> </span><span class=cFE>0x10</span><span class=cF0>
|
||||
<a name="l65"></a> </span><span class=cF1>POP</span><span class=cF0> </span><span class=cFC>AX</span><span class=cF0>
|
||||
<a name="l66"></a> </span><span class=cF1>RET</span><span class=cF0>
|
||||
<a name="l67"></a>
|
||||
<a name="l68"></a>BMHD2_HISTART:
|
||||
<a name="l69"></a> </span><span class=cF1>MOV</span><span class=cF0> </span><span class=cFC>AH</span><span class=cF0>, </span><span class=cFE>0xF</span><span class=cF0>
|
||||
<a name="l70"></a> </span><span class=cF1>INT</span><span class=cF0> </span><span class=cFE>0x10</span><span class=cF0>
|
||||
<a name="l71"></a> </span><span class=cF1>MOV</span><span class=cF0> </span><span class=cF1>U8</span><span class=cF0> [BMHD2_PAGE - </span><span class=cFD>BMHD2_START</span><span class=cF0>], </span><span class=cFC>BH</span><span class=cF0> </span><span class=cF2>//Video page</span><span class=cF0>
|
||||
<a name="l72"></a>
|
||||
<a name="l73"></a> </span><span class=cF1>MOV</span><span class=cF0> </span><span class=cF9>U32</span><span class=cF0> </span><span class=cFC>FS</span><span class=cF0>:[</span><span class=cFE>0</span><span class=cF0>], </span><span class=cFE>0</span><span class=cF0>
|
||||
<a name="l74"></a>@@5: </span><span class=cF1>MOV</span><span class=cF0> </span><span class=cFC>SI</span><span class=cF0>, </span><span class=cFD>BMHD2_BOOT_MESSAGE</span><span class=cF0> - </span><span class=cFD>BMHD2_START</span><span class=cF0>
|
||||
<a name="l75"></a> </span><span class=cF1>CALL</span><span class=cF0> </span><span class=cFD>BMHD2_PUTS</span><span class=cF0>
|
||||
<a name="l76"></a></span><span class=cF2>//</span><span class=cF0> </span><span class=cF2>CALL</span><span class=cF0> </span><span class=cF2>BMHD2_GETCHAR</span><span class=cF0>
|
||||
<a name="l77"></a> </span><span class=cF1>MOV</span><span class=cF0> </span><span class=cFC>AL</span><span class=cF0>, </span><span class=cF6>'1'</span><span class=cF0> </span><span class=cF2>// go directly to C:/</span><span class=cF0>
|
||||
<a name="l78"></a> </span><span class=cF1>CMP</span><span class=cF0> </span><span class=cFC>AL</span><span class=cF0>, </span><span class=cF6>'0'</span><span class=cF0>
|
||||
<a name="l79"></a> </span><span class=cF1>JB</span><span class=cF0> @@5
|
||||
<a name="l80"></a> </span><span class=cF1>CMP</span><span class=cF0> </span><span class=cFC>AL</span><span class=cF0>, </span><span class=cF6>'8'</span><span class=cF0>
|
||||
<a name="l81"></a> </span><span class=cF1>JAE</span><span class=cF0> @@5
|
||||
<a name="l82"></a> </span><span class=cF1>AND</span><span class=cF0> </span><span class=cFC>EAX</span><span class=cF0>, </span><span class=cFE>7</span><span class=cF0>
|
||||
<a name="l83"></a>
|
||||
<a name="l84"></a> </span><span class=cF1>MOV</span><span class=cF0> </span><span class=cFC>EBX</span><span class=cF0>, </span><span class=cF9>U32</span><span class=cF0> </span><span class=cFD>BMHD2_BLK_ARRAY</span><span class=cF0> - </span><span class=cFD>BMHD2_START</span><span class=cF0>[</span><span class=cFC>EAX</span><span class=cF0> * </span><span class=cFE>8</span><span class=cF0>]
|
||||
<a name="l85"></a> </span><span class=cF1>MOV</span><span class=cF0> </span><span class=cFC>EAX</span><span class=cF0>, </span><span class=cF9>U32</span><span class=cF0> </span><span class=cFD>BMHD2_BLK_ARRAY</span><span class=cF0> + </span><span class=cFE>4</span><span class=cF0> - </span><span class=cFD>BMHD2_START</span><span class=cF0>[</span><span class=cFC>EAX</span><span class=cF0> * </span><span class=cFE>8</span><span class=cF0>]
|
||||
<a name="l86"></a>
|
||||
<a name="l87"></a> </span><span class=cF1>TEST</span><span class=cF0> </span><span class=cFC>EBX</span><span class=cF0>, </span><span class=cFC>EBX</span><span class=cF0>
|
||||
<a name="l88"></a> </span><span class=cF1>JNZ</span><span class=cF0> @@10
|
||||
<a name="l89"></a> </span><span class=cF1>TEST</span><span class=cF0> </span><span class=cFC>EAX</span><span class=cF0>, </span><span class=cFC>EAX</span><span class=cF0>
|
||||
<a name="l90"></a> </span><span class=cF1>JZ</span><span class=cF0> @@5
|
||||
<a name="l91"></a>
|
||||
<a name="l92"></a>@@10: </span><span class=cF1>MOV</span><span class=cF0> </span><span class=cF9>U32</span><span class=cF0> [BMHD2_DAP_BLK_LO - </span><span class=cFD>BMHD2_START</span><span class=cF0>], </span><span class=cFC>EBX</span><span class=cF0>
|
||||
<a name="l93"></a> </span><span class=cF1>MOV</span><span class=cF0> </span><span class=cF9>U32</span><span class=cF0> [BMHD2_DAP_BLK_HI - </span><span class=cFD>BMHD2_START</span><span class=cF0>], </span><span class=cFC>EAX</span><span class=cF0>
|
||||
<a name="l94"></a>
|
||||
<a name="l95"></a> </span><span class=cF1>MOV</span><span class=cF0> </span><span class=cFC>AX</span><span class=cF0>, </span><span class=cF9>U16</span><span class=cF0> [BMHD2_OLD_CS_RIP - </span><span class=cFD>BMHD2_START</span><span class=cF0>]
|
||||
<a name="l96"></a> </span><span class=cF1>SHR</span><span class=cF0> </span><span class=cFC>AX</span><span class=cF0>, </span><span class=cFE>4</span><span class=cF0>
|
||||
<a name="l97"></a> </span><span class=cF1>ADD</span><span class=cF0> </span><span class=cFC>AX</span><span class=cF0>, </span><span class=cF9>U16</span><span class=cF0> [BMHD2_OLD_CS_RIP + </span><span class=cFE>2</span><span class=cF0> - </span><span class=cFD>BMHD2_START</span><span class=cF0>]
|
||||
<a name="l98"></a> </span><span class=cF1>MOV</span><span class=cF0> </span><span class=cF9>U16</span><span class=cF0> [BMHD2_DAP_BUF + </span><span class=cFE>2</span><span class=cF0> - </span><span class=cFD>BMHD2_START</span><span class=cF0>], </span><span class=cFC>AX</span><span class=cF0> </span><span class=cF2>//ES:0000</span><span class=cF0>
|
||||
<a name="l99"></a> </span><span class=cF1>MOV</span><span class=cF0> </span><span class=cFC>SI</span><span class=cF0>, BMHD2_DAP - </span><span class=cFD>BMHD2_START</span><span class=cF0> </span><span class=cF2>//DS:SI=DAP</span><span class=cF0>
|
||||
<a name="l100"></a> </span><span class=cF1>MOV</span><span class=cF0> </span><span class=cFC>DL</span><span class=cF0>, </span><span class=cF1>U8</span><span class=cF0> [BMHD2_BIOS_DRIVE_NUM - </span><span class=cFD>BMHD2_START</span><span class=cF0>]
|
||||
<a name="l101"></a> </span><span class=cF1>MOV</span><span class=cF0> </span><span class=cFC>AH</span><span class=cF0>, </span><span class=cFE>0x42</span><span class=cF0>
|
||||
<a name="l102"></a> </span><span class=cF1>INT</span><span class=cF0> </span><span class=cFE>0x13</span><span class=cF0>
|
||||
<a name="l103"></a>
|
||||
<a name="l104"></a> </span><span class=cF1>POP</span><span class=cF0> </span><span class=cFC>EBP</span><span class=cF0>
|
||||
<a name="l105"></a> </span><span class=cF1>POP</span><span class=cF0> </span><span class=cFC>EDX</span><span class=cF0>
|
||||
<a name="l106"></a> </span><span class=cF1>POP</span><span class=cF0> </span><span class=cFC>EBX</span><span class=cF0>
|
||||
<a name="l107"></a> </span><span class=cF1>POP</span><span class=cF0> </span><span class=cFC>ECX</span><span class=cF0>
|
||||
<a name="l108"></a> </span><span class=cF1>XOR</span><span class=cF0> </span><span class=cFC>EAX</span><span class=cF0>, </span><span class=cFC>EAX</span><span class=cF0>
|
||||
<a name="l109"></a> </span><span class=cF1>POP</span><span class=cF0> </span><span class=cFC>GS</span><span class=cF0>
|
||||
<a name="l110"></a> </span><span class=cF1>POP</span><span class=cF0> </span><span class=cFC>FS</span><span class=cF0>
|
||||
<a name="l111"></a> </span><span class=cF1>POP</span><span class=cF0> </span><span class=cFC>ES</span><span class=cF0>
|
||||
<a name="l112"></a> </span><span class=cF1>POP</span><span class=cF0> </span><span class=cFC>DS</span><span class=cF0>
|
||||
<a name="l113"></a> </span><span class=cF1>POPF</span><span class=cF0>
|
||||
<a name="l114"></a>
|
||||
<a name="l115"></a></span><span class=cF2>//The assembler doesn't support 16-bit very well.</span><span class=cF0>
|
||||
<a name="l116"></a> </span><span class=cF1>DU8</span><span class=cF0> </span><span class=cFE>0xEA</span><span class=cF0>; </span><span class=cF2>//JMP xxxx:yyyy</span><span class=cF0>
|
||||
<a name="l117"></a>BMHD2_OLD_CS_RIP:
|
||||
<a name="l118"></a> </span><span class=cF1>DU16</span><span class=cF0> </span><span class=cFE>0</span><span class=cF0>, </span><span class=cFE>0</span><span class=cF0>;
|
||||
<a name="l119"></a></span><span class=cFD>BMHD2_END</span><span class=cF0>::
|
||||
<a name="l120"></a></span><span class=cF2>//Continues here </span><a href="https://zeal-operating-system.github.io/ZealOS/System/Boot/BootHD.CC.html#l10"><span class=cF4>::/System/Boot/BootHD.CC</span></a><span class=cF0>
|
||||
<a name="l121"></a>#</span><span class=cF1>assert</span><span class=cF0> </span><span class=cFD>BMHD2_END</span><span class=cF0> - </span><span class=cFD>BMHD2_START</span><span class=cF0> < </span><span class=cF3>MODULE_SIZE</span><span class=cF0>
|
||||
<a name="l122"></a>}
|
||||
</span></pre></body>
|
||||
</html>
|
|
@ -25,44 +25,41 @@ body {background-color:#1f1f1f;}
|
|||
</head>
|
||||
<body>
|
||||
<pre style="font-family:monospace;font-size:12pt">
|
||||
<a name="l1"></a><span class=cF2>//Place this file in /Home and change</span><span class=cF0>
|
||||
<a name="l2"></a></span><span class=cF2>//anything you want.</span><span class=cF0>
|
||||
<a name="l3"></a>
|
||||
<a name="l4"></a></span><span class=cF1>U0</span><span class=cF0> </span><span class=cF5>UserStartUp</span><span class=cF0>()
|
||||
<a name="l5"></a>{</span><span class=cF2>//Run each time a user a spawned</span><span class=cF0>
|
||||
<a name="l6"></a> </span><span class=cF5>DocTermNew</span><span class=cF0>;
|
||||
<a name="l7"></a> </span><span class=cF5>Type</span><span class=cF0>(</span><span class=cF6>"::/Doc/Start.DD"</span><span class=cF0>);
|
||||
<a name="l8"></a> </span><span class=cF5>LBts</span><span class=cF0>(&</span><span class=cF5>Fs</span><span class=cF0>->display_flags, </span><span class=cF3>DISPLAYf_SHOW</span><span class=cF0>);
|
||||
<a name="l9"></a> </span><span class=cF5>WinToTop</span><span class=cF0>;
|
||||
<a name="l10"></a> </span><span class=cF5>WinZBufUpdate</span><span class=cF0>;
|
||||
<a name="l11"></a> </span><span class=cF5>Dir</span><span class=cF0>;
|
||||
<a name="l12"></a>}
|
||||
<a name="l13"></a>
|
||||
<a name="l14"></a></span><span class=cF1>U0</span><span class=cF0> </span><span class=cF5>ServerStartUp</span><span class=cF0>()
|
||||
<a name="l15"></a>{</span><span class=cF2>//Run each time a server task is spawned.</span><span class=cF0>
|
||||
<a name="l16"></a> </span><span class=cF5>DocTermNew</span><span class=cF0>;
|
||||
<a name="l17"></a> </span><span class=cF5>LBts</span><span class=cF0>(&</span><span class=cF5>Fs</span><span class=cF0>->display_flags, </span><span class=cF3>DISPLAYf_SHOW</span><span class=cF0>);
|
||||
<a name="l18"></a> </span><span class=cF5>WinToTop</span><span class=cF0>;
|
||||
<a name="l19"></a> </span><span class=cF5>WinZBufUpdate</span><span class=cF0>;
|
||||
<a name="l20"></a>}
|
||||
<a name="l21"></a>
|
||||
<a name="l22"></a></span><span class=cF1>U0</span><span class=cF0> </span><span class=cF5>StartUpTasks</span><span class=cF0>()
|
||||
<a name="l23"></a>{
|
||||
<a name="l24"></a> </span><span class=cF9>CTask</span><span class=cF0> *user = </span><span class=cF5>User</span><span class=cF0>;
|
||||
<a name="l1"></a><span class=cF1>U0</span><span class=cF0> </span><span class=cF5>UserStartUp</span><span class=cF0>()
|
||||
<a name="l2"></a>{
|
||||
<a name="l3"></a> </span><span class=cF5>DocTermNew</span><span class=cF0>;
|
||||
<a name="l4"></a> </span><span class=cF5>Type</span><span class=cF0>(</span><span class=cF6>"::/Doc/Start.DD"</span><span class=cF0>);
|
||||
<a name="l5"></a> </span><span class=cF5>LBts</span><span class=cF0>(&</span><span class=cF5>Fs</span><span class=cF0>->display_flags, </span><span class=cF3>DISPLAYf_SHOW</span><span class=cF0>);
|
||||
<a name="l6"></a> </span><span class=cF5>WinToTop</span><span class=cF0>;
|
||||
<a name="l7"></a> </span><span class=cF5>WinZBufUpdate</span><span class=cF0>;
|
||||
<a name="l8"></a> </span><span class=cF5>Dir</span><span class=cF0>;
|
||||
<a name="l9"></a>}
|
||||
<a name="l10"></a>
|
||||
<a name="l11"></a></span><span class=cF1>U0</span><span class=cF0> </span><span class=cF5>ServerStartUp</span><span class=cF0>()
|
||||
<a name="l12"></a>{
|
||||
<a name="l13"></a> </span><span class=cF5>DocTermNew</span><span class=cF0>;
|
||||
<a name="l14"></a> </span><span class=cF5>LBts</span><span class=cF0>(&</span><span class=cF5>Fs</span><span class=cF0>->display_flags, </span><span class=cF3>DISPLAYf_SHOW</span><span class=cF0>);
|
||||
<a name="l15"></a> </span><span class=cF5>WinToTop</span><span class=cF0>;
|
||||
<a name="l16"></a> </span><span class=cF5>WinZBufUpdate</span><span class=cF0>;
|
||||
<a name="l17"></a>}
|
||||
<a name="l18"></a>
|
||||
<a name="l19"></a></span><span class=cF1>U0</span><span class=cF0> </span><span class=cF5>StartUpTasks</span><span class=cF0>()
|
||||
<a name="l20"></a>{
|
||||
<a name="l21"></a> </span><span class=cF9>CTask</span><span class=cF0> *user = </span><span class=cF5>User</span><span class=cF0>;
|
||||
<a name="l22"></a>
|
||||
<a name="l23"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cFB>sys_boot_src</span><span class=cF0>.u16[</span><span class=cFE>0</span><span class=cF0>] != </span><span class=cF3>BOOT_SRC_DVD</span><span class=cF0>)
|
||||
<a name="l24"></a> </span><span class=cF5>User</span><span class=cF0>;
|
||||
<a name="l25"></a>
|
||||
<a name="l26"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cFB>sys_boot_src</span><span class=cF0>.u16[</span><span class=cFE>0</span><span class=cF0>] != </span><span class=cF3>BOOT_SRC_DVD</span><span class=cF0>)
|
||||
<a name="l27"></a> </span><span class=cF5>User</span><span class=cF0>;
|
||||
<a name="l28"></a>
|
||||
<a name="l29"></a> </span><span class=cF5>WinToTop</span><span class=cF0>(user);
|
||||
<a name="l30"></a> </span><span class=cF5>WinTileVert</span><span class=cF0>;
|
||||
<a name="l31"></a> </span><span class=cF6>"Boot Time:%7.3fs\n"</span><span class=cF0>, </span><span class=cF5>tS</span><span class=cF0>;
|
||||
<a name="l32"></a> </span><span class=cF5>XTalk</span><span class=cF0>(user, </span><span class=cF6>"Cd; #include \"Once\";\n"</span><span class=cF0>);
|
||||
<a name="l33"></a> </span><span class=cF5>Silent</span><span class=cF0>; </span><span class=cF2>//no output to screen</span><span class=cF0>
|
||||
<a name="l34"></a> </span><span class=cF5>Silent</span><span class=cF0>(</span><span class=cF3>OFF</span><span class=cF0>); </span><span class=cF2>//no output to screen</span><span class=cF0>
|
||||
<a name="l35"></a>}
|
||||
<a name="l36"></a>
|
||||
<a name="l37"></a></span><span class=cF5>StartUpTasks</span><span class=cF0>;
|
||||
<a name="l38"></a>
|
||||
<a name="l39"></a></span><span class=cF6>"\nZealOS V%0.2f\t%D %T\n\n"</span><span class=cF0>, </span><span class=cFB>sys_os_version</span><span class=cF0>, </span><span class=cFB>sys_compile_time</span><span class=cF0>, </span><span class=cFB>sys_compile_time</span><span class=cF0>;
|
||||
<a name="l26"></a> </span><span class=cF5>WinToTop</span><span class=cF0>(user);
|
||||
<a name="l27"></a> </span><span class=cF5>WinTileVert</span><span class=cF0>;
|
||||
<a name="l28"></a> </span><span class=cF6>"Boot Time:%7.3fs\n"</span><span class=cF0>, </span><span class=cF5>tS</span><span class=cF0>;
|
||||
<a name="l29"></a> </span><span class=cF5>XTalk</span><span class=cF0>(user, </span><span class=cF6>"Cd; #include \"Once\";\n"</span><span class=cF0>);
|
||||
<a name="l30"></a> </span><span class=cF5>Silent</span><span class=cF0>;
|
||||
<a name="l31"></a> </span><span class=cF5>Silent</span><span class=cF0>(</span><span class=cF3>OFF</span><span class=cF0>);
|
||||
<a name="l32"></a>}
|
||||
<a name="l33"></a>
|
||||
<a name="l34"></a></span><span class=cF5>StartUpTasks</span><span class=cF0>;
|
||||
<a name="l35"></a>
|
||||
<a name="l36"></a></span><span class=cF6>"\nZealOS V%0.2f\t%D %T\n\n"</span><span class=cF0>, </span><span class=cFB>sys_os_version</span><span class=cF0>, </span><span class=cFB>sys_compile_time</span><span class=cF0>, </span><span class=cFB>sys_compile_time</span><span class=cF0>;
|
||||
</span></pre></body>
|
||||
</html>
|
||||
|
|
|
@ -32,34 +32,32 @@ body {background-color:#1f1f1f;}
|
|||
<a name="l5"></a></span><span class=cF2>//first terminal window upon start-up.</span><span class=cF0>
|
||||
<a name="l6"></a></span><span class=cF2>//See </span><a href="https://zeal-operating-system.github.io/ZealOS/Home/HomeSys.CC.html#l32"><span class=cF4>Once</span></a><span class=cF2> and </span><a href="https://zeal-operating-system.github.io/ZealOS/Doc/GuideLines.DD.html#l29"><span class=cF4>Home Files</span></a><span class=cF2>.</span><span class=cF0>
|
||||
<a name="l7"></a>
|
||||
<a name="l8"></a></span><span class=cF2>//Delete the rest from this file.</span><span class=cF0>
|
||||
<a name="l9"></a>
|
||||
<a name="l10"></a></span><span class=cF1>U0</span><span class=cF0> Tmp()
|
||||
<a name="l11"></a>{
|
||||
<a name="l12"></a> </span><span class=cF5>OnceExe</span><span class=cF0>;
|
||||
<a name="l13"></a> </span><span class=cF1>switch</span><span class=cF0> (</span><span class=cFB>sys_boot_src</span><span class=cF0>.u16[</span><span class=cFE>0</span><span class=cF0>])
|
||||
<a name="l14"></a> </span><span class=cF7>{</span><span class=cF0>
|
||||
<a name="l15"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>BOOT_SRC_ROM</span><span class=cF0>:
|
||||
<a name="l16"></a> </span><span class=cF6>"Continue booting hard drive "</span><span class=cF0>;
|
||||
<a name="l17"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>YorN</span><span class=cF0>)
|
||||
<a name="l18"></a> {
|
||||
<a name="l19"></a> </span><span class=cF5>DocBottom</span><span class=cF0>;
|
||||
<a name="l20"></a> </span><span class=cF5>ExeFile</span><span class=cF0>(</span><span class=cF6>"C:/Home/Once"</span><span class=cF0>);
|
||||
<a name="l21"></a> }
|
||||
<a name="l22"></a> </span><span class=cF1>break</span><span class=cF0>;
|
||||
<a name="l23"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>BOOT_SRC_DVD</span><span class=cF0>:
|
||||
<a name="l24"></a> </span><span class=cF5>DocBottom</span><span class=cF0>;
|
||||
<a name="l25"></a> </span><span class=cF5>RunFile</span><span class=cF0>(</span><span class=cF6>"::/Misc/Auto/AutoInstall"</span><span class=cF0>,, </span><span class=cF3>TRUE</span><span class=cF0>);
|
||||
<a name="l26"></a> </span><span class=cF1>break</span><span class=cF0>;
|
||||
<a name="l27"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>BOOT_SRC_HARDDRIVE</span><span class=cF0>:
|
||||
<a name="l28"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>BOOT_SRC_RAM</span><span class=cF0>:
|
||||
<a name="l29"></a> </span><span class=cF6>"\n$PURPLE$$TX+CX,\"Tips of the Day\"$$FG$\n"</span><span class=cF0>;
|
||||
<a name="l30"></a> </span><span class=cF5>TipOfDay</span><span class=cF0>;</span><span class=cF5>Yield</span><span class=cF0>;
|
||||
<a name="l31"></a> </span><span class=cF5>TipOfDay</span><span class=cF0>;
|
||||
<a name="l32"></a> </span><span class=cF5>Type</span><span class=cF0>(</span><span class=cF6>"::/Doc/Customize.DD"</span><span class=cF0>);
|
||||
<a name="l33"></a> </span><span class=cF1>break</span><span class=cF0>;
|
||||
<a name="l34"></a> </span><span class=cF7>}</span><span class=cF0>
|
||||
<a name="l35"></a>}
|
||||
<a name="l36"></a>Tmp;
|
||||
<a name="l8"></a></span><span class=cF1>U0</span><span class=cF0> Tmp()
|
||||
<a name="l9"></a>{
|
||||
<a name="l10"></a> </span><span class=cF5>OnceExe</span><span class=cF0>;
|
||||
<a name="l11"></a> </span><span class=cF1>switch</span><span class=cF0> (</span><span class=cFB>sys_boot_src</span><span class=cF0>.u16[</span><span class=cFE>0</span><span class=cF0>])
|
||||
<a name="l12"></a> </span><span class=cF7>{</span><span class=cF0>
|
||||
<a name="l13"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>BOOT_SRC_ROM</span><span class=cF0>:
|
||||
<a name="l14"></a> </span><span class=cF6>"Continue booting hard drive "</span><span class=cF0>;
|
||||
<a name="l15"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>YorN</span><span class=cF0>)
|
||||
<a name="l16"></a> {
|
||||
<a name="l17"></a> </span><span class=cF5>DocBottom</span><span class=cF0>;
|
||||
<a name="l18"></a> </span><span class=cF5>ExeFile</span><span class=cF0>(</span><span class=cF6>"C:/Home/Once"</span><span class=cF0>);
|
||||
<a name="l19"></a> }
|
||||
<a name="l20"></a> </span><span class=cF1>break</span><span class=cF0>;
|
||||
<a name="l21"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>BOOT_SRC_DVD</span><span class=cF0>:
|
||||
<a name="l22"></a> </span><span class=cF5>DocBottom</span><span class=cF0>;
|
||||
<a name="l23"></a> </span><span class=cF5>RunFile</span><span class=cF0>(</span><span class=cF6>"::/Misc/Auto/AutoInstall"</span><span class=cF0>,, </span><span class=cF3>TRUE</span><span class=cF0>);
|
||||
<a name="l24"></a> </span><span class=cF1>break</span><span class=cF0>;
|
||||
<a name="l25"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>BOOT_SRC_HARDDRIVE</span><span class=cF0>:
|
||||
<a name="l26"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>BOOT_SRC_RAM</span><span class=cF0>:
|
||||
<a name="l27"></a> </span><span class=cF6>"\n$PURPLE$$TX+CX,\"Tips of the Day\"$$FG$\n"</span><span class=cF0>;
|
||||
<a name="l28"></a> </span><span class=cF5>TipOfDay</span><span class=cF0>;</span><span class=cF5>Yield</span><span class=cF0>;
|
||||
<a name="l29"></a> </span><span class=cF5>TipOfDay</span><span class=cF0>;
|
||||
<a name="l30"></a> </span><span class=cF5>Type</span><span class=cF0>(</span><span class=cF6>"::/Doc/Customize.DD"</span><span class=cF0>);
|
||||
<a name="l31"></a> </span><span class=cF1>break</span><span class=cF0>;
|
||||
<a name="l32"></a> </span><span class=cF7>}</span><span class=cF0>
|
||||
<a name="l33"></a>}
|
||||
<a name="l34"></a>Tmp;
|
||||
</span></pre></body>
|
||||
</html>
|
||||
|
|
|
@ -30,12 +30,14 @@ body {background-color:#1f1f1f;}
|
|||
<a name="l2"></a></span><a href="https://zeal-operating-system.github.io/ZealOS/Misc/Auto/index.html#l1"><span class=cE4>./</span></a><span class=cF0>
|
||||
<a name="l3"></a></span><a href="https://zeal-operating-system.github.io/ZealOS/Misc/index.html#l1"><span class=cE4>../</span></a><span class=cF4>
|
||||
<a name="l4"></a></span><a href="https://zeal-operating-system.github.io/ZealOS/Misc/Auto/AutoDistro.CC.html#l1"><span class=cF4>AutoDistro.CC</span></a><span class=cF4>
|
||||
<a name="l5"></a></span><a href="https://zeal-operating-system.github.io/ZealOS/Misc/Auto/AutoFullDistro1.CC.html#l1"><span class=cF4>AutoFullDistro1.CC</span></a><span class=cF4>
|
||||
<a name="l6"></a></span><a href="https://zeal-operating-system.github.io/ZealOS/Misc/Auto/AutoFullDistro2.CC.html#l1"><span class=cF4>AutoFullDistro2.CC</span></a><span class=cF4>
|
||||
<a name="l7"></a></span><a href="https://zeal-operating-system.github.io/ZealOS/Misc/Auto/AutoInstall.CC.html#l1"><span class=cF4>AutoInstall.CC</span></a><span class=cF4>
|
||||
<a name="l8"></a></span><a href="https://zeal-operating-system.github.io/ZealOS/Misc/Auto/HomeSys.CC.html#l1"><span class=cF4>HomeSys.CC</span></a><span class=cF4>
|
||||
<a name="l9"></a></span><a href="https://zeal-operating-system.github.io/ZealOS/Misc/Auto/Once.CC.html#l1"><span class=cF4>Once.CC</span></a><span class=cF0>
|
||||
<a name="l10"></a>
|
||||
<a name="l11"></a>
|
||||
<a name="l5"></a></span><a href="https://zeal-operating-system.github.io/ZealOS/Misc/Auto/AutoFullDistro0.CC.html#l1"><span class=cF4>AutoFullDistro0.CC</span></a><span class=cF4>
|
||||
<a name="l6"></a></span><a href="https://zeal-operating-system.github.io/ZealOS/Misc/Auto/AutoFullDistro1.CC.html#l1"><span class=cF4>AutoFullDistro1.CC</span></a><span class=cF4>
|
||||
<a name="l7"></a></span><a href="https://zeal-operating-system.github.io/ZealOS/Misc/Auto/AutoFullDistro2.CC.html#l1"><span class=cF4>AutoFullDistro2.CC</span></a><span class=cF4>
|
||||
<a name="l8"></a></span><a href="https://zeal-operating-system.github.io/ZealOS/Misc/Auto/AutoInstall.CC.html#l1"><span class=cF4>AutoInstall.CC</span></a><span class=cF4>
|
||||
<a name="l9"></a></span><a href="https://zeal-operating-system.github.io/ZealOS/Misc/Auto/BootMHD2.CC.html#l1"><span class=cF4>BootMHD2.CC</span></a><span class=cF4>
|
||||
<a name="l10"></a></span><a href="https://zeal-operating-system.github.io/ZealOS/Misc/Auto/HomeSys.CC.html#l1"><span class=cF4>HomeSys.CC</span></a><span class=cF4>
|
||||
<a name="l11"></a></span><a href="https://zeal-operating-system.github.io/ZealOS/Misc/Auto/Once.CC.html#l1"><span class=cF4>Once.CC</span></a><span class=cF0>
|
||||
<a name="l12"></a>
|
||||
<a name="l13"></a>
|
||||
</span></pre></body>
|
||||
</html>
|
||||
|
|
|
@ -177,7 +177,7 @@ body {background-color:#1f1f1f;}
|
|||
<a name="l150"></a> </span><span class=cF5>ACMainFileListTraverse</span><span class=cF0>(mask);
|
||||
<a name="l151"></a>
|
||||
<a name="l152"></a> </span><span class=cF5>ACDWordsLoad</span><span class=cF0>;
|
||||
<a name="l153"></a> </span><span class=cF5>RegDefault</span><span class=cF0>(</span><span class=cF6>"AutoComplete"</span><span class=cF0>, </span><span class=cF6>"ac.col = TEXT_COLS-31;ac.row = 10;"</span><span class=cF0>);
|
||||
<a name="l153"></a> </span><span class=cF5>RegDefault</span><span class=cF0>(</span><span class=cF6>"AutoComplete"</span><span class=cF0>, </span><span class=cF6>"ac.col = TEXT_COLS-34;ac.row = 10;"</span><span class=cF0>);
|
||||
<a name="l154"></a> </span><span class=cF5>RegExe</span><span class=cF0>(</span><span class=cF6>"AutoComplete"</span><span class=cF0>);
|
||||
<a name="l155"></a> </span><span class=cF5>LBtr</span><span class=cF0>(&</span><span class=cFB>ac</span><span class=cF0>.flags, </span><span class=cF3>ACf_INIT_IN_PROGRESS</span><span class=cF0>);
|
||||
<a name="l156"></a> </span><span class=cF5>LBts</span><span class=cF0>(&</span><span class=cFB>sys_run_level</span><span class=cF0>, </span><span class=cF3>RLf_AUTOCOMPLETE</span><span class=cF0>);
|
||||
|
|
|
@ -66,33 +66,35 @@ body {background-color:#1f1f1f;}
|
|||
<a name="l39"></a> </span><span class=cF5>Find</span><span class=cF0>(</span><span class=cF6>"LstMatch"</span><span class=cF0>, ff_mask, fu_flags, </span><span class=cF6>"ListMatch"</span><span class=cF0>);
|
||||
<a name="l40"></a> </span><span class=cF5>Find</span><span class=cF0>(</span><span class=cF6>"DefineLstLoad"</span><span class=cF0>, ff_mask, fu_flags, </span><span class=cF6>"DefineListLoad"</span><span class=cF0>);
|
||||
<a name="l41"></a> </span><span class=cF5>Find</span><span class=cF0>(</span><span class=cF6>"ExtDft"</span><span class=cF0>, ff_mask, fu_flags, </span><span class=cF6>"ExtDefault"</span><span class=cF0>);
|
||||
<a name="l42"></a> </span><span class=cF5>Find</span><span class=cF0>(</span><span class=cF6>"RegDft"</span><span class=cF0>, ff_mask, fu_flags, </span><span class=cF6>"RegDefault"</span><span class=cF0>);
|
||||
<a name="l43"></a> </span><span class=cF5>Find</span><span class=cF0>(</span><span class=cF6>"\"HC\""</span><span class=cF0>, ff_mask, fu_flags, </span><span class=cF6>"\"CC\""</span><span class=cF0>);
|
||||
<a name="l44"></a> </span><span class=cF5>Find</span><span class=cF0>(</span><span class=cF6>"CDrv"</span><span class=cF0>, ff_mask, fu_flags, </span><span class=cF6>"CDrive"</span><span class=cF0>);
|
||||
<a name="l45"></a> </span><span class=cF5>Find</span><span class=cF0>(</span><span class=cF6>"CDbgInfo"</span><span class=cF0>, ff_mask, fu_flags, </span><span class=cF6>"CDebugInfo"</span><span class=cF0>);
|
||||
<a name="l46"></a> </span><span class=cF5>Find</span><span class=cF0>(</span><span class=cF6>"dbg_info"</span><span class=cF0>, ff_mask, fu_flags, </span><span class=cF6>"debug_info"</span><span class=cF0>);
|
||||
<a name="l47"></a> </span><span class=cF5>Find</span><span class=cF0>(</span><span class=cF6>"StrFirstRem"</span><span class=cF0>, ff_mask, fu_flags, </span><span class=cF6>"StrFirstRemove"</span><span class=cF0>);
|
||||
<a name="l48"></a> </span><span class=cF5>Find</span><span class=cF0>(</span><span class=cF6>"StrLastRem"</span><span class=cF0>, ff_mask, fu_flags, </span><span class=cF6>"StrLastRemove"</span><span class=cF0>);
|
||||
<a name="l49"></a> </span><span class=cF5>Find</span><span class=cF0>(</span><span class=cF6>"TempleOS/Apps"</span><span class=cF0>, ff_mask, fu_flags, </span><span class=cF6>"/Apps"</span><span class=cF0>);
|
||||
<a name="l50"></a> </span><span class=cF5>Find</span><span class=cF0>(</span><span class=cF6>"adam_task"</span><span class=cF0>, ff_mask, fu_flags, </span><span class=cF6>"sys_task"</span><span class=cF0>);
|
||||
<a name="l51"></a> </span><span class=cF5>Find</span><span class=cF0>(</span><span class=cF6>"JobQue"</span><span class=cF0>, ff_mask, fu_flags, </span><span class=cF6>"JobQueue"</span><span class=cF0>);
|
||||
<a name="l52"></a> </span><span class=cF5>Find</span><span class=cF0>(</span><span class=cF6>"MSG_"</span><span class=cF0>, ff_mask, </span><span class=cF5>CatPrint</span><span class=cF7>(</span><span class=cF0>fu_flags, </span><span class=cF6>"-l"</span><span class=cF7>)</span><span class=cF0>, </span><span class=cF6>"MESSAGE_"</span><span class=cF0>);
|
||||
<a name="l53"></a> </span><span class=cF5>Find</span><span class=cF0>(</span><span class=cF6>".HC"</span><span class=cF0>, ff_mask, fu_flags, </span><span class=cF6>".CC"</span><span class=cF0>);
|
||||
<a name="l54"></a> </span><span class=cF5>CatPrint</span><span class=cF0>(fu_flags, </span><span class=cF6>"+l"</span><span class=cF0>);
|
||||
<a name="l55"></a> </span><span class=cF5>Find</span><span class=cF0>(</span><span class=cF6>"Msg"</span><span class=cF0>, ff_mask, fu_flags, </span><span class=cF6>"Message"</span><span class=cF0>);
|
||||
<a name="l56"></a> </span><span class=cF5>Find</span><span class=cF0>(</span><span class=cF6>"MusicSettingsRst"</span><span class=cF0>,ff_mask, fu_flags, </span><span class=cF6>"MusicSettingsReset"</span><span class=cF0>);
|
||||
<a name="l57"></a> </span><span class=cF5>Find</span><span class=cF0>(</span><span class=cF6>"hndlr"</span><span class=cF0>, ff_mask, fu_flags, </span><span class=cF6>"handler"</span><span class=cF0>);
|
||||
<a name="l58"></a> </span><span class=cF5>Find</span><span class=cF0>(</span><span class=cF6>"FifoU8Rem"</span><span class=cF0>, ff_mask, fu_flags, </span><span class=cF6>"FifoU8Remove"</span><span class=cF0>);
|
||||
<a name="l59"></a> </span><span class=cF5>Find</span><span class=cF0>(</span><span class=cF6>"GodBitsIns"</span><span class=cF0>, ff_mask, fu_flags, </span><span class=cF6>"GodBitsInsert"</span><span class=cF0>);
|
||||
<a name="l60"></a> </span><span class=cF5>Find</span><span class=cF0>(</span><span class=cF6>"fp_draw_ms"</span><span class=cF0>, ff_mask, fu_flags, </span><span class=cF6>"fp_draw_mouse"</span><span class=cF0>);
|
||||
<a name="l61"></a> </span><span class=cF5>Find</span><span class=cF0>(</span><span class=cF6>"DrawStdMs"</span><span class=cF0>, ff_mask, fu_flags, </span><span class=cF6>"DrawStdMouse"</span><span class=cF0>);
|
||||
<a name="l62"></a> </span><span class=cF5>Find</span><span class=cF0>(</span><span class=cF6>"WIG_TASK_DFT"</span><span class=cF0>, ff_mask, fu_flags, </span><span class=cF6>"WIG_TASK_DEFAULT"</span><span class=cF0>);
|
||||
<a name="l63"></a>
|
||||
<a name="l64"></a>
|
||||
<a name="l65"></a> </span><span class=cF6>"\n$BK,1$$LTRED$Might want to go over these$FG$$BK,0$\n"</span><span class=cF0>;
|
||||
<a name="l66"></a> </span><span class=cF5>Find</span><span class=cF0>(</span><span class=cF6>"MemSet"</span><span class=cF0>, ff_mask, fu_flags);
|
||||
<a name="l67"></a>}
|
||||
<a name="l68"></a>
|
||||
<a name="l69"></a></span><span class=cF2>//Cvt("Sup1/*");</span><span class=cF0>
|
||||
<a name="l42"></a> </span><span class=cF5>Find</span><span class=cF0>(</span><span class=cF6>"ExtChg"</span><span class=cF0>, ff_mask, fu_flags, </span><span class=cF6>"ExtChange"</span><span class=cF0>);
|
||||
<a name="l43"></a> </span><span class=cF5>Find</span><span class=cF0>(</span><span class=cF6>"RegDft"</span><span class=cF0>, ff_mask, fu_flags, </span><span class=cF6>"RegDefault"</span><span class=cF0>);
|
||||
<a name="l44"></a> </span><span class=cF5>Find</span><span class=cF0>(</span><span class=cF6>"\"HC\""</span><span class=cF0>, ff_mask, fu_flags, </span><span class=cF6>"\"CC\""</span><span class=cF0>);
|
||||
<a name="l45"></a> </span><span class=cF5>Find</span><span class=cF0>(</span><span class=cF6>"CDrv"</span><span class=cF0>, ff_mask, fu_flags, </span><span class=cF6>"CDrive"</span><span class=cF0>);
|
||||
<a name="l46"></a> </span><span class=cF5>Find</span><span class=cF0>(</span><span class=cF6>"CDbgInfo"</span><span class=cF0>, ff_mask, fu_flags, </span><span class=cF6>"CDebugInfo"</span><span class=cF0>);
|
||||
<a name="l47"></a> </span><span class=cF5>Find</span><span class=cF0>(</span><span class=cF6>"dbg_info"</span><span class=cF0>, ff_mask, fu_flags, </span><span class=cF6>"debug_info"</span><span class=cF0>);
|
||||
<a name="l48"></a> </span><span class=cF5>Find</span><span class=cF0>(</span><span class=cF6>"StrFirstRem"</span><span class=cF0>, ff_mask, fu_flags, </span><span class=cF6>"StrFirstRemove"</span><span class=cF0>);
|
||||
<a name="l49"></a> </span><span class=cF5>Find</span><span class=cF0>(</span><span class=cF6>"StrLastRem"</span><span class=cF0>, ff_mask, fu_flags, </span><span class=cF6>"StrLastRemove"</span><span class=cF0>);
|
||||
<a name="l50"></a> </span><span class=cF5>Find</span><span class=cF0>(</span><span class=cF6>"TempleOS/Apps"</span><span class=cF0>, ff_mask, fu_flags, </span><span class=cF6>"/Apps"</span><span class=cF0>);
|
||||
<a name="l51"></a> </span><span class=cF5>Find</span><span class=cF0>(</span><span class=cF6>"adam_task"</span><span class=cF0>, ff_mask, fu_flags, </span><span class=cF6>"sys_task"</span><span class=cF0>);
|
||||
<a name="l52"></a> </span><span class=cF5>Find</span><span class=cF0>(</span><span class=cF6>"JobQue"</span><span class=cF0>, ff_mask, fu_flags, </span><span class=cF6>"JobQueue"</span><span class=cF0>);
|
||||
<a name="l53"></a> </span><span class=cF5>Find</span><span class=cF0>(</span><span class=cF6>"MSG_"</span><span class=cF0>, ff_mask, </span><span class=cF5>CatPrint</span><span class=cF7>(</span><span class=cF0>fu_flags, </span><span class=cF6>"-l"</span><span class=cF7>)</span><span class=cF0>, </span><span class=cF6>"MESSAGE_"</span><span class=cF0>);
|
||||
<a name="l54"></a> </span><span class=cF5>Find</span><span class=cF0>(</span><span class=cF6>".HC"</span><span class=cF0>, ff_mask, fu_flags, </span><span class=cF6>".CC"</span><span class=cF0>);
|
||||
<a name="l55"></a> </span><span class=cF5>CatPrint</span><span class=cF0>(fu_flags, </span><span class=cF6>"+l"</span><span class=cF0>);
|
||||
<a name="l56"></a> </span><span class=cF5>Find</span><span class=cF0>(</span><span class=cF6>"Msg"</span><span class=cF0>, ff_mask, fu_flags, </span><span class=cF6>"Message"</span><span class=cF0>);
|
||||
<a name="l57"></a> </span><span class=cF5>Find</span><span class=cF0>(</span><span class=cF6>"MusicSettingsRst"</span><span class=cF0>,ff_mask, fu_flags, </span><span class=cF6>"MusicSettingsReset"</span><span class=cF0>);
|
||||
<a name="l58"></a> </span><span class=cF5>Find</span><span class=cF0>(</span><span class=cF6>"hndlr"</span><span class=cF0>, ff_mask, fu_flags, </span><span class=cF6>"handler"</span><span class=cF0>);
|
||||
<a name="l59"></a> </span><span class=cF5>Find</span><span class=cF0>(</span><span class=cF6>"FifoU8Rem"</span><span class=cF0>, ff_mask, fu_flags, </span><span class=cF6>"FifoU8Remove"</span><span class=cF0>);
|
||||
<a name="l60"></a> </span><span class=cF5>Find</span><span class=cF0>(</span><span class=cF6>"GodBitsIns"</span><span class=cF0>, ff_mask, fu_flags, </span><span class=cF6>"GodBitsInsert"</span><span class=cF0>);
|
||||
<a name="l61"></a> </span><span class=cF5>Find</span><span class=cF0>(</span><span class=cF6>"fp_draw_ms"</span><span class=cF0>, ff_mask, fu_flags, </span><span class=cF6>"fp_draw_mouse"</span><span class=cF0>);
|
||||
<a name="l62"></a> </span><span class=cF5>Find</span><span class=cF0>(</span><span class=cF6>"DrawStdMs"</span><span class=cF0>, ff_mask, fu_flags, </span><span class=cF6>"DrawStdMouse"</span><span class=cF0>);
|
||||
<a name="l63"></a> </span><span class=cF5>Find</span><span class=cF0>(</span><span class=cF6>"WIG_TASK_DFT"</span><span class=cF0>, ff_mask, fu_flags, </span><span class=cF6>"WIG_TASK_DEFAULT"</span><span class=cF0>);
|
||||
<a name="l64"></a> </span><span class=cF5>Find</span><span class=cF0>(</span><span class=cF6>"DirMk"</span><span class=cF0>, ff_mask, fu_flags, </span><span class=cF6>"DirMake"</span><span class=cF0>);
|
||||
<a name="l65"></a>
|
||||
<a name="l66"></a>
|
||||
<a name="l67"></a> </span><span class=cF6>"\n$BK,1$$LTRED$Might want to go over these$FG$$BK,0$\n"</span><span class=cF0>;
|
||||
<a name="l68"></a> </span><span class=cF5>Find</span><span class=cF0>(</span><span class=cF6>"MemSet"</span><span class=cF0>, ff_mask, fu_flags);
|
||||
<a name="l69"></a>}
|
||||
<a name="l70"></a>
|
||||
<a name="l71"></a></span><span class=cF2>//Cvt("Sup1/*");</span><span class=cF0>
|
||||
</span></pre></body>
|
||||
</html>
|
||||
|
|
|
@ -29,9 +29,8 @@ body {background-color:#1f1f1f;}
|
|||
<a name="l1"></a><span class=cF0>Directory of C:/Tmp
|
||||
<a name="l2"></a></span><a href="https://zeal-operating-system.github.io/ZealOS/Tmp/index.html#l1"><span class=cE4>./</span></a><span class=cF0>
|
||||
<a name="l3"></a></span><a href="https://zeal-operating-system.github.io/ZealOS/index.html#l1"><span class=cE4>../</span></a><span class=cF0>
|
||||
<a name="l4"></a></span><a href="https://zeal-operating-system.github.io/ZealOS/Tmp/ScreenShots/index.html#l1"><span class=cE4>ScreenShots/</span></a><span class=cF4>
|
||||
<a name="l5"></a></span><a href="https://zeal-operating-system.github.io/ZealOS/Tmp/AUTO.ISO.C.html#l1"><span class=cF4>AUTO.ISO.C</span></a><span class=cF0>
|
||||
<a name="l4"></a></span><a href="https://zeal-operating-system.github.io/ZealOS/Tmp/ScreenShots/index.html#l1"><span class=cE4>ScreenShots/</span></a><span class=cF0>
|
||||
<a name="l5"></a>
|
||||
<a name="l6"></a>
|
||||
<a name="l7"></a>
|
||||
</span></pre></body>
|
||||
</html>
|
||||
|
|
2742
docs/index.html
2742
docs/index.html
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue