Update docs/.

This commit is contained in:
TomAwezome 2021-11-05 05:06:09 -04:00
parent 68775b3b44
commit 31b3068ff9
24 changed files with 8298 additions and 2116 deletions

View file

@ -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>&quot;\n95,262 LOC, &quot;</span><span class=cF0>;
<a name="l12"></a> </span><span class=cF6>&quot;\n95,264 LOC, &quot;</span><span class=cF0>;
<a name="l13"></a> </span><span class=cF6>&quot;%d MB RAM, &quot;</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>&quot;\n&quot;</span><span class=cF0>;

View file

@ -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.

View file

@ -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

File diff suppressed because it is too large Load diff

42
docs/Home/MakeHome.CC.html Executable file
View 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>&quot;~/HomeLocalize&quot;</span><span class=cF0>
<a name="l6"></a>#</span><span class=cF1>include</span><span class=cF0> </span><span class=cF6>&quot;/System/Boot/MakeBoot&quot;</span><span class=cF0>
<a name="l7"></a>#</span><span class=cF1>include</span><span class=cF0> </span><span class=cF6>&quot;/System/Utils/MakeUtils&quot;</span><span class=cF0>
<a name="l8"></a>#</span><span class=cF1>include</span><span class=cF0> </span><span class=cF6>&quot;~/HomeWrappers&quot;</span><span class=cF0>
<a name="l9"></a></span><span class=cF5>MapFileLoad</span><span class=cF0>(</span><span class=cF6>&quot;::/Kernel/Kernel&quot;</span><span class=cF0>);
<a name="l10"></a></span><span class=cF5>MapFileLoad</span><span class=cF0>(</span><span class=cF6>&quot;::/Compiler/Compiler&quot;</span><span class=cF0>);
<a name="l11"></a>#</span><span class=cF1>include</span><span class=cF0> </span><span class=cF6>&quot;~/HomeKeyPlugIns&quot;</span><span class=cF0>
<a name="l12"></a>#</span><span class=cF1>include</span><span class=cF0> </span><span class=cF6>&quot;~/HomeSys&quot;</span><span class=cF0>
<a name="l13"></a></span><span class=cF5>Cd</span><span class=cF0>(</span><span class=cF6>&quot;..&quot;</span><span class=cF0>);;
</span></pre></body>
</html>

View file

@ -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>&quot;Utilities/BST&quot;</span><span class=cF0>
<a name="l19"></a>#</span><span class=cF1>include</span><span class=cF0> </span><span class=cF6>&quot;Protocols/UDP/MakeUDP&quot;</span><span class=cF0>
<a name="l20"></a>#</span><span class=cF1>include</span><span class=cF0> </span><span class=cF6>&quot;Protocols/TCP/MakeTCP&quot;</span><span class=cF0>
<a name="l20"></a>#</span><span class=cF1>include</span><span class=cF0> </span><span class=cF6>&quot;Protocols/DNS&quot;</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>&quot;Protocols/DNS&quot;</span><span class=cF0>
<a name="l23"></a>#</span><span class=cF1>include</span><span class=cF0> </span><span class=cF6>&quot;Protocols/DHCP&quot;</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>&quot;Utilities/NetHandler&quot;</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>&quot;Protocols/TCP/MakeTCP&quot;</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>&quot;Protocols/DHCP&quot;</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>&quot;Utilities/NetHandler&quot;</span><span class=cF0> </span><span class=cF2>// needs IPV4, UDP, ICMP</span></pre></body>
</html>

View 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 &lt;= </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>&quot;Failed to connect to %s:%d\n&quot;</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>&quot;%s\r\n&quot;</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>&quot;%s\t%s\r\n&quot;</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 *)-&gt;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>&quot;w&quot;</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>&quot;Failed to open %s for writing\n&quot;</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 &lt;= </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 &lt;= </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 &lt; </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>&quot;Failed to receive TCP data\n&quot;</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> &amp;&amp; !</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-&gt;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>&quot;Write failed, %s may be corrupted\n&quot;</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>&quot;&quot;</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>&quot;$\\\&quot;&quot;</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>&quot;%s$$&quot;</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>&quot;%s%s%c&quot;</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>&quot;%s&quot;</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>&quot;/&quot;</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: ? / | = % : ; * + &quot; &lt; &gt; space </span><span class=cF0>
<a name="l141"></a> result = </span><span class=cF5>StrReplace</span><span class=cF0>(result, </span><span class=cF6>&quot;?&quot;</span><span class=cF0>, </span><span class=cF6>&quot;&quot;</span><span class=cF0>);
<a name="l142"></a> result = </span><span class=cF5>StrReplace</span><span class=cF0>(result, </span><span class=cF6>&quot;/&quot;</span><span class=cF0>, </span><span class=cF6>&quot;&quot;</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>&quot;|&quot;</span><span class=cF0>, </span><span class=cF6>&quot;&quot;</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>&quot;=&quot;</span><span class=cF0>, </span><span class=cF6>&quot;&quot;</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>&quot;%&quot;</span><span class=cF0>, </span><span class=cF6>&quot;&quot;</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>&quot;:&quot;</span><span class=cF0>, </span><span class=cF6>&quot;&quot;</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>&quot;;&quot;</span><span class=cF0>, </span><span class=cF6>&quot;&quot;</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>&quot;*&quot;</span><span class=cF0>, </span><span class=cF6>&quot;&quot;</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>&quot;+&quot;</span><span class=cF0>, </span><span class=cF6>&quot;&quot;</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>&quot;\&quot;&quot;</span><span class=cF0>, </span><span class=cF6>&quot;&quot;</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>&quot;&lt;&quot;</span><span class=cF0>, </span><span class=cF6>&quot;&quot;</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>&quot;&gt;&quot;</span><span class=cF0>, </span><span class=cF6>&quot;&quot;</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>&quot; &quot;</span><span class=cF0>, </span><span class=cF6>&quot;&quot;</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>&quot;%s\n&quot;</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>&quot;::/Tmp/Gopher&quot;</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> &gt; </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>&quot;TXT&quot;</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>&quot;::/Tmp/Gopher/%s&quot;</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>&quot;%s\n&quot;</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>&quot;Failed to download %s from %s:%d\n&quot;</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>&quot;\n&quot;</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>&quot;\t&quot;</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>&quot;\t&quot;</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>&quot;\t&quot;</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>&quot;&quot;</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>&quot;$MA,\&quot;&quot;</span><span class=cF0>;
<a name="l246"></a> PrintEscaped(display, </span><span class=cF6>&quot;\\&quot;</span><span class=cF0>);
<a name="l247"></a> </span><span class=cF6>&quot;\&quot;,LM=\&quot;%s(\\\&quot;&quot;</span><span class=cF0>, gopher_associations[type];
<a name="l248"></a> PrintEscaped(host, </span><span class=cF6>&quot;\\\\\\&quot;</span><span class=cF0>);
<a name="l249"></a> </span><span class=cF6>&quot;\\\&quot;,%d,\\\&quot;&quot;</span><span class=cF0>, port;
<a name="l250"></a> PrintEscaped(selector, </span><span class=cF6>&quot;\\\\\\&quot;</span><span class=cF0>);
<a name="l251"></a> </span><span class=cF6>&quot;\\\&quot;);\\n\&quot;$&quot;</span><span class=cF0>;
<a name="l252"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l253"></a> </span><span class=cF6>&quot;\n&quot;</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>&quot;/&quot;</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 &lt;= </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>&quot;.&quot;</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 &gt; </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>&quot;$DA-P,A=\&quot;Query:%s\&quot;$&quot;</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>&amp;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>&quot;$DA-P,LEN=255,A=\&quot;FileName:%s\&quot;$&quot;</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>&amp;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> &gt;= </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>&quot;GopherDlPrompt&quot;</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>&quot;GopherTextView&quot;</span><span class=cF0>;
<a name="l328"></a>gopher_associations[</span><span class=cF6>'1'</span><span class=cF0>] = </span><span class=cF6>&quot;GopherMenu&quot;</span><span class=cF0>;
<a name="l329"></a>gopher_associations[</span><span class=cF6>'7'</span><span class=cF0>] = </span><span class=cF6>&quot;GopherQueryPrompt&quot;</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>&quot;\n\nTry using Gopher to connect to a gopher server, for example:&quot;</span><span class=cF0>
<a name="l335"></a></span><span class=cF6>&quot;\n\n Gopher(\&quot;gopher.floodgap.com\&quot;);&quot;</span><span class=cF0>
<a name="l336"></a></span><span class=cF6>&quot;\n\n GopherMenu(\&quot;eyeblea.ch\&quot;,70,\&quot;/~zealos\&quot;);&quot;</span><span class=cF0>
<a name="l337"></a></span><span class=cF6>&quot;\n\n Gopher(\&quot;codevoid.de\&quot;);&quot;</span><span class=cF0>
<a name="l338"></a></span><span class=cF6>&quot;\n\n&quot;</span><span class=cF0>;</span></pre></body>
</html>

View file

@ -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

View file

@ -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-&gt;destination_ip_address,
<a name="l280"></a> </span><span class=cF5>EndianU16</span><span class=cF7>(</span><span class=cF0>header-&gt;destination_port</span><span class=cF7>)</span><span class=cF0>,
<a name="l281"></a> packet-&gt;source_ip_address,
<a name="l282"></a> </span><span class=cF5>EndianU16</span><span class=cF7>(</span><span class=cF0>header-&gt;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 &lt; </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>&quot;TCP Handler Refuse: TCP Send failed.&quot;</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>&amp;header-&gt;flags, TCPf_RST</span><span class=cF7>)</span><span class=cF0> &amp;&amp; </span><span class=cF5>Bt</span><span class=cF7>(</span><span class=cF0>&amp;header-&gt;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-&gt;destination_ip_address,
<a name="l283"></a> </span><span class=cF5>EndianU16</span><span class=cF7>(</span><span class=cF0>header-&gt;destination_port</span><span class=cF7>)</span><span class=cF0>,
<a name="l284"></a> packet-&gt;source_ip_address,
<a name="l285"></a> </span><span class=cF5>EndianU16</span><span class=cF7>(</span><span class=cF0>header-&gt;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 &lt; </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>&quot;TCP Handler Refuse: TCP Send failed.&quot;</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(&amp;header, &amp;data, &amp;length, packet);
<a name="l306"></a>
<a name="l307"></a> </span><span class=cF1>if</span><span class=cF0> (error &lt; </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>&quot;TCP HANDLER: Packet Parse Error.&quot;</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>&quot;TCP HANDLER: Caught packet with dest port of %0X (B.E.)&quot;</span><span class=cF0>, header-&gt;destination_port);
<a name="l314"></a>
<a name="l315"></a> destination_port = </span><span class=cF5>EndianU16</span><span class=cF0>(header-&gt;destination_port); </span><span class=cF2>// B.E. -&gt; L.E.</span><span class=cF0>
<a name="l316"></a> NetDebug(</span><span class=cF6>&quot;TCP HANDLER: Caught packet with dest port of %0X (L.E.)&quot;</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(&amp;header, &amp;data, &amp;length, packet);
<a name="l309"></a>
<a name="l310"></a> </span><span class=cF1>if</span><span class=cF0> (error &lt; </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>&quot;TCP HANDLER: Packet Parse Error.&quot;</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>&quot;TCP HANDLER: Caught packet with dest port of %0X (B.E.)&quot;</span><span class=cF0>, header-&gt;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>&quot;TCP HANDLER: Found node for port, looking for address %0X (L.E.)&quot;</span><span class=cF0>, packet-&gt;source_ip_address);
<a name="l325"></a> queue = TCPTreeNodeQueueIPV4Find(packet-&gt;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-&gt;socket;
<a name="l329"></a> NetLog(</span><span class=cF6>&quot;TCP HANDLER: Port and Address are in bound tree.&quot;</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>&quot;TCP HANDLER: Found node for port, but address is not in node queue.&quot;</span><span class=cF0>);
<a name="l334"></a> NetWarn(</span><span class=cF6>&quot; TCP source ip: 0x%0X.&quot;</span><span class=cF0>, packet-&gt;source_ip_address);
<a name="l335"></a>
<a name="l336"></a> NetWarn(</span><span class=cF6>&quot;TCP HANDLER: Sending TCP RST ACK packet. Refusing connection.&quot;</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>&quot;TCP HANDLER: NODE SEARCH FAILURE: PORT %0X&quot;</span><span class=cF0>, destination_port);
<a name="l344"></a> NetWarn(</span><span class=cF6>&quot;TCP HANDLER: Node for Port is not in tree.&quot;</span><span class=cF0>);
<a name="l345"></a> NetWarn(</span><span class=cF6>&quot;TCP HANDLER: Sending TCP RST ACK packet. Refusing connection.&quot;</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>&quot;TCP HANDLER: Socket tree is currently empty.&quot;</span><span class=cF0>);
<a name="l354"></a> NetWarn(</span><span class=cF6>&quot;TCP HANDLER: Sending TCP RST ACK packet. Refusing connection.&quot;</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>&quot;TCP HANDLER: Running TCP HANDLE SOCKET&quot;</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-&gt;destination_port); </span><span class=cF2>// B.E. -&gt; L.E.</span><span class=cF0>
<a name="l319"></a> NetDebug(</span><span class=cF6>&quot;TCP HANDLER: Caught packet with dest port of %0X (L.E.)&quot;</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>&quot;TCP HANDLER: Found node for port, looking for address %0X (L.E.)&quot;</span><span class=cF0>, packet-&gt;source_ip_address);
<a name="l328"></a> queue = TCPTreeNodeQueueIPV4Find(packet-&gt;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-&gt;socket;
<a name="l332"></a> NetLog(</span><span class=cF6>&quot;TCP HANDLER: Port and Address are in bound tree.&quot;</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>&quot;TCP HANDLER: Found node for port, but address is not in node queue.&quot;</span><span class=cF0>);
<a name="l337"></a> NetWarn(</span><span class=cF6>&quot; TCP source ip: 0x%0X.&quot;</span><span class=cF0>, packet-&gt;source_ip_address);
<a name="l338"></a>
<a name="l339"></a> NetWarn(</span><span class=cF6>&quot;TCP HANDLER: Sending TCP RST ACK packet. Refusing connection.&quot;</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>&quot;TCP HANDLER: NODE SEARCH FAILURE: PORT %0X&quot;</span><span class=cF0>, destination_port);
<a name="l347"></a> NetWarn(</span><span class=cF6>&quot;TCP HANDLER: Node for Port is not in tree.&quot;</span><span class=cF0>);
<a name="l348"></a> NetWarn(</span><span class=cF6>&quot;TCP HANDLER: Sending TCP RST ACK packet. Refusing connection.&quot;</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>&quot;TCP HANDLER: Socket tree is currently empty.&quot;</span><span class=cF0>);
<a name="l357"></a> NetWarn(</span><span class=cF6>&quot;TCP HANDLER: Sending TCP RST ACK packet. Refusing connection.&quot;</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>&quot;TCP HANDLER: Running TCP HANDLE SOCKET&quot;</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>

View file

@ -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>

View file

@ -103,7 +103,7 @@ body {background-color:#1f1f1f;}
<a name="l76"></a> </span><span class=cF1>if</span><span class=cF0> (i &gt; drive-&gt;spc)
<a name="l77"></a> i = drive-&gt;spc;
<a name="l78"></a> </span><span class=cF5>BlkRead</span><span class=cF0>(drive, buf, drive-&gt;data_area + c * drive-&gt;spc, i);
<a name="l79"></a> buf+=i &lt;&lt; </span><span class=cF3>BLK_SIZE_BITS</span><span class=cF0>;
<a name="l79"></a> buf += i &lt;&lt; </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>

View file

@ -752,7 +752,7 @@ body {background-color:#1f1f1f;}
<a name="l725"></a>
<a name="l726"></a> </span><span class=cF6>&quot;Task \&quot;&quot;</span><span class=cF0>;
<a name="l727"></a> </span><span class=cF6>&quot;%s&quot;</span><span class=cF0>, </span><span class=cF5>Fs</span><span class=cF0>-&gt;task_title;
<a name="l728"></a> </span><span class=cF6>&quot;\&quot;\n&quot;</span><span class=cF0>;
<a name="l728"></a> </span><span class=cF6>&quot;\&quot;\n\n&quot;</span><span class=cF0>;
<a name="l729"></a> </span><span class=cF6>&quot;Fault: 0x%02X %Z\n&quot;</span><span class=cF0>, fault_num, fault_num, </span><span class=cF6>&quot;ST_INT_NAMES&quot;</span><span class=cF0>;
<a name="l730"></a> </span><span class=cF6>&quot;Err Code: %08X\n&quot;</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>);

View file

@ -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>&quot;Drive must be writable.</span><span class=cF0> </span><span class=cF6>Install on Hard drive, first.\n&quot;</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>&quot;/Distro&quot;</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>&quot;/Distro&quot;</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>&quot;/*&quot;</span><span class=cF0>,</span><span class=cF6>&quot;/Distro&quot;</span><span class=cF0>);
<a name="l24"></a> </span><span class=cF5>DirMake</span><span class=cF0>(</span><span class=cF6>&quot;/Distro&quot;</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>&quot;/Distro&quot;</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>&quot;/Home&quot;</span><span class=cF0>, </span><span class=cF6>&quot;/Distro/Home&quot;</span><span class=cF0>);
<a name="l28"></a> </span><span class=cF5>Del</span><span class=cF0>(</span><span class=cF6>&quot;/Distro/Home/Registry.CC&quot;</span><span class=cF0>);
<a name="l29"></a> </span><span class=cF5>CopyTree</span><span class=cF0>(</span><span class=cF6>&quot;/System&quot;</span><span class=cF0>, </span><span class=cF6>&quot;/Distro/System&quot;</span><span class=cF0>);
<a name="l30"></a> </span><span class=cF5>Del</span><span class=cF0>(</span><span class=cF6>&quot;/Distro/System/AutoComplete/ACDefs.DATA&quot;</span><span class=cF0>);
<a name="l31"></a> </span><span class=cF5>CopyTree</span><span class=cF0>(</span><span class=cF6>&quot;/Compiler&quot;</span><span class=cF0>, </span><span class=cF6>&quot;/Distro/Compiler&quot;</span><span class=cF0>);
<a name="l32"></a> </span><span class=cF5>CopyTree</span><span class=cF0>(</span><span class=cF6>&quot;/Kernel&quot;</span><span class=cF0>, </span><span class=cF6>&quot;/Distro/Kernel&quot;</span><span class=cF0>);
<a name="l33"></a> </span><span class=cF5>CopyTree</span><span class=cF0>(</span><span class=cF6>&quot;/Misc&quot;</span><span class=cF0>, </span><span class=cF6>&quot;/Distro/Misc&quot;</span><span class=cF0>);
<a name="l34"></a> </span><span class=cF5>DirMake</span><span class=cF0>(</span><span class=cF6>&quot;/Distro/Doc&quot;</span><span class=cF0>);
<a name="l35"></a> </span><span class=cF5>Copy</span><span class=cF0>(</span><span class=cF6>&quot;/Doc/EdPullDown.DD&quot;</span><span class=cF0>, </span><span class=cF6>&quot;/Distro/Doc/EdPullDown.DD&quot;</span><span class=cF0>);
<a name="l36"></a> </span><span class=cF5>Copy</span><span class=cF0>(</span><span class=cF6>&quot;/Doc/Tips.DD&quot;</span><span class=cF0>, </span><span class=cF6>&quot;/Distro/Doc/Tips.DD&quot;</span><span class=cF0>);
<a name="l37"></a> </span><span class=cF5>Copy</span><span class=cF0>(</span><span class=cF6>&quot;/Misc/Auto/Once.CC&quot;</span><span class=cF0>, </span><span class=cF6>&quot;/Distro/Once.CC&quot;</span><span class=cF0>);
<a name="l38"></a> </span><span class=cF5>Copy</span><span class=cF0>(</span><span class=cF6>&quot;/Misc/Auto/HomeSys.CC&quot;</span><span class=cF0>, </span><span class=cF6>&quot;/Distro/HomeSys.CC&quot;</span><span class=cF0>);
<a name="l39"></a> </span><span class=cF5>Del</span><span class=cF0>(</span><span class=cF6>&quot;/Distro/Misc/PCIDevices.DD&quot;</span><span class=cF0>);
<a name="l40"></a> </span><span class=cF5>Del</span><span class=cF0>(</span><span class=cF6>&quot;/Distro/Misc/Bible.TXT&quot;</span><span class=cF0>);
<a name="l41"></a> </span><span class=cF5>Del</span><span class=cF0>(</span><span class=cF6>&quot;/Distro/Misc/Clementine.TXT&quot;</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>&quot;/Distro&quot;</span><span class=cF0>, </span><span class=cF6>&quot;/Distro&quot;</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>&quot;/Distro&quot;</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>&quot;/Tmp/AUTO.ISO.C&quot;</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>&quot;Drive must be writable.</span><span class=cF0> </span><span class=cF6>Install on Hard drive, first.\n&quot;</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>&quot;/Distro&quot;</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>&quot;/Distro&quot;</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>&quot;/*&quot;</span><span class=cF0>,</span><span class=cF6>&quot;/Distro&quot;</span><span class=cF0>);
<a name="l23"></a> </span><span class=cF5>DirMake</span><span class=cF0>(</span><span class=cF6>&quot;/Distro&quot;</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>&quot;/Distro&quot;</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>&quot;/Home&quot;</span><span class=cF0>, </span><span class=cF6>&quot;/Distro/Home&quot;</span><span class=cF0>);
<a name="l27"></a> </span><span class=cF5>Del</span><span class=cF0>(</span><span class=cF6>&quot;/Distro/Home/Registry.CC&quot;</span><span class=cF0>);
<a name="l28"></a> </span><span class=cF5>CopyTree</span><span class=cF0>(</span><span class=cF6>&quot;/System&quot;</span><span class=cF0>, </span><span class=cF6>&quot;/Distro/System&quot;</span><span class=cF0>);
<a name="l29"></a> </span><span class=cF5>Del</span><span class=cF0>(</span><span class=cF6>&quot;/Distro/System/AutoComplete/ACDefs.DATA&quot;</span><span class=cF0>);
<a name="l30"></a> </span><span class=cF5>CopyTree</span><span class=cF0>(</span><span class=cF6>&quot;/Compiler&quot;</span><span class=cF0>, </span><span class=cF6>&quot;/Distro/Compiler&quot;</span><span class=cF0>);
<a name="l31"></a> </span><span class=cF5>CopyTree</span><span class=cF0>(</span><span class=cF6>&quot;/Kernel&quot;</span><span class=cF0>, </span><span class=cF6>&quot;/Distro/Kernel&quot;</span><span class=cF0>);
<a name="l32"></a> </span><span class=cF5>CopyTree</span><span class=cF0>(</span><span class=cF6>&quot;/Misc&quot;</span><span class=cF0>, </span><span class=cF6>&quot;/Distro/Misc&quot;</span><span class=cF0>);
<a name="l33"></a> </span><span class=cF5>DirMake</span><span class=cF0>(</span><span class=cF6>&quot;/Distro/Doc&quot;</span><span class=cF0>);
<a name="l34"></a> </span><span class=cF5>Copy</span><span class=cF0>(</span><span class=cF6>&quot;/Doc/EdPullDown.DD&quot;</span><span class=cF0>, </span><span class=cF6>&quot;/Distro/Doc/EdPullDown.DD&quot;</span><span class=cF0>);
<a name="l35"></a> </span><span class=cF5>Copy</span><span class=cF0>(</span><span class=cF6>&quot;/Doc/Tips.DD&quot;</span><span class=cF0>, </span><span class=cF6>&quot;/Distro/Doc/Tips.DD&quot;</span><span class=cF0>);
<a name="l36"></a> </span><span class=cF5>Copy</span><span class=cF0>(</span><span class=cF6>&quot;/Misc/Auto/Once.CC&quot;</span><span class=cF0>, </span><span class=cF6>&quot;/Distro/Once.CC&quot;</span><span class=cF0>);
<a name="l37"></a> </span><span class=cF5>Copy</span><span class=cF0>(</span><span class=cF6>&quot;/Misc/Auto/HomeSys.CC&quot;</span><span class=cF0>, </span><span class=cF6>&quot;/Distro/HomeSys.CC&quot;</span><span class=cF0>);
<a name="l38"></a> </span><span class=cF5>Del</span><span class=cF0>(</span><span class=cF6>&quot;/Distro/Misc/PCIDevices.DD&quot;</span><span class=cF0>);
<a name="l39"></a> </span><span class=cF5>Del</span><span class=cF0>(</span><span class=cF6>&quot;/Distro/Misc/Bible.TXT&quot;</span><span class=cF0>);
<a name="l40"></a> </span><span class=cF5>Del</span><span class=cF0>(</span><span class=cF6>&quot;/Distro/Misc/Clementine.TXT&quot;</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>&quot;/Distro&quot;</span><span class=cF0>, </span><span class=cF6>&quot;/Distro&quot;</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>&quot;/Distro&quot;</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>&quot;/Tmp/AUTO.ISO.C&quot;</span><span class=cF0>);
</span></pre></body>
</html>

View 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 &lt; </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>&amp;</span><span class=cFB>blkdev</span><span class=cF0>.ahci_hba-&gt;ports_implemented, i</span><span class=cF7>)</span><span class=cF0>)
<a name="l11"></a> {
<a name="l12"></a> port = &amp;</span><span class=cFB>blkdev</span><span class=cF0>.ahci_hba-&gt;ports[i];
<a name="l13"></a> </span><span class=cF1>if</span><span class=cF0> (port-&gt;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>&quot;Sleep(700);In(\&quot;CC\\n%d\\n\\n1024\\n768\\n\\n\\n\&quot;);&quot;</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>&quot;BootHDIns;OnceFlush;Once(\&quot;#include \\\&quot;/Misc/Auto/AutoFullDistro1\\\&quot;;;Auto;\&quot;);Reboot;&quot;</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>

View file

@ -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>&quot;Sleep(300);In(\&quot;CC\\n%d\\n\\n1024\\n768\\n\\n\\n\&quot;);&quot;</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>&quot;BootHDIns;BootMHDIns('c');OnceFlush;&quot;</span><span class=cF0>
<a name="l103"></a> </span><span class=cF6>&quot;Once(\&quot;#include \\\&quot;/Misc/Auto/AutoFullDistro1\\\&quot;;;Auto;\&quot;);Reboot;&quot;</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-&gt;win_top, </span><span class=cF5>Fs</span><span class=cF0>-&gt;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>&quot;::/Misc/Auto/BootMHD2.CC&quot;</span><span class=cF0>, </span><span class=cF6>&quot;C:/System/Boot/BootMHD2.CC&quot;</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-&gt;win_top, </span><span class=cF5>Fs</span><span class=cF0>-&gt;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>&quot;PopUp(\&quot;#include \\\&quot;/Misc/Auto/AutoFullDistro0\\\&quot;;\&quot;);&quot;</span><span class=cF0>);
<a name="l116"></a> </span><span class=cF5>BootRAM</span><span class=cF0>(</span><span class=cF6>&quot;C:&quot;</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
View 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> &gt;&gt; </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>&quot;DD_BOOT_HIGH_LOC_MHD2&quot;</span><span class=cF0>, </span><span class=cF6>&quot;%08X&quot;</span><span class=cF0>, </span><span class=cF3>BOOT_HIGH_LOC_MHD2</span><span class=cF0> &lt;&lt; </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>) &lt;&lt; </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> &lt; </span><span class=cF3>MODULE_SIZE</span><span class=cF0>
<a name="l122"></a>}
</span></pre></body>
</html>

View file

@ -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>&quot;::/Doc/Start.DD&quot;</span><span class=cF0>);
<a name="l8"></a> </span><span class=cF5>LBts</span><span class=cF0>(&amp;</span><span class=cF5>Fs</span><span class=cF0>-&gt;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>(&amp;</span><span class=cF5>Fs</span><span class=cF0>-&gt;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>&quot;::/Doc/Start.DD&quot;</span><span class=cF0>);
<a name="l5"></a> </span><span class=cF5>LBts</span><span class=cF0>(&amp;</span><span class=cF5>Fs</span><span class=cF0>-&gt;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>(&amp;</span><span class=cF5>Fs</span><span class=cF0>-&gt;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>&quot;Boot Time:%7.3fs\n&quot;</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>&quot;Cd; #include \&quot;Once\&quot;;\n&quot;</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>&quot;\nZealOS V%0.2f\t%D %T\n\n&quot;</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>&quot;Boot Time:%7.3fs\n&quot;</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>&quot;Cd; #include \&quot;Once\&quot;;\n&quot;</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>&quot;\nZealOS V%0.2f\t%D %T\n\n&quot;</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>

View file

@ -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>&quot;Continue booting hard drive &quot;</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>&quot;C:/Home/Once&quot;</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>&quot;::/Misc/Auto/AutoInstall&quot;</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>&quot;\n$PURPLE$$TX+CX,\&quot;Tips of the Day\&quot;$$FG$\n&quot;</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>&quot;::/Doc/Customize.DD&quot;</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>&quot;Continue booting hard drive &quot;</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>&quot;C:/Home/Once&quot;</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>&quot;::/Misc/Auto/AutoInstall&quot;</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>&quot;\n$PURPLE$$TX+CX,\&quot;Tips of the Day\&quot;$$FG$\n&quot;</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>&quot;::/Doc/Customize.DD&quot;</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>

View file

@ -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>

View file

@ -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>&quot;AutoComplete&quot;</span><span class=cF0>, </span><span class=cF6>&quot;ac.col = TEXT_COLS-31;ac.row = 10;&quot;</span><span class=cF0>);
<a name="l153"></a> </span><span class=cF5>RegDefault</span><span class=cF0>(</span><span class=cF6>&quot;AutoComplete&quot;</span><span class=cF0>, </span><span class=cF6>&quot;ac.col = TEXT_COLS-34;ac.row = 10;&quot;</span><span class=cF0>);
<a name="l154"></a> </span><span class=cF5>RegExe</span><span class=cF0>(</span><span class=cF6>&quot;AutoComplete&quot;</span><span class=cF0>);
<a name="l155"></a> </span><span class=cF5>LBtr</span><span class=cF0>(&amp;</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>(&amp;</span><span class=cFB>sys_run_level</span><span class=cF0>, </span><span class=cF3>RLf_AUTOCOMPLETE</span><span class=cF0>);

View file

@ -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>&quot;LstMatch&quot;</span><span class=cF0>, ff_mask, fu_flags, </span><span class=cF6>&quot;ListMatch&quot;</span><span class=cF0>);
<a name="l40"></a> </span><span class=cF5>Find</span><span class=cF0>(</span><span class=cF6>&quot;DefineLstLoad&quot;</span><span class=cF0>, ff_mask, fu_flags, </span><span class=cF6>&quot;DefineListLoad&quot;</span><span class=cF0>);
<a name="l41"></a> </span><span class=cF5>Find</span><span class=cF0>(</span><span class=cF6>&quot;ExtDft&quot;</span><span class=cF0>, ff_mask, fu_flags, </span><span class=cF6>&quot;ExtDefault&quot;</span><span class=cF0>);
<a name="l42"></a> </span><span class=cF5>Find</span><span class=cF0>(</span><span class=cF6>&quot;RegDft&quot;</span><span class=cF0>, ff_mask, fu_flags, </span><span class=cF6>&quot;RegDefault&quot;</span><span class=cF0>);
<a name="l43"></a> </span><span class=cF5>Find</span><span class=cF0>(</span><span class=cF6>&quot;\&quot;HC\&quot;&quot;</span><span class=cF0>, ff_mask, fu_flags, </span><span class=cF6>&quot;\&quot;CC\&quot;&quot;</span><span class=cF0>);
<a name="l44"></a> </span><span class=cF5>Find</span><span class=cF0>(</span><span class=cF6>&quot;CDrv&quot;</span><span class=cF0>, ff_mask, fu_flags, </span><span class=cF6>&quot;CDrive&quot;</span><span class=cF0>);
<a name="l45"></a> </span><span class=cF5>Find</span><span class=cF0>(</span><span class=cF6>&quot;CDbgInfo&quot;</span><span class=cF0>, ff_mask, fu_flags, </span><span class=cF6>&quot;CDebugInfo&quot;</span><span class=cF0>);
<a name="l46"></a> </span><span class=cF5>Find</span><span class=cF0>(</span><span class=cF6>&quot;dbg_info&quot;</span><span class=cF0>, ff_mask, fu_flags, </span><span class=cF6>&quot;debug_info&quot;</span><span class=cF0>);
<a name="l47"></a> </span><span class=cF5>Find</span><span class=cF0>(</span><span class=cF6>&quot;StrFirstRem&quot;</span><span class=cF0>, ff_mask, fu_flags, </span><span class=cF6>&quot;StrFirstRemove&quot;</span><span class=cF0>);
<a name="l48"></a> </span><span class=cF5>Find</span><span class=cF0>(</span><span class=cF6>&quot;StrLastRem&quot;</span><span class=cF0>, ff_mask, fu_flags, </span><span class=cF6>&quot;StrLastRemove&quot;</span><span class=cF0>);
<a name="l49"></a> </span><span class=cF5>Find</span><span class=cF0>(</span><span class=cF6>&quot;TempleOS/Apps&quot;</span><span class=cF0>, ff_mask, fu_flags, </span><span class=cF6>&quot;/Apps&quot;</span><span class=cF0>);
<a name="l50"></a> </span><span class=cF5>Find</span><span class=cF0>(</span><span class=cF6>&quot;adam_task&quot;</span><span class=cF0>, ff_mask, fu_flags, </span><span class=cF6>&quot;sys_task&quot;</span><span class=cF0>);
<a name="l51"></a> </span><span class=cF5>Find</span><span class=cF0>(</span><span class=cF6>&quot;JobQue&quot;</span><span class=cF0>, ff_mask, fu_flags, </span><span class=cF6>&quot;JobQueue&quot;</span><span class=cF0>);
<a name="l52"></a> </span><span class=cF5>Find</span><span class=cF0>(</span><span class=cF6>&quot;MSG_&quot;</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>&quot;-l&quot;</span><span class=cF7>)</span><span class=cF0>, </span><span class=cF6>&quot;MESSAGE_&quot;</span><span class=cF0>);
<a name="l53"></a> </span><span class=cF5>Find</span><span class=cF0>(</span><span class=cF6>&quot;.HC&quot;</span><span class=cF0>, ff_mask, fu_flags, </span><span class=cF6>&quot;.CC&quot;</span><span class=cF0>);
<a name="l54"></a> </span><span class=cF5>CatPrint</span><span class=cF0>(fu_flags, </span><span class=cF6>&quot;+l&quot;</span><span class=cF0>);
<a name="l55"></a> </span><span class=cF5>Find</span><span class=cF0>(</span><span class=cF6>&quot;Msg&quot;</span><span class=cF0>, ff_mask, fu_flags, </span><span class=cF6>&quot;Message&quot;</span><span class=cF0>);
<a name="l56"></a> </span><span class=cF5>Find</span><span class=cF0>(</span><span class=cF6>&quot;MusicSettingsRst&quot;</span><span class=cF0>,ff_mask, fu_flags, </span><span class=cF6>&quot;MusicSettingsReset&quot;</span><span class=cF0>);
<a name="l57"></a> </span><span class=cF5>Find</span><span class=cF0>(</span><span class=cF6>&quot;hndlr&quot;</span><span class=cF0>, ff_mask, fu_flags, </span><span class=cF6>&quot;handler&quot;</span><span class=cF0>);
<a name="l58"></a> </span><span class=cF5>Find</span><span class=cF0>(</span><span class=cF6>&quot;FifoU8Rem&quot;</span><span class=cF0>, ff_mask, fu_flags, </span><span class=cF6>&quot;FifoU8Remove&quot;</span><span class=cF0>);
<a name="l59"></a> </span><span class=cF5>Find</span><span class=cF0>(</span><span class=cF6>&quot;GodBitsIns&quot;</span><span class=cF0>, ff_mask, fu_flags, </span><span class=cF6>&quot;GodBitsInsert&quot;</span><span class=cF0>);
<a name="l60"></a> </span><span class=cF5>Find</span><span class=cF0>(</span><span class=cF6>&quot;fp_draw_ms&quot;</span><span class=cF0>, ff_mask, fu_flags, </span><span class=cF6>&quot;fp_draw_mouse&quot;</span><span class=cF0>);
<a name="l61"></a> </span><span class=cF5>Find</span><span class=cF0>(</span><span class=cF6>&quot;DrawStdMs&quot;</span><span class=cF0>, ff_mask, fu_flags, </span><span class=cF6>&quot;DrawStdMouse&quot;</span><span class=cF0>);
<a name="l62"></a> </span><span class=cF5>Find</span><span class=cF0>(</span><span class=cF6>&quot;WIG_TASK_DFT&quot;</span><span class=cF0>, ff_mask, fu_flags, </span><span class=cF6>&quot;WIG_TASK_DEFAULT&quot;</span><span class=cF0>);
<a name="l63"></a>
<a name="l64"></a>
<a name="l65"></a> </span><span class=cF6>&quot;\n$BK,1$$LTRED$Might want to go over these$FG$$BK,0$\n&quot;</span><span class=cF0>;
<a name="l66"></a> </span><span class=cF5>Find</span><span class=cF0>(</span><span class=cF6>&quot;MemSet&quot;</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(&quot;Sup1/*&quot;);</span><span class=cF0>
<a name="l42"></a> </span><span class=cF5>Find</span><span class=cF0>(</span><span class=cF6>&quot;ExtChg&quot;</span><span class=cF0>, ff_mask, fu_flags, </span><span class=cF6>&quot;ExtChange&quot;</span><span class=cF0>);
<a name="l43"></a> </span><span class=cF5>Find</span><span class=cF0>(</span><span class=cF6>&quot;RegDft&quot;</span><span class=cF0>, ff_mask, fu_flags, </span><span class=cF6>&quot;RegDefault&quot;</span><span class=cF0>);
<a name="l44"></a> </span><span class=cF5>Find</span><span class=cF0>(</span><span class=cF6>&quot;\&quot;HC\&quot;&quot;</span><span class=cF0>, ff_mask, fu_flags, </span><span class=cF6>&quot;\&quot;CC\&quot;&quot;</span><span class=cF0>);
<a name="l45"></a> </span><span class=cF5>Find</span><span class=cF0>(</span><span class=cF6>&quot;CDrv&quot;</span><span class=cF0>, ff_mask, fu_flags, </span><span class=cF6>&quot;CDrive&quot;</span><span class=cF0>);
<a name="l46"></a> </span><span class=cF5>Find</span><span class=cF0>(</span><span class=cF6>&quot;CDbgInfo&quot;</span><span class=cF0>, ff_mask, fu_flags, </span><span class=cF6>&quot;CDebugInfo&quot;</span><span class=cF0>);
<a name="l47"></a> </span><span class=cF5>Find</span><span class=cF0>(</span><span class=cF6>&quot;dbg_info&quot;</span><span class=cF0>, ff_mask, fu_flags, </span><span class=cF6>&quot;debug_info&quot;</span><span class=cF0>);
<a name="l48"></a> </span><span class=cF5>Find</span><span class=cF0>(</span><span class=cF6>&quot;StrFirstRem&quot;</span><span class=cF0>, ff_mask, fu_flags, </span><span class=cF6>&quot;StrFirstRemove&quot;</span><span class=cF0>);
<a name="l49"></a> </span><span class=cF5>Find</span><span class=cF0>(</span><span class=cF6>&quot;StrLastRem&quot;</span><span class=cF0>, ff_mask, fu_flags, </span><span class=cF6>&quot;StrLastRemove&quot;</span><span class=cF0>);
<a name="l50"></a> </span><span class=cF5>Find</span><span class=cF0>(</span><span class=cF6>&quot;TempleOS/Apps&quot;</span><span class=cF0>, ff_mask, fu_flags, </span><span class=cF6>&quot;/Apps&quot;</span><span class=cF0>);
<a name="l51"></a> </span><span class=cF5>Find</span><span class=cF0>(</span><span class=cF6>&quot;adam_task&quot;</span><span class=cF0>, ff_mask, fu_flags, </span><span class=cF6>&quot;sys_task&quot;</span><span class=cF0>);
<a name="l52"></a> </span><span class=cF5>Find</span><span class=cF0>(</span><span class=cF6>&quot;JobQue&quot;</span><span class=cF0>, ff_mask, fu_flags, </span><span class=cF6>&quot;JobQueue&quot;</span><span class=cF0>);
<a name="l53"></a> </span><span class=cF5>Find</span><span class=cF0>(</span><span class=cF6>&quot;MSG_&quot;</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>&quot;-l&quot;</span><span class=cF7>)</span><span class=cF0>, </span><span class=cF6>&quot;MESSAGE_&quot;</span><span class=cF0>);
<a name="l54"></a> </span><span class=cF5>Find</span><span class=cF0>(</span><span class=cF6>&quot;.HC&quot;</span><span class=cF0>, ff_mask, fu_flags, </span><span class=cF6>&quot;.CC&quot;</span><span class=cF0>);
<a name="l55"></a> </span><span class=cF5>CatPrint</span><span class=cF0>(fu_flags, </span><span class=cF6>&quot;+l&quot;</span><span class=cF0>);
<a name="l56"></a> </span><span class=cF5>Find</span><span class=cF0>(</span><span class=cF6>&quot;Msg&quot;</span><span class=cF0>, ff_mask, fu_flags, </span><span class=cF6>&quot;Message&quot;</span><span class=cF0>);
<a name="l57"></a> </span><span class=cF5>Find</span><span class=cF0>(</span><span class=cF6>&quot;MusicSettingsRst&quot;</span><span class=cF0>,ff_mask, fu_flags, </span><span class=cF6>&quot;MusicSettingsReset&quot;</span><span class=cF0>);
<a name="l58"></a> </span><span class=cF5>Find</span><span class=cF0>(</span><span class=cF6>&quot;hndlr&quot;</span><span class=cF0>, ff_mask, fu_flags, </span><span class=cF6>&quot;handler&quot;</span><span class=cF0>);
<a name="l59"></a> </span><span class=cF5>Find</span><span class=cF0>(</span><span class=cF6>&quot;FifoU8Rem&quot;</span><span class=cF0>, ff_mask, fu_flags, </span><span class=cF6>&quot;FifoU8Remove&quot;</span><span class=cF0>);
<a name="l60"></a> </span><span class=cF5>Find</span><span class=cF0>(</span><span class=cF6>&quot;GodBitsIns&quot;</span><span class=cF0>, ff_mask, fu_flags, </span><span class=cF6>&quot;GodBitsInsert&quot;</span><span class=cF0>);
<a name="l61"></a> </span><span class=cF5>Find</span><span class=cF0>(</span><span class=cF6>&quot;fp_draw_ms&quot;</span><span class=cF0>, ff_mask, fu_flags, </span><span class=cF6>&quot;fp_draw_mouse&quot;</span><span class=cF0>);
<a name="l62"></a> </span><span class=cF5>Find</span><span class=cF0>(</span><span class=cF6>&quot;DrawStdMs&quot;</span><span class=cF0>, ff_mask, fu_flags, </span><span class=cF6>&quot;DrawStdMouse&quot;</span><span class=cF0>);
<a name="l63"></a> </span><span class=cF5>Find</span><span class=cF0>(</span><span class=cF6>&quot;WIG_TASK_DFT&quot;</span><span class=cF0>, ff_mask, fu_flags, </span><span class=cF6>&quot;WIG_TASK_DEFAULT&quot;</span><span class=cF0>);
<a name="l64"></a> </span><span class=cF5>Find</span><span class=cF0>(</span><span class=cF6>&quot;DirMk&quot;</span><span class=cF0>, ff_mask, fu_flags, </span><span class=cF6>&quot;DirMake&quot;</span><span class=cF0>);
<a name="l65"></a>
<a name="l66"></a>
<a name="l67"></a> </span><span class=cF6>&quot;\n$BK,1$$LTRED$Might want to go over these$FG$$BK,0$\n&quot;</span><span class=cF0>;
<a name="l68"></a> </span><span class=cF5>Find</span><span class=cF0>(</span><span class=cF6>&quot;MemSet&quot;</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(&quot;Sup1/*&quot;);</span><span class=cF0>
</span></pre></body>
</html>

View file

@ -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>

File diff suppressed because it is too large Load diff