about summary refs log tree commit diff stats
path: root/subx/apps/crenshaw2-1b.subx
Commit message (Collapse)AuthorAgeFilesLines
* 4934Kartik Agaram2019-01-161-1/+1
|
* 4933Kartik Agaram2019-01-161-1/+1
|
* 4888Kartik Agaram2018-12-291-28/+28
| | | | We only can't use rm32=5 when mod=0. Totally fine when it's mod=1.
* 4886Kartik Agaram2018-12-281-2/+2
|
* 4879Kartik Agaram2018-12-281-6/+6
|
* 4847Kartik Agaram2018-12-061-4/+4
|
* 4840Kartik Agaram2018-12-041-1/+1
| | | | New helper: printing a string to a buffered file.
* 4837Kartik Agaram2018-12-041-1/+1
| | | | Let's standardize to use opcode 39 rather than 3b by default.
* 4832Kartik Agaram2018-12-041-0/+2
| | | | | | Let's start adding ':end' labels in all functions, just because it helps us visualize where function calls end in traces, thanks to the '--map' commandline argument.
* 4826Kartik Agaram2018-12-031-1/+1
|
* 4821Kartik Agaram2018-12-021-41/+0
|
* 4819Kartik Agaram2018-12-021-3/+3
|
* 4818Kartik Agaram2018-12-021-6/+6
|
* 4815Kartik Agaram2018-12-021-4/+9
|
* 4813Kartik Agaram2018-12-011-1/+1
|
* 4812Kartik Agaram2018-11-301-1/+1
|
* 4808 - clean up comments in all subx filesKartik Agaram2018-11-301-110/+106
|
* 4802Kartik Agaram2018-11-301-210/+210
| | | | | | | | | | | | | | | | Some automated commenting cleanup. Still needs more careful manual scanning. sed -i 's/^# 1-3/# . 1-3/' *.subx */*.subx sed -i 's/^# op/# . op/' *.subx */*.subx sed -i 's/# vim/# . . vim/' *.subx */*.subx sed -i 's/^ # push args/ # . . push args/' *.subx */*.subx sed -i 's/^ # discard args/ # . . discard args/' *.subx */*.subx sed -i 's/^ # call/ # . . call/' *.subx */*.subx sed -i 's/^ # prolog/ # . prolog/' *.subx */*.subx sed -i 's/^ # epilog/ # . epilog/' *.subx */*.subx sed -i 's/^ # save registers/ # . save registers/' *.subx */*.subx sed -i 's/^ # restore registers/ # . restore registers/' *.subx */*.subx sed -i 's/ operand / register /' *.subx */*.subx
* 4801Kartik Agaram2018-11-301-568/+568
| | | | Reindent all SubX code to make some room for the new comment style.
* 4800Kartik Agaram2018-11-301-6/+6
|
* 4799Kartik Agaram2018-11-301-4/+4
|
* 4797Kartik Agaram2018-11-301-1/+1
|
* 4776Kartik Agaram2018-11-251-1/+1
| | | | | | | | | | | | | Crenshaw compiler now runs natively as well. It turns out I was misreading the Intel manual, and the jump instructions that I thought take disp16 operands actually take disp32 operands by default on both i686 and x86_64 processors. The disp16 versions are some holdover from the 16-bit days. This was the first time I've used one of these erstwhile-disp16 instructions, but I still haven't tested most of them. We'll see if we run into future issues.
* 4775Kartik Agaram2018-11-241-0/+836
Start with an exactly corresponding version to Crenshaw 2-1: single-digit numbers. The only change: we assume the number is in hex. The next version now supports multi-digit hex numbers.
s1">'L'+lineNum; } lineElem = document.getElementById(lineNum); /* Always jump to new location even if the line was hidden inside a fold, or * we corrected the raw number to a line ID. */ if (lineElem) { lineElem.scrollIntoView(true); } return true; } if ('onhashchange' in window) { window.onhashchange = JumpToLine; } --> </script> </head> <body onload='JumpToLine();'> <a href='https://github.com/akkartik/mu/blob/master/screen.mu'>https://github.com/akkartik/mu/blob/master/screen.mu</a> <pre id='vimCodeElement'> <span id="L1" class="LineNr"> 1 </span><span class="Comment"># example program: managing the display using 'screen' objects</span> <span id="L2" class="LineNr"> 2 </span> <span id="L3" class="LineNr"> 3 </span><span class="Comment"># The zero screen below means 'use the real screen'. Tests can also use fake</span> <span id="L4" class="LineNr"> 4 </span><span class="Comment"># screens.</span> <span id="L5" class="LineNr"> 5 </span><span class="muRecipe">def</span> <a href='screen.mu.html#L5'>main</a> [ <span id="L6" class="LineNr"> 6 </span> open-console <span id="L7" class="LineNr"> 7 </span> <a href='081print.mu.html#L46'>clear-screen</a><span class="Constant"> null/screen</span> <span class="Comment"># non-scrolling app</span> <span id="L8" class="LineNr"> 8 </span> 10:char <span class="Special">&lt;-</span> copy <span class="Constant">97/a</span> <span id="L9" class="LineNr"> 9 </span> print<span class="Constant"> null/screen,</span> 10:char/a, <span class="Constant">1/red</span>, <span class="Constant">2/green</span> <span id="L10" class="LineNr">10 </span> 1:num/<span class="Special">raw</span>, 2:num/<span class="Special">raw</span> <span class="Special">&lt;-</span> <a href='081print.mu.html#L577'>cursor-position</a><span class="Constant"> null/screen</span> <span id="L11" class="LineNr">11 </span> <a href='084console.mu.html#L88'>wait-for-event</a><span class="Constant"> null/console</span> <span id="L12" class="LineNr">12 </span> <a href='081print.mu.html#L46'>clear-screen</a><span class="Constant"> null/screen</span> <span id="L13" class="LineNr">13 </span> <a href='081print.mu.html#L591'>move-cursor</a><span class="Constant"> null/screen,</span> <span class="Constant">0/row</span>, <span class="Constant">4/column</span> <span id="L14" class="LineNr">14 </span> 10:char <span class="Special">&lt;-</span> copy <span class="Constant">98/b</span> <span id="L15" class="LineNr">15 </span> print<span class="Constant"> null/screen,</span> 10:char <span id="L16" class="LineNr">16 </span> <a href='084console.mu.html#L88'>wait-for-event</a><span class="Constant"> null/console</span> <span id="L17" class="LineNr">17 </span> <a href='081print.mu.html#L591'>move-cursor</a><span class="Constant"> null/screen,</span> <span class="Constant">0/row</span>, <span class="Constant">0/column</span> <span id="L18" class="LineNr">18 </span> <a href='081print.mu.html#L524'>clear-line</a><span class="Constant"> null/screen</span> <span id="L19" class="LineNr">19 </span> <a href='084console.mu.html#L88'>wait-for-event</a><span class="Constant"> null/console</span> <span id="L20" class="LineNr">20 </span> <a href='081print.mu.html#L645'>cursor-down</a><span class="Constant"> null/screen</span> <span id="L21" class="LineNr">21 </span> <a href='084console.mu.html#L88'>wait-for-event</a><span class="Constant"> null/console</span> <span id="L22" class="LineNr">22 </span> <a href='081print.mu.html#L706'>cursor-right</a><span class="Constant"> null/screen</span> <span id="L23" class="LineNr">23 </span> <a href='084console.mu.html#L88'>wait-for-event</a><span class="Constant"> null/console</span> <span id="L24" class="LineNr">24 </span> <a href='081print.mu.html#L726'>cursor-left</a><span class="Constant"> null/screen</span> <span id="L25" class="LineNr">25 </span> <a href='084console.mu.html#L88'>wait-for-event</a><span class="Constant"> null/console</span> <span id="L26" class="LineNr">26 </span> <a href='081print.mu.html#L688'>cursor-up</a><span class="Constant"> null/screen</span> <span id="L27" class="LineNr">27 </span> <a href='084console.mu.html#L88'>wait-for-event</a><span class="Constant"> null/console</span> <span id="L28" class="LineNr">28 </span> close-console <span id="L29" class="LineNr">29 </span>] </pre> </body> </html> <!-- vim: set foldmethod=manual : --> 3-12-14 16:35:56 +0000 Added history and jid tests to cmocka' href='/danisanti/profani-tty/commit/tests/test_jid.c?id=07308673261449c3aab3bbed627a8d61da7a0470'>07308673 ^
3a22719b ^
8bdab23e ^
3a22719b ^
07308673 ^
3a22719b ^

07308673 ^
3a22719b ^
8bdab23e ^
3a22719b ^
07308673 ^
3a22719b ^

07308673 ^
d239a127 ^


07308673 ^




d239a127 ^

07308673 ^
d239a127 ^


07308673 ^




d239a127 ^

07308673 ^
d239a127 ^


07308673 ^




d239a127 ^

07308673 ^
d239a127 ^


07308673 ^




94bcf188 ^
e263e00a ^

















1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185