mirror of
https://github.com/Zeal-Operating-System/ZealOS.git
synced 2024-12-29 16:56:30 +00:00
9aa9e44ea6
(Only 2-arg instructions implemented. CosmiC assembler needs expanding to allow 3+ arg instructions.) (Only <= 4 byte instructions implemented. CosmiC assembler needs expanding to allow instructions larger than 4 bytes.) (Bugs: Unassembler incorrectly reports 0x66 prefixed opcodes, non-128-bit instruction arguments report as U128. CosmiC does not yet have support for U128.) Fix Std Font characters. Add links to ZealOS-specific apps in Personal Menu. Remove all files in /Downloads.
95 lines
8.7 KiB
HTML
Executable file
95 lines
8.7 KiB
HTML
Executable file
<!DOCTYPE HTML>
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html;charset=US-ASCII">
|
|
<meta name="generator" content="ZealOS V1.02">
|
|
<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>//Puts the cursor at the bottom.</span><span class=cF0>
|
|
<a name="l2"></a></span><span class=cF5>Message</span><span class=cF0>(</span><span class=cF3>MESSAGE_KEY_DOWN</span><span class=cF0>, </span><span class=cFE>0</span><span class=cF0>, </span><span class=cF3>SC_CURSOR_DOWN</span><span class=cF0> | </span><span class=cF3>SCF_CTRL</span><span class=cF0>);
|
|
<a name="l3"></a></span><span class=cF6>"\n"</span><span class=cF0>;
|
|
<a name="l4"></a>
|
|
<a name="l5"></a>TourPut(</span><span class=cF6>"Press $GREEN$<F1>$FG$ for the main help index.\n"</span><span class=cF0>
|
|
<a name="l6"></a> </span><span class=cF6>"\n"</span><span class=cF0>
|
|
<a name="l7"></a> </span><span class=cF6>"The $GREEN$<F1>$FG$ key works both in "</span><span class=cF0>
|
|
<a name="l8"></a> </span><span class=cF6>"the editor and at the command line.\n"</span><span class=cF0>
|
|
<a name="l9"></a> </span><span class=cF6>"\n"</span><span class=cF0>
|
|
<a name="l10"></a> </span><span class=cF6>"You can find the </span><a href="https://zeal-operating-system.github.io/ZealOS/Doc/DemoIndex.DD.html#l1"><span class=cF4>Demo Index</span></a><span class=cF6> on the help index.\n"</span><span class=cF0>);
|
|
<a name="l11"></a></span><span class=cF5>InKeyGet</span><span class=cF0>(</span><span class=cF3>SC_F1</span><span class=cF0>);
|
|
<a name="l12"></a>
|
|
<a name="l13"></a>TourPut(</span><span class=cF6>"Press $GREEN$<SHIFT-ESC>$FG$ to abort and exit.\n"</span><span class=cF0>);
|
|
<a name="l14"></a></span><span class=cF5>InCharGet</span><span class=cF0>(</span><span class=cF3>CH_SHIFT_ESC</span><span class=cF0>);
|
|
<a name="l15"></a>
|
|
<a name="l16"></a></span><span class=cF1>U0</span><span class=cF0> RevealPopUpHelp(</span><span class=cF9>I64</span><span class=cF0> scf)
|
|
<a name="l17"></a>{
|
|
<a name="l18"></a> </span><span class=cF1>F64</span><span class=cF0> t0;
|
|
<a name="l19"></a> </span><span class=cF1>U8</span><span class=cF0> *st, *st2;
|
|
<a name="l20"></a> </span><span class=cF1>Bool</span><span class=cF0> old_key_desc;
|
|
<a name="l21"></a>
|
|
<a name="l22"></a> </span><span class=cF1>do</span><span class=cF0>
|
|
<a name="l23"></a> </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l24"></a> </span><span class=cF5>AutoComplete</span><span class=cF0>(</span><span class=cF3>ON</span><span class=cF0>);
|
|
<a name="l25"></a> st = </span><span class=cF5>ScanCode2KeyName</span><span class=cF0>(scf);
|
|
<a name="l26"></a> st2 = </span><span class=cF5>MStrUtil</span><span class=cF0>(st, </span><span class=cF3>SUF_REM_TRAILING</span><span class=cF0>);
|
|
<a name="l27"></a> </span><span class=cF5>Free</span><span class=cF0>(st);
|
|
<a name="l28"></a> st = </span><span class=cF5>MStrPrint</span><span class=cF0>( </span><span class=cF6>"If you have $GREEN$AutoComplete$FG$ on, you "</span><span class=cF0>
|
|
<a name="l29"></a> </span><span class=cF6>"can list the key commands. This works both "</span><span class=cF0>
|
|
<a name="l30"></a> </span><span class=cF6>"in the editor and at the command line.\n"</span><span class=cF0>
|
|
<a name="l31"></a> </span><span class=cF6>"\n"</span><span class=cF0>
|
|
<a name="l32"></a> </span><span class=cF6>"You can click the links to jump to source code.\n"</span><span class=cF0>
|
|
<a name="l33"></a> </span><span class=cF6>"\n"</span><span class=cF0>
|
|
<a name="l34"></a> </span><span class=cF6>"Press and hold the $GREEN$<%s>$FG$ key.\n"</span><span class=cF0>
|
|
<a name="l35"></a> </span><span class=cF6>"Hold it for more than 1.0 seconds.\n"</span><span class=cF0>,st2);
|
|
<a name="l36"></a> </span><span class=cF5>Free</span><span class=cF0>(st2);
|
|
<a name="l37"></a> TourPut(st);
|
|
<a name="l38"></a> </span><span class=cF5>Free</span><span class=cF0>(st);
|
|
<a name="l39"></a>
|
|
<a name="l40"></a> old_key_desc = </span><span class=cF5>LBtr</span><span class=cF0>(&</span><span class=cF5>Fs</span><span class=cF0>->win_inhibit, </span><span class=cF3>WIf_SELF_KEY_DESC</span><span class=cF0>);
|
|
<a name="l41"></a> </span><span class=cF1>while</span><span class=cF0> (</span><span class=cFB>kbd</span><span class=cF0>.scan_code & </span><span class=cF7>(</span><span class=cF3>SCF_CTRL</span><span class=cF0> | </span><span class=cF3>SCF_ALT</span><span class=cF0> | </span><span class=cF3>SCF_SHIFT</span><span class=cF7>)</span><span class=cF0> != scf)
|
|
<a name="l42"></a> </span><span class=cF5>Sleep</span><span class=cF0>(</span><span class=cFE>1</span><span class=cF0>);
|
|
<a name="l43"></a>
|
|
<a name="l44"></a> t0 = </span><span class=cF5>tS</span><span class=cF0>;
|
|
<a name="l45"></a> </span><span class=cF1>while</span><span class=cF0> (</span><span class=cFB>kbd</span><span class=cF0>.scan_code & </span><span class=cF7>(</span><span class=cF3>SCF_CTRL</span><span class=cF0> | </span><span class=cF3>SCF_ALT</span><span class=cF0> | </span><span class=cF3>SCF_SHIFT</span><span class=cF7>)</span><span class=cF0> == scf)
|
|
<a name="l46"></a> {
|
|
<a name="l47"></a> </span><span class=cF5>KeyScan</span><span class=cF0>(,, </span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l48"></a> </span><span class=cF1>if</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=cF5>tS</span><span class=cF0> - t0 < </span><span class=cFE>1</span><span class=cF0>.</span><span class=cFE>15</span><span class=cF0>)
|
|
<a name="l49"></a> </span><span class=cF5>Sound</span><span class=cF0>(</span><span class=cFE>34</span><span class=cF0>);
|
|
<a name="l50"></a> </span><span class=cF1>else</span><span class=cF0>
|
|
<a name="l51"></a> </span><span class=cF5>Sound</span><span class=cF0>;
|
|
<a name="l52"></a> </span><span class=cF5>Sleep</span><span class=cF0>(</span><span class=cFE>1</span><span class=cF0>);
|
|
<a name="l53"></a> }
|
|
<a name="l54"></a> </span><span class=cF5>LBEqual</span><span class=cF0>(&</span><span class=cF5>Fs</span><span class=cF0>->win_inhibit, </span><span class=cF3>WIf_SELF_KEY_DESC</span><span class=cF0>, old_key_desc);
|
|
<a name="l55"></a> </span><span class=cF5>Sound</span><span class=cF0>;
|
|
<a name="l56"></a> </span><span class=cF7>}</span><span class=cF0>
|
|
<a name="l57"></a> </span><span class=cF1>while</span><span class=cF0> (</span><span class=cF5>tS</span><span class=cF0> - t0 < </span><span class=cFE>1</span><span class=cF0>.</span><span class=cFE>0</span><span class=cF0>);
|
|
<a name="l58"></a>}
|
|
<a name="l59"></a>
|
|
<a name="l60"></a>RevealPopUpHelp(</span><span class=cF3>SCF_CTRL</span><span class=cF0>);
|
|
<a name="l61"></a>RevealPopUpHelp(</span><span class=cF3>SCF_CTRL</span><span class=cF0> | </span><span class=cF3>SCF_SHIFT</span><span class=cF0>);
|
|
<a name="l62"></a>RevealPopUpHelp(</span><span class=cF3>SCF_ALT</span><span class=cF0>);
|
|
<a name="l63"></a>RevealPopUpHelp(</span><span class=cF3>SCF_ALT</span><span class=cF0> | </span><span class=cF3>SCF_SHIFT</span><span class=cF0>);
|
|
<a name="l64"></a>RevealPopUpHelp(</span><span class=cF3>SCF_CTRL</span><span class=cF0> | </span><span class=cF3>SCF_ALT</span><span class=cF0>);
|
|
<a name="l65"></a>RevealPopUpHelp(</span><span class=cF3>SCF_CTRL</span><span class=cF0> | </span><span class=cF3>SCF_ALT</span><span class=cF0>|</span><span class=cF3>SCF_SHIFT</span><span class=cF0>);
|
|
<a name="l66"></a>
|
|
</span></pre></body>
|
|
</html>
|