1 |
root |
1.1 |
#!/opt/bin/perl |
2 |
|
|
|
3 |
root |
1.2 |
# |
4 |
|
|
# Copyright(C) 2014 Marc Alexander Lehmann <vt102@schmorp.de> |
5 |
|
|
# |
6 |
|
|
# vt102 is free software; you can redistribute it and/or modify it under |
7 |
|
|
# the terms of the GNU General Public License as published by the Free |
8 |
|
|
# Software Foundation; either version 3, or (at your option) any later |
9 |
|
|
# version. |
10 |
|
|
# |
11 |
|
|
# vt102 is distributed in the hope that it will be useful, but WITHOUT |
12 |
|
|
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
13 |
|
|
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
14 |
|
|
# for more details. |
15 |
|
|
# |
16 |
|
|
|
17 |
|
|
# If this file contains embedded ROMs, the above copyright notice does |
18 |
|
|
# not apply to them. |
19 |
|
|
|
20 |
root |
1.1 |
# this hack is not considered release ready in and way, shape, or form |
21 |
|
|
# ./vt102 bash |
22 |
|
|
# ./vt102 telnet towel.blinkenlights.nl |
23 |
|
|
# ./vt102 curl http://artscene.textfiles.com/vt100/trekvid.vt |
24 |
|
|
# ./vt102 curl http://artscene.textfiles.com/vt100/surf.vt # in 3d! |
25 |
|
|
|
26 |
root |
1.3 |
# TODO: ctrl |
27 |
|
|
|
28 |
root |
1.1 |
use common::sense; |
29 |
|
|
|
30 |
|
|
$| = 1; |
31 |
|
|
|
32 |
root |
1.3 |
my $VT102 = 1; |
33 |
root |
1.1 |
my $AVO = $VT102 || 1; |
34 |
|
|
my $KBD = 1; |
35 |
|
|
|
36 |
|
|
############################################################################# |
37 |
|
|
|
38 |
|
|
my $PTY; # the pty we allocated, if any |
39 |
|
|
|
40 |
|
|
my $ROM = do { |
41 |
|
|
binmode DATA; |
42 |
|
|
local $/; |
43 |
|
|
<DATA> |
44 |
|
|
}; |
45 |
|
|
|
46 |
|
|
0x6001 == length $ROM or die "corrupted rom image"; |
47 |
|
|
|
48 |
|
|
binmode STDOUT; |
49 |
|
|
|
50 |
|
|
my @M = (0xff) x 65536; # main memory, = (0xff) x 65536; |
51 |
|
|
|
52 |
|
|
# populate mem with rom contents |
53 |
|
|
if ($VT102) { |
54 |
|
|
@M[0x0000 .. 0x1fff] = unpack "C*", substr $ROM, 0x2000, 0x2000; |
55 |
|
|
@M[0x8000 .. 0x9fff] = unpack "C*", substr $ROM, 0x4000, 0x2000; |
56 |
|
|
} else { |
57 |
|
|
@M[0x0000 .. 0x1fff] = unpack "C*", substr $ROM, 0x0000, 0x2000; |
58 |
|
|
} |
59 |
|
|
|
60 |
|
|
############################################################################# |
61 |
|
|
|
62 |
|
|
my $PRSTATUS = 0; |
63 |
|
|
|
64 |
|
|
# 8080/8085 registers |
65 |
|
|
# b, c, d, e, h, l, a |
66 |
|
|
my ($A, $B, $C, $D, $E, $H, $L, $A); |
67 |
|
|
my ($PC, $SP, $IFF, $FA, $FZ, $FS, $FP, $FC); |
68 |
|
|
|
69 |
|
|
my $RST = 0; # 8080 pending interrupts |
70 |
|
|
my $INTMASK = 7; # 8085 half interrupts |
71 |
|
|
my $INTPEND = 0; # 8085 half interrupts |
72 |
|
|
|
73 |
|
|
my $x; # dummy temp for instructions |
74 |
|
|
|
75 |
|
|
my $CLK; # rather inexact clock |
76 |
|
|
|
77 |
|
|
############################################################################# |
78 |
|
|
|
79 |
|
|
# nvram |
80 |
|
|
my @NVR = (0x3fff) x 100; # vt102: 214e accum, 214f only lower 8 bit used, first 44 bytes |
81 |
|
|
my $NVRADDR; |
82 |
|
|
my $NVRDATA; |
83 |
|
|
my $NVRLATCH; |
84 |
|
|
|
85 |
|
|
#$NVR[$_] = $_ for 0..99;#d# |
86 |
|
|
|
87 |
|
|
my @NVRCMD = ( |
88 |
|
|
sub { # accept data |
89 |
|
|
$NVRDATA = ($NVRDATA << 1) + $_[1]; |
90 |
|
|
}, |
91 |
|
|
sub { # accept addr |
92 |
|
|
$NVRADDR = ($NVRADDR << 1)+ $_[1]; |
93 |
|
|
}, |
94 |
|
|
sub { # shift out |
95 |
|
|
my $bit = $NVRDATA & 0x02000; |
96 |
|
|
$NVRDATA *= 2; |
97 |
|
|
$bit |
98 |
|
|
}, |
99 |
|
|
undef, |
100 |
|
|
sub { # write |
101 |
|
|
print "NVR WRITE $_[0]\n";#d# |
102 |
|
|
$NVR[$_[0]] = $NVRDATA & 0x3fff; |
103 |
|
|
}, |
104 |
|
|
sub { # erase |
105 |
|
|
print "NVR ERASE $_[0]\n";#d# |
106 |
|
|
$NVR[$_[0]] = 0x3fff; |
107 |
|
|
}, |
108 |
|
|
sub { # read |
109 |
|
|
# print "NVR READ $_[0] = $NVR[$_[0]]\n";#d# |
110 |
|
|
$NVRDATA = $NVR[$_[0]]; |
111 |
|
|
}, |
112 |
|
|
sub { # standby |
113 |
|
|
}, |
114 |
|
|
); |
115 |
|
|
|
116 |
|
|
my @bitidx; |
117 |
|
|
$bitidx[1 << $_] = 9 - $_ for 0..9; |
118 |
|
|
|
119 |
|
|
# the nvr1400 state machine. what a monster |
120 |
|
|
sub nvr() { |
121 |
|
|
my $a1 = $bitidx[(~$NVRADDR ) & 0x3ff]; |
122 |
|
|
my $a0 = $bitidx[(~$NVRADDR >> 10) & 0x3ff]; |
123 |
|
|
|
124 |
|
|
# printf "NVR %02x A %020b %d %d D %02x\n", $NVRLATCH, $NVRADDR & 0xfffff, $a1, $a0, $NVRDATA; |
125 |
|
|
|
126 |
|
|
$NVRCMD[($NVRLATCH >> 1) & 7]($a1 * 10 + $a0, $NVRLATCH & 1) |
127 |
|
|
} |
128 |
|
|
|
129 |
|
|
############################################################################# |
130 |
|
|
|
131 |
|
|
my $DC11 = 0; # 4 bit commands |
132 |
|
|
my $DC12 = 0; |
133 |
|
|
|
134 |
|
|
my $XON = 1; # false if terminal wants us to pause |
135 |
|
|
my $PUSARTCMD; |
136 |
|
|
|
137 |
|
|
my @KXMIT; # current scan queue |
138 |
|
|
my %KXMIT; # currently pressed keys |
139 |
|
|
my @KQUEUE; # key event queue |
140 |
|
|
my $KXCNT; # count for debouncew |
141 |
|
|
my @PUSARTRECV; |
142 |
|
|
my $KSTATUS; |
143 |
|
|
|
144 |
|
|
sub out_00 { # pusartdata |
145 |
|
|
# handle xon/xoff, but also pass it through |
146 |
|
|
if ($_[0] == 0x13) { |
147 |
|
|
$XON = 0; |
148 |
root |
1.3 |
return;#d# |
149 |
root |
1.1 |
} elsif ($_[0] == 0x11) { |
150 |
|
|
$XON = 1; |
151 |
root |
1.3 |
return;#d# |
152 |
root |
1.1 |
} |
153 |
|
|
|
154 |
|
|
syswrite $PTY, chr $_[0]; |
155 |
|
|
|
156 |
root |
1.3 |
$INTPEND |= 1; |
157 |
root |
1.1 |
} |
158 |
|
|
|
159 |
|
|
sub out_01 { |
160 |
|
|
$PUSARTCMD = shift; |
161 |
|
|
|
162 |
|
|
$INTPEND |= 1 if $PUSARTCMD & 0x01; # VT102, 5.5 txrdy |
163 |
root |
1.3 |
$INTPEND |= 2 if $PUSARTCMD & 0x04 && !@PUSARTRECV; # VT102, 6.5 rxrdy, needed for some reason |
164 |
root |
1.1 |
} |
165 |
|
|
|
166 |
|
|
sub out_02 { } # baudrate generator |
167 |
|
|
|
168 |
|
|
sub out_23 { } # unknown |
169 |
|
|
sub out_27 { } # unknown |
170 |
|
|
sub out_2f { } # unknown, connected to in 0f |
171 |
|
|
|
172 |
|
|
sub out_42 { } # brightness |
173 |
|
|
|
174 |
|
|
sub out_62 { |
175 |
|
|
$NVRLATCH = shift; |
176 |
|
|
} |
177 |
|
|
|
178 |
|
|
sub out_a2 { $DC11 = shift } |
179 |
|
|
sub out_c2 { } # unknown |
180 |
|
|
sub out_d2 { $DC12 = shift } |
181 |
|
|
|
182 |
|
|
sub out_82 { |
183 |
|
|
# keyboard |
184 |
|
|
|
185 |
|
|
# CLICK STARTSCAN ONLINE LOCKED | CTS DSR INSERT L1(?) |
186 |
|
|
# CLICK STARTSCAN ONLINE LOCKED | LED1 LED2 LED3 LED4 |
187 |
|
|
$KSTATUS = $_[0]; |
188 |
|
|
|
189 |
|
|
# start new scan unless scan in progress |
190 |
|
|
if (($_[0] & 0x40) && !@KXMIT) { |
191 |
|
|
# do not reply with keys in locked mode |
192 |
|
|
# or during post (0xff), |
193 |
|
|
# mostly to skip init and not fail POST, |
194 |
|
|
# and to send startup keys only when terminal is ready |
195 |
|
|
unless (($_[0] & 0x10) || ($_[0] == 0xff) || ($VT102 && $INTMASK == 0x07)) { |
196 |
|
|
if ($KXCNT <= 0 && @KQUEUE) { |
197 |
|
|
my $c = shift @KQUEUE; |
198 |
|
|
|
199 |
|
|
if ($c < 0) { # key up |
200 |
|
|
delete $KXMIT{-$c}; |
201 |
|
|
$KXCNT = 10; |
202 |
|
|
} elsif ($c > 0) { # key down |
203 |
|
|
undef $KXMIT{$c}; |
204 |
|
|
$KXCNT = 10; |
205 |
|
|
} else { # delay |
206 |
|
|
$KXCNT = 100; |
207 |
|
|
} |
208 |
|
|
} |
209 |
|
|
|
210 |
|
|
--$KXCNT; |
211 |
|
|
@KXMIT = sort keys %KXMIT; |
212 |
|
|
} |
213 |
|
|
|
214 |
|
|
$RST |= 1; |
215 |
|
|
} |
216 |
|
|
} |
217 |
|
|
|
218 |
|
|
############################################################################# |
219 |
|
|
|
220 |
|
|
my $NVRBIT; |
221 |
|
|
my $LBA; |
222 |
|
|
|
223 |
|
|
sub in_00 { # pusart data |
224 |
root |
1.3 |
# interrupt not generated here, because infinite |
225 |
|
|
# speed does not go well with the vt102. |
226 |
root |
1.1 |
|
227 |
|
|
shift @PUSARTRECV |
228 |
|
|
} |
229 |
|
|
|
230 |
|
|
sub in_01 { # pusart status |
231 |
|
|
# DSR SYNDET FE OE | PE TXEMPTY RXRDY TXRDY |
232 |
|
|
0x85 + (@PUSARTRECV && 0x02) |
233 |
|
|
} |
234 |
|
|
|
235 |
|
|
sub in_22 { # modem buffer(?) |
236 |
|
|
# wild guess: -CTS -SPDI -RI -CD 0 0 0 0 |
237 |
|
|
0x20 |
238 |
|
|
} |
239 |
|
|
|
240 |
|
|
sub in_0f { } # unknown, connected to out 2f |
241 |
|
|
|
242 |
|
|
sub in_42 { # flag buffer |
243 |
|
|
++$LBA; |
244 |
|
|
|
245 |
|
|
$NVRBIT = nvr ? 0x20 : 0x00 if ($LBA & 0x3) == 0x2; |
246 |
|
|
|
247 |
|
|
# KBD_XMITEMPTY LBA7 NVRDATA ODDFIELD - OPTION !GFX !AVO PUSART_TXRDY |
248 |
|
|
|
249 |
|
|
my $f = 0x85 | $NVRBIT; |
250 |
|
|
|
251 |
|
|
$f |= 0x02 unless $AVO; |
252 |
|
|
$f |= 0x40 if $LBA & 0x2; |
253 |
|
|
|
254 |
|
|
$f |
255 |
|
|
} |
256 |
|
|
|
257 |
|
|
sub in_82 { # tbmt keyboard uart |
258 |
|
|
return 0x7f unless @KXMIT; |
259 |
|
|
|
260 |
|
|
$RST |= 1; |
261 |
|
|
shift @KXMIT |
262 |
|
|
} |
263 |
|
|
|
264 |
|
|
sub in_03 { 0xff } # unknown, printer uart input? |
265 |
|
|
sub in_0b { 0xff } # unknown |
266 |
|
|
sub in_17 { 0xff } # unknown, printer status clear by reading? |
267 |
|
|
sub in_1b { 0xff } # unknown |
268 |
|
|
|
269 |
|
|
############################################################################# |
270 |
|
|
|
271 |
root |
1.3 |
sub sf { # set flags (ZSC - AP not implemented) |
272 |
root |
1.1 |
$FS = $_[0] & 0x080; |
273 |
|
|
$FZ = ($_[0] & 0x0ff) == 0; |
274 |
|
|
$FC = $_[0] & 0x100; |
275 |
|
|
|
276 |
|
|
$_[0] & 0xff |
277 |
|
|
} |
278 |
|
|
|
279 |
root |
1.3 |
sub sf_nc { # set flags except carry |
280 |
root |
1.1 |
$FS = $_[0] & 0x080; |
281 |
|
|
$FZ = ($_[0] & 0x0ff) == 0; |
282 |
|
|
|
283 |
|
|
$_[0] & 0xff |
284 |
|
|
} |
285 |
|
|
|
286 |
|
|
my @op = map { sprintf "status(); die 'unknown op %02x'", $_ } 0 .. 255; |
287 |
|
|
my @ops; |
288 |
|
|
|
289 |
|
|
my @reg = qw($B $C $D $E $H $L $M[$H*256+$L] $A); |
290 |
|
|
my @cc = ('if !$FZ', 'if $FZ', 'if !$FC', 'if $FC', ';die', ';die', 'if !$FS', 'if $FS'); # die == unimplemented $FP parity |
291 |
|
|
|
292 |
|
|
# mov r,r / r,M / M,r |
293 |
|
|
for my $s (0..7) { |
294 |
|
|
for my $d (0..7) { |
295 |
|
|
$op[0x40 + $d * 8 + $s] = "$reg[$d] = $reg[$s]"; |
296 |
|
|
} |
297 |
|
|
} |
298 |
|
|
|
299 |
|
|
$op[0x00] = ''; |
300 |
|
|
|
301 |
|
|
$op[0x01] = '($B, $C) = (IMM16 >> 8, IMM16 & 0xff)'; # lxi |
302 |
|
|
$op[0x11] = '($D, $E) = (IMM16 >> 8, IMM16 & 0xff)'; # lxi |
303 |
|
|
$op[0x21] = '($H, $L) = (IMM16 >> 8, IMM16 & 0xff)'; # lxi |
304 |
|
|
$op[0x31] = '$SP = IMM16' ; # lxi #d# 0xf000 because of limited stack |
305 |
|
|
|
306 |
|
|
$op[0x02] = '$M[$B * 256 + $C] = $A'; # stax |
307 |
|
|
$op[0x12] = '$M[$D * 256 + $E] = $A'; # stax |
308 |
|
|
$op[0x32] = '$M[IMM16 ] = $A'; # sta |
309 |
|
|
|
310 |
|
|
sub inxdcx($$$) { |
311 |
|
|
$x = ($_[0] * 256 + $_[1] + $_[2]) & 0xffff; |
312 |
|
|
$_[0] = $x >> 8; |
313 |
|
|
$_[1] = $x & 0xff; |
314 |
|
|
} |
315 |
|
|
|
316 |
|
|
$op[0x03] = 'inxdcx $B, $C, 1'; # inx |
317 |
|
|
$op[0x13] = 'inxdcx $D, $E, 1'; # inx |
318 |
|
|
$op[0x23] = 'inxdcx $H, $L, 1'; # inx |
319 |
|
|
$op[0x33] = '$SP++' ; # inx |
320 |
|
|
$op[0x0b] = 'inxdcx $B, $C, -1'; # dcx |
321 |
|
|
$op[0x1b] = 'inxdcx $D, $E, -1'; # dcx |
322 |
|
|
$op[0x2b] = 'inxdcx $H, $L, -1'; # dcx |
323 |
|
|
$op[0x3b] = '--$SP' ; # dcx |
324 |
|
|
|
325 |
|
|
# "no carry" doesn't seem to be needed for vt100 - optimize? |
326 |
|
|
$op[0x04 + $_ * 8] = "$reg[$_] = sf_nc $reg[$_] + 1" for 0..7; # inr |
327 |
|
|
$op[0x05 + $_ * 8] = "$reg[$_] = sf_nc $reg[$_] - 1" for 0..7; # dcr |
328 |
|
|
|
329 |
|
|
# mvi r / M |
330 |
|
|
$op[0x06 + $_ * 8] = "$reg[$_] = IMM8" for 0..7; |
331 |
|
|
|
332 |
|
|
# getting this insn wrong (its the only 16 bit insn to modify flags) |
333 |
|
|
# wasted three of my best days with mindless vt102 rom reverse engineering |
334 |
|
|
sub dad { |
335 |
|
|
$x = $H * 256 + $L + $_[0]; |
336 |
|
|
|
337 |
|
|
($H, $L) = (($x >> 8) & 0xff, $x & 0xff); |
338 |
|
|
$FC = $x > 0xffff; |
339 |
|
|
} |
340 |
|
|
|
341 |
|
|
$op[0x09] = 'dad $B * 256 + $C'; # dad |
342 |
|
|
$op[0x19] = 'dad $D * 256 + $E'; # dad |
343 |
|
|
$op[0x29] = 'dad $H * 256 + $L'; # dad |
344 |
|
|
$op[0x39] = 'dad $SP '; # dad |
345 |
|
|
|
346 |
|
|
$op[0x07] = ' $FC = $A >> 7; $A = ($A * 2 + $FC) & 0xff '; # rlc |
347 |
|
|
$op[0x17] = ' ($FC, $A) = ($A >> 7, ($A * 2 + $FC) & 0xff)'; # ral |
348 |
|
|
|
349 |
|
|
$op[0x0f] = ' $FC = $A & 1; $A = ($A >> 1) | ($FC && 0x80) '; # rrc |
350 |
|
|
$op[0x1f] = ' ($FC, $A) = ($A & 1, ($A >> 1) | ($FC && 0x80))'; # rar |
351 |
|
|
|
352 |
|
|
$op[0x0a] = '$A = $M[$B * 256 + $C]'; # ldax b |
353 |
|
|
$op[0x1a] = '$A = $M[$D * 256 + $E]'; # ldax d |
354 |
|
|
$op[0x3a] = '$A = $M[IMM16]'; # lda |
355 |
|
|
|
356 |
|
|
$op[0x20] = '$A = $INTPEND * 16 + $INTMASK + ($IFF && 8)'; # rim (incomplete) |
357 |
|
|
$op[0x30] = '$INTMASK = $A & 7 if $A & 8'; # sim (incomplete) |
358 |
|
|
|
359 |
|
|
$op[0x22] = '($M[IMM16], $M[IMM16 + 1]) = ($L, $H)'; # shld |
360 |
|
|
$op[0x2a] = '($L, $H) = ($M[IMM16], $M[IMM16 + 1])'; # lhld |
361 |
|
|
|
362 |
|
|
# yeah, the fucking setup screens actually use daa... |
363 |
|
|
$op[0x27] = ' |
364 |
|
|
my ($h, $l); |
365 |
|
|
|
366 |
|
|
($h, $l) = ($A >> 4, $A & 15); |
367 |
|
|
|
368 |
|
|
if ($l > 9 || $FA) { |
369 |
|
|
$A = sf $A + 6; |
370 |
|
|
($h, $l) = ($A >> 4, $A & 15); |
371 |
|
|
} |
372 |
|
|
|
373 |
|
|
if ($h > 9 || $FC) { |
374 |
|
|
$h += 6; |
375 |
|
|
$A = ($h * 16 + $l) & 0xff; |
376 |
|
|
} |
377 |
|
|
'; # daa, almost certainly borked, also, acarry not set by sf |
378 |
|
|
|
379 |
|
|
$op[0x2f] = '$A ^= 0xff'; # cma |
380 |
|
|
|
381 |
|
|
$op[0x37] = '$FC = 1 '; # stc |
382 |
|
|
$op[0x3f] = '$FC = !$FC'; # cmc |
383 |
|
|
|
384 |
|
|
$op[0x76] = 'die "HLT"'; # hlt |
385 |
|
|
|
386 |
|
|
$op[0x80 + $_] = '$A = sf $A + ' . $reg[$_] for 0..7; # add |
387 |
|
|
$op[0x88 + $_] = '$A = sf $A + $FC + ' . $reg[$_] for 0..7; # adc |
388 |
|
|
$op[0x90 + $_] = '$A = sf $A - ' . $reg[$_] for 0..7; # sub |
389 |
|
|
$op[0x98 + $_] = '$A = sf $A - $FC - ' . $reg[$_] for 0..7; # sbb |
390 |
|
|
$op[0xa0 + $_] = '$A = sf $A & ' . $reg[$_] for 0..7; # ana |
391 |
|
|
$op[0xa8 + $_] = '$A = sf $A ^ ' . $reg[$_] for 0..7; # xra |
392 |
|
|
$op[0xb0 + $_] = '$A = sf $A | ' . $reg[$_] for 0..7; # ora |
393 |
|
|
$op[0xb8 + $_] = ' sf $A - ' . $reg[$_] for 0..7; # cmp |
394 |
|
|
# possible todo: optimize ora a, maybe xra a |
395 |
|
|
|
396 |
|
|
$op[0xc6 + $_] = '$A = sf $A + IMM8'; # adi |
397 |
|
|
$op[0xd6 + $_] = '$A = sf $A - IMM8'; # sui |
398 |
|
|
$op[0xe6 + $_] = '$A = sf $A & IMM8'; # ani |
399 |
|
|
$op[0xee + $_] = '$A = sf $A ^ IMM8'; # xri |
400 |
|
|
$op[0xf6 + $_] = '$A = sf $A | IMM8'; # ori |
401 |
|
|
$op[0xfe + $_] = ' sf $A - IMM8'; # cpi |
402 |
|
|
|
403 |
|
|
$op[0xc1] = '($C, $B) = (POP, POP)'; # pop |
404 |
|
|
$op[0xd1] = '($E, $D) = (POP, POP)'; # pop |
405 |
|
|
$op[0xe1] = '($L, $H) = (POP, POP)'; # pop |
406 |
|
|
$op[0xf1] = '($x, $A) = (POP, POP); ($FS, $FZ, $FA, $FP, $FC) = (!!($x & 0x80), !!($x & 0x40), !!($x & 0x10), !!($x & 0x04), !!($x & 0x01))'; # pop psw |
407 |
|
|
|
408 |
|
|
$op[0xeb] = '($D, $E, $H, $L) = ($H, $L, $D, $E)'; # xchg |
409 |
|
|
|
410 |
|
|
$op[0xc2 + $_ * 8] = 'BRA IMM16 ' . $cc[$_] for 0..7; # jcc |
411 |
|
|
$op[0xc3] = 'JMP IMM16'; # jmp |
412 |
|
|
|
413 |
|
|
$op[0xc4 + $_ * 8] = '(PUSH PC >> 8), (PUSH PC & 0xff), (BRA IMM16) ' . $cc[$_] for 0..7; # ccc |
414 |
|
|
$op[0xcd] = '(PUSH PC >> 8), (PUSH PC & 0xff), (BRA IMM16)'; # call |
415 |
|
|
|
416 |
|
|
$op[0xc7 + $_ * 8] = "JMP $_ * 8" for 0..7; # rst |
417 |
|
|
|
418 |
|
|
$op[0xc0 + $_ * 8] = 'BRA POP + POP * 256 ' . $cc[$_] for 0..7; # rcc |
419 |
|
|
$op[0xc9] = 'JMP POP + POP * 256'; # ret |
420 |
|
|
|
421 |
|
|
$op[0xc5] = 'PUSH $B; PUSH $C'; |
422 |
|
|
$op[0xd5] = 'PUSH $D; PUSH $E'; |
423 |
|
|
$op[0xe5] = 'PUSH $H; PUSH $L'; |
424 |
|
|
$op[0xf5] = 'PUSH $A; PUSH +($FS && 0x80) | ($FZ && 0x40) | ($FA && 0x10) | ($FP && 0x04) | ($FC && 0x01)'; # psw |
425 |
|
|
|
426 |
|
|
$op[0xd3] = 'OUT'; # out |
427 |
|
|
$op[0xdb] = 'IN'; # in |
428 |
|
|
|
429 |
|
|
# e3 xthl @ 917b, hl <-> (sp) |
430 |
|
|
|
431 |
|
|
$op[0xe9] = 'JMP $H * 256 + $L'; # pchl |
432 |
|
|
|
433 |
|
|
$op[0xf3] = '$IFF = 0'; # DI |
434 |
|
|
$op[0xfb] = '$IFF = 1'; # EI |
435 |
|
|
|
436 |
|
|
@ops = @op; # for debugging #d# |
437 |
|
|
|
438 |
|
|
############################################################################# |
439 |
|
|
|
440 |
|
|
# print cpu status, for debugging |
441 |
|
|
sub status { |
442 |
|
|
my $PC = shift || $PC; |
443 |
|
|
|
444 |
|
|
printf "%04x/%04x A=%02x BC=%02x:%02x DE=%02x:%02x HL=%02x:%02x ZSCAP=%s: %02x %s\n", |
445 |
|
|
$PC, $SP, |
446 |
|
|
$A, $B, $C, $D, $E, $H, $L, |
447 |
|
|
($FZ ? "1" : "0") |
448 |
|
|
. ($FS ? "1" : "0") |
449 |
|
|
. ($FC ? "1" : "0") |
450 |
|
|
. ($FA ? "1" : "0") |
451 |
|
|
. ($FP ? "1" : "0"), |
452 |
|
|
$M[$PC], $ops[$M[$PC]]; |
453 |
|
|
} |
454 |
|
|
|
455 |
|
|
############################################################################# |
456 |
|
|
|
457 |
|
|
my @chr = ( |
458 |
|
|
" ", |
459 |
|
|
"\x{29eb}", |
460 |
|
|
"\x{2592}", |
461 |
|
|
"\x{2409}", |
462 |
|
|
"\x{240c}", |
463 |
|
|
"\x{240d}", |
464 |
|
|
"\x{240a}", |
465 |
|
|
"\x{00b0}", |
466 |
|
|
"\x{00b1}", |
467 |
|
|
"\x{2424}", |
468 |
|
|
"\x{240b}", |
469 |
|
|
"\x{2518}", |
470 |
|
|
"\x{2510}", |
471 |
|
|
"\x{250c}", |
472 |
|
|
"\x{2514}", |
473 |
|
|
"\x{253c}", |
474 |
|
|
"\x{23ba}", |
475 |
|
|
"\x{23bb}", |
476 |
|
|
"\x{2500}", |
477 |
|
|
"\x{23bc}", |
478 |
|
|
"\x{23bd}", |
479 |
|
|
"\x{251c}", |
480 |
|
|
"\x{2524}", |
481 |
|
|
"\x{2534}", |
482 |
|
|
"\x{252c}", |
483 |
|
|
"\x{2502}", |
484 |
|
|
"\x{2264}", |
485 |
|
|
"\x{2265}", |
486 |
|
|
"\x{03c0}", |
487 |
|
|
"\x{2260}", |
488 |
root |
1.2 |
"\x{00a3}", |
489 |
root |
1.1 |
"\x{00b7}", |
490 |
|
|
(map chr, 0x020 .. 0x7e), |
491 |
|
|
"?", |
492 |
|
|
); |
493 |
|
|
|
494 |
|
|
utf8::encode $_ for @chr; |
495 |
|
|
|
496 |
|
|
sub prscr { |
497 |
|
|
my $i = 0x2000; |
498 |
|
|
|
499 |
|
|
my $scr = sprintf "\x1b[H--- KBD %08b CLK %d PC %04x RST %03b IFF %01b PUS %02x IM %03b\x1b[K\n", $KSTATUS, $CLK, $PC, $RST, $IFF, $PUSARTCMD, $INTMASK; |
500 |
|
|
|
501 |
|
|
line: |
502 |
|
|
for my $y (0 .. 25) { |
503 |
|
|
$scr .= sprintf "%2d |", ++$y; |
504 |
|
|
|
505 |
|
|
for (0..140) { |
506 |
|
|
my $c = $M[$i++]; |
507 |
|
|
|
508 |
|
|
# printf "%04x %02x\n", $i-1,$c; |
509 |
|
|
|
510 |
|
|
if ($c == 0x7f) { # also 0xff, but the firmware avoids that |
511 |
|
|
$scr .= "|\x1b[K\n"; |
512 |
|
|
|
513 |
|
|
my $a1 = $M[$i++]; |
514 |
|
|
my $a0 = $M[$i++]; |
515 |
|
|
|
516 |
|
|
$i = 0x2000 + (($a1 * 256 + $a0) & 0xfff); |
517 |
|
|
|
518 |
|
|
next line; |
519 |
|
|
} |
520 |
|
|
|
521 |
|
|
$scr .= "\x1b[7m" if $c & 0x80; |
522 |
|
|
$scr .= $chr[$c & 0x7f] // sprintf "[%02x]", $c & 0x7f; |
523 |
|
|
$scr .= "\x1b[m" if $c & 0x80; |
524 |
|
|
} |
525 |
|
|
|
526 |
|
|
$scr .= "\x1b[K\noverflow\x1b[K\n"; |
527 |
|
|
last; |
528 |
|
|
} |
529 |
|
|
|
530 |
|
|
if (0) { |
531 |
|
|
$scr .= "\x1b[K\n"; |
532 |
|
|
for my $o (0x200 .. 0x232) { |
533 |
|
|
$scr .= sprintf "%04x:", $o * 16; |
534 |
|
|
for (0..15) { |
535 |
|
|
$scr .= sprintf " %02x", $M[$o * 16 + $_]; |
536 |
|
|
} |
537 |
|
|
$scr .= "\x1b[K\n"; |
538 |
|
|
} |
539 |
|
|
} |
540 |
|
|
|
541 |
|
|
$scr .= "\x1b[J"; |
542 |
|
|
|
543 |
|
|
syswrite STDOUT, $scr; |
544 |
|
|
} |
545 |
|
|
|
546 |
|
|
############################################################################# |
547 |
|
|
|
548 |
|
|
if (@ARGV) { |
549 |
|
|
require IO::Pty; |
550 |
|
|
$PTY = IO::Pty->new; |
551 |
|
|
|
552 |
|
|
my $slave = $PTY->slave; |
553 |
|
|
|
554 |
root |
1.3 |
$PTY->set_winsize (24, 80); |
555 |
|
|
|
556 |
root |
1.1 |
unless (fork) { |
557 |
|
|
$ENV{TERM} = $VT102 ? "vt102" : "vt100"; |
558 |
|
|
|
559 |
|
|
close $PTY; |
560 |
|
|
|
561 |
|
|
open STDIN , "<&", $slave; |
562 |
|
|
open STDOUT, ">&", $slave; |
563 |
|
|
open STDERR, ">&", $slave; |
564 |
|
|
|
565 |
root |
1.3 |
system "stty ixoff erase ^H"; |
566 |
|
|
|
567 |
|
|
$PTY->make_slave_controlling_terminal; |
568 |
|
|
$PTY->close_slave; |
569 |
root |
1.1 |
|
570 |
|
|
exec @ARGV; |
571 |
|
|
} |
572 |
|
|
|
573 |
root |
1.3 |
$PTY->close_slave; |
574 |
|
|
|
575 |
root |
1.1 |
} else { |
576 |
|
|
open $PTY, "</dev/null" or die;#d |
577 |
|
|
} |
578 |
|
|
|
579 |
|
|
############################################################################# |
580 |
|
|
|
581 |
|
|
# initial key input, to set up online mode etc. |
582 |
|
|
@KQUEUE = ( |
583 |
|
|
0x7b, -0x7b, # setup |
584 |
|
|
0, # delay |
585 |
|
|
0x28, -0x28, # 4, toggle local/online |
586 |
|
|
0x38, -0x38, # 5, setup b |
587 |
|
|
0, # delay |
588 |
|
|
(0x10, -0x10) x 2, # cursor right |
589 |
|
|
0x37, -0x37, # 6 toggle soft scroll |
590 |
|
|
(0x10, -0x10) x 1, # cursor right |
591 |
|
|
0x37, -0x37, # 6 toggle autorepeat off |
592 |
|
|
(0x10, -0x10) x 8, # cursor right |
593 |
|
|
0x37, -0x37, # 6 toggle keyclick |
594 |
|
|
(0x10, -0x10) x 1, # cursor right |
595 |
|
|
$VT102 ? () : (0x37, -0x37), # 6 toggle ansi/vt52 |
596 |
|
|
(0x10, -0x10) x 7, # cursor right |
597 |
|
|
0x37, -0x37, # 6 toggle wrap around |
598 |
|
|
0x7b, -0x7b, # leave setup |
599 |
|
|
); |
600 |
|
|
|
601 |
|
|
############################################################################# |
602 |
|
|
|
603 |
|
|
# 0x80 shift, 0x100 ctrl, 0x200 toggle |
604 |
|
|
my %KEYMAP = ( |
605 |
|
|
"\t" => 0x3a, |
606 |
|
|
"\r" => 0x64, |
607 |
|
|
"\n" => 0x44, |
608 |
|
|
|
609 |
|
|
# hardcoded rxvt keys |
610 |
|
|
"\e" => 0x2a, # ESC |
611 |
|
|
"\e[3~" => 0x03, # DC |
612 |
|
|
"\e[5~" => 0x7e, # CAPS LOCK (prior) |
613 |
|
|
"\e[6~" => 0x6a, # NO SCROLL (next) |
614 |
|
|
"\e[A" => 0x30, # UP |
615 |
|
|
"\e[B" => 0x22, # DOWN |
616 |
|
|
"\e[C" => 0x10, # RIGHT |
617 |
|
|
"\e[D" => 0x20, # LEFT |
618 |
|
|
"\e[a" => 0x30 | 0x080, # UP |
619 |
|
|
"\e[b" => 0x22 | 0x080, # DOWN |
620 |
|
|
"\e[c" => 0x10 | 0x080, # RIGHT |
621 |
|
|
"\e[d" => 0x20 | 0x080, # LEFT |
622 |
|
|
"\e[7~" => 0x7b, # SETUP (home) |
623 |
|
|
"\e[8~" => 0x23, # BREAK (end) |
624 |
|
|
"\e[8\$" => 0x23 | 0x080, # SHIFT BREAK / DISCONNECT (shift-end) |
625 |
|
|
"\x7f" => 0x33, # BACKSPACE |
626 |
|
|
|
627 |
|
|
"\e[11~" => 0x32, # F1 |
628 |
|
|
"\e[11~" => 0x42, # F2 |
629 |
|
|
"\e[11~" => 0x31, # F3 |
630 |
|
|
"\e[11~" => 0x41, # F4 |
631 |
|
|
); |
632 |
|
|
|
633 |
|
|
@KEYMAP{map chr, 0x20..0x40} = unpack "C*", pack "H*", |
634 |
|
|
"779ad5a9a8b8a755a6b5b6b466256575" . "351a3929283837273626d656e634e5f5" . "b9"; |
635 |
|
|
|
636 |
|
|
@KEYMAP{map chr, 0x5b .. 0x7e} = unpack "C*", pack "H*", |
637 |
|
|
"154514b7a5" . "244a6879591949485816574746766706" . "050a185a0817780969077a95c594a4"; |
638 |
|
|
|
639 |
|
|
$KEYMAP{"\x3f" & $_} ||= $KEYMAP{$_} | 0x100 for "a" .. "z"; # ctrl |
640 |
|
|
$KEYMAP{uc $_} ||= $KEYMAP{$_} | 0x080 for "a" .. "z"; # shift |
641 |
|
|
|
642 |
|
|
my $KEYMATCH = join "|", map quotemeta, reverse sort keys %KEYMAP; |
643 |
|
|
$KEYMATCH = qr{^($KEYMATCH)}s; |
644 |
|
|
|
645 |
|
|
sub key { |
646 |
|
|
my ($key) = @_; |
647 |
|
|
|
648 |
|
|
state %MOD; |
649 |
|
|
|
650 |
|
|
push @KQUEUE, -0x7c if !($key & 0x100) && delete $MOD{0x7c}; # ctrl-up |
651 |
|
|
push @KQUEUE, -0x7d if !($key & 0x080) && delete $MOD{0x7d}; # shift-up |
652 |
|
|
|
653 |
|
|
push @KQUEUE, 0x7c if $key & 0x100 && !$MOD{0x7c}++; # ctrl-down |
654 |
|
|
push @KQUEUE, 0x7d if $key & 0x080 && !$MOD{0x7d}++; # shift-down |
655 |
|
|
|
656 |
|
|
$key &= 0x7f; |
657 |
|
|
push @KQUEUE, $key, -$key; |
658 |
|
|
} |
659 |
|
|
|
660 |
|
|
my $STDIN_BUF; |
661 |
|
|
|
662 |
|
|
sub stdin_parse { |
663 |
|
|
key $KEYMAP{$1} |
664 |
|
|
while $STDIN_BUF =~ s/$KEYMATCH//; |
665 |
|
|
|
666 |
|
|
# skip input we can't decipher |
667 |
|
|
substr $STDIN_BUF, 0, 1, ""; |
668 |
|
|
} |
669 |
|
|
|
670 |
|
|
if ($KBD) { |
671 |
|
|
system "stty -icanon -icrnl -inlcr -echo min 1 time 0"; |
672 |
|
|
eval q{ sub END { system "stty sane" } }; |
673 |
|
|
$SIG{INT} = $SIG{TERM} = $SIG{QUIT} = sub { exit 1 }; |
674 |
|
|
} |
675 |
|
|
|
676 |
|
|
############################################################################# |
677 |
|
|
|
678 |
|
|
my @ICACHE; # compiled instruction cache |
679 |
|
|
|
680 |
|
|
# the cpu |
681 |
|
|
while () { |
682 |
|
|
|
683 |
|
|
# execute extended basic blocks |
684 |
|
|
$PC = ($ICACHE[$PC] ||= do { |
685 |
|
|
my $pc = $PC; |
686 |
|
|
|
687 |
|
|
my $insn = ""; |
688 |
|
|
|
689 |
|
|
# the jit compiler |
690 |
|
|
for (0..15) { |
691 |
|
|
|
692 |
|
|
# optional tracing support |
693 |
|
|
if (0) { |
694 |
|
|
$insn .= qq< |
695 |
|
|
if (\$PRSTATUS) { |
696 |
|
|
status $pc; |
697 |
|
|
die unless --\$PRSTATUS; |
698 |
|
|
} |
699 |
|
|
>; |
700 |
|
|
} |
701 |
|
|
|
702 |
|
|
my $imm; |
703 |
|
|
my $op = $op[$M[$pc++]]; |
704 |
|
|
|
705 |
|
|
for ($op) { |
706 |
|
|
s/\bPUSH\b/\$M[--\$SP] =/g; # push byte to stack |
707 |
|
|
s/\bPOP\b/\$M[\$SP++]/g; # pop byte from stack |
708 |
|
|
|
709 |
|
|
s/\bIMM16\b/$imm \/\/= $M[$pc++] + $M[$pc++] * 256/xge; # 16 bit insn immediate |
710 |
|
|
s/\bIMM8\b /$imm \/\/= $M[$pc++] /xge; # 8 bit insn immediate |
711 |
|
|
|
712 |
|
|
s/\bPC\b/$pc/ge; # PC at end of insn |
713 |
|
|
s/\bBRA\b/return/g; # conditional jump |
714 |
|
|
s/\bJMP\b(.*)/$1\x00/sg; # unconditional jump |
715 |
|
|
|
716 |
|
|
s/\bIN\b/ sprintf "\$A = in_%02x", $M[$pc++]/xge; |
717 |
|
|
s/\bOUT\b/sprintf "out_%02x \$A ", $M[$pc++]/xge; |
718 |
|
|
} |
719 |
|
|
|
720 |
|
|
$insn .= "$op;\n"; |
721 |
|
|
} |
722 |
|
|
|
723 |
|
|
|
724 |
|
|
$insn .= "$pc"; |
725 |
|
|
$insn =~ s/\x00.*$//s; |
726 |
|
|
|
727 |
|
|
eval "use integer; sub { $insn }" or die "$insn: $@" |
728 |
|
|
})->(); |
729 |
|
|
|
730 |
|
|
++$CLK; |
731 |
|
|
|
732 |
|
|
#TODO: just check on ret instructions or so |
733 |
|
|
# the interrupt logic |
734 |
|
|
$x = $INTPEND & ~$INTMASK; |
735 |
|
|
|
736 |
|
|
if (($RST || $x) && $IFF) { |
737 |
|
|
# rst 1 kbd data available |
738 |
|
|
# rst 2 pusart xmit+recv flag |
739 |
|
|
# rst 4 vertical retrace |
740 |
|
|
# 5.5 vt125 mb7 trans ready (serial send?) |
741 |
|
|
# 6.5 vt125 mb7 read ready (something modem?) |
742 |
|
|
# 7.5 vt125 mb7 vblank h(?) |
743 |
|
|
# trap vt125 mbi init h(?) |
744 |
|
|
my $vec; |
745 |
|
|
|
746 |
|
|
if ($x & 1) { $vec = 0x2c; $INTPEND &= ~1; |
747 |
|
|
} elsif ($x & 2) { $vec = 0x34; $INTPEND &= ~2; |
748 |
|
|
} elsif ($x & 4) { $vec = 0x3c; $INTPEND &= ~4; |
749 |
|
|
# } elsif ($RST ) { $vec = $RST * 8; $RST = 0; # for some reason, this breaks vt102 |
750 |
|
|
} elsif ($RST & 1) { $vec = 0x08; $RST &= ~1; # separate is better for vt102 |
751 |
|
|
} elsif ($RST & 2) { $vec = 0x10; $RST &= ~2; |
752 |
|
|
} elsif ($RST & 4) { $vec = 0x20; $RST &= ~4; |
753 |
|
|
} else { |
754 |
|
|
die; |
755 |
|
|
} |
756 |
|
|
|
757 |
|
|
$M[--$SP] = $PC >> 8; |
758 |
|
|
$M[--$SP] = $PC & 0xff; |
759 |
|
|
$PC = $vec; |
760 |
|
|
|
761 |
|
|
$IFF = 0; |
762 |
|
|
} |
763 |
|
|
|
764 |
|
|
# things we do from time too time only |
765 |
|
|
unless ($CLK & 0xf) { |
766 |
|
|
# do I/O |
767 |
|
|
|
768 |
|
|
unless ($CLK & 0x7ff) { |
769 |
|
|
|
770 |
|
|
# pty/serial I/O |
771 |
|
|
unless (@PUSARTRECV || @KQUEUE || !$PTY) { |
772 |
|
|
my $rin = ""; (vec $rin, fileno $PTY, 1) = 1; |
773 |
|
|
|
774 |
|
|
if (select $rin, undef, undef, 0) { |
775 |
|
|
sysread $PTY, my $buf, 256; |
776 |
|
|
push @PUSARTRECV, unpack "C*", $buf; |
777 |
|
|
} |
778 |
|
|
} |
779 |
|
|
|
780 |
|
|
# keyboard input |
781 |
|
|
if ($KBD) { |
782 |
|
|
while (select my $rin = "\x01", undef, undef, 0) { |
783 |
|
|
sysread STDIN, $STDIN_BUF, 1, length $STDIN_BUF |
784 |
|
|
or last; |
785 |
|
|
} |
786 |
|
|
|
787 |
|
|
stdin_parse if length $STDIN_BUF; |
788 |
|
|
} |
789 |
|
|
} |
790 |
|
|
|
791 |
|
|
# kick off various interrupts |
792 |
|
|
|
793 |
root |
1.3 |
$RST |= 2 if @PUSARTRECV && $XON; # VT100, but works on vt102, too (probably not used on real hardware though) |
794 |
|
|
#$INTPEND |= 2 if @PUSARTRECV && $XON; # VT102, 6.5 rxrdy |
795 |
root |
1.1 |
|
796 |
root |
1.3 |
# kick off vertical retrace form time to time |
797 |
root |
1.1 |
unless ($CLK & 0x3ff) { |
798 |
|
|
$RST |= 4; # vertical retrace |
799 |
|
|
} |
800 |
|
|
|
801 |
|
|
# handle video hardware |
802 |
|
|
|
803 |
|
|
unless ($CLK & 0x1fff) { |
804 |
|
|
prscr; |
805 |
|
|
} |
806 |
|
|
} |
807 |
|
|
} |
808 |
|
|
|
809 |
|
|
__DATA__ |
810 |
|
|
1N ; 0 >b/BWog<Gӂ,O $
O [ xI <ӂ,Bt @`+6 +|v #~ʐ |¡ 0ڡ q~ʨ |¡ 0Ҩ ,ڥ # yOt ͤ[ zW>/2!b>> >ӂx ӂ:h zW͢uۂG|g$>%
!h w-!h >-4!j pO:{ y:! u:x!_yA[>y
>yA[>?y@
:x!yA[P>>O[>>[Î:!ʵyA>>OlyAPÇ!:!S!h ~ ~ >%: O͓: Ô!20!2!!!yAG~"&=w< w:!/!!A:!Ey2!~1N ! ~eBi<2!͢:P =2S!~6ʘ!!6 |
811 |
|
|
2!0* w4ʘ> 2! ~î!N ̓/2!! "R !"" |
812 |
|
|
! ͋! 0 Ãppppp!"-!>52,!>2[ 2v!!"I!>2s >2 B>2y >2!2!&l" >@:X!:!͔>2!b:!K>G:| !p ^!p" :!x:! u> |
813 |
|
|
Ӣ:[!Ӣ:!cww#:!>>{́kB͈͇!w!~6 :!ʮ2D!î :O:!:8>'y7:!y !!>D! NDy<wG: 'qx<o61,@ 7~G>G>w70)1!2@3#4$5%6^7&8*9(-_=+`~[{]};:/?'",<.>\| poytwq ][iure1 `-9743=08652 Ѱ |
814 |
|
|
\lkgfa ';jhds
.,nbx /m vczN> Ӣ:e !Q >>2e 6 >2[ :V!>2[ :U!=/2z [ |
815 |
|
|
!Z 'wWӢzӢz>2e |
816 |
|
|
:V!8:U!=2z !x ~O52F!!,!~=i65>Ӣ!!~jӢw>@2H!! 4:!B:X!:!b:!!{ uG:{ x©:y xک ڲ*@!! |
817 |
|
|
2>2y |
818 |
|
|
G>xbO͈ByFsO! V#zozz2 V: Gzy_ Oz@y$#$: O:B!A! :S!A6 U * q|gpx2 ! q! :S!hy2 :!@m462B!:!
! ~#n& V! ~<w+@0§~z:h _!A{2g W !n ~!j #6
#{>2r !G:r < 2r :!@{:P!!_#!s 56:r y!n ~C#8vyj !n ~[ |
819 |
|
|
f#}rQ |
820 |
|
|
lNG:g x2g 2P!{j,C_:D!A{WW{!v_ Ny1 xpy{aOx0!K~###NxyA[? {AAO:!2T!S:P!!n A#!n ~8#+A:P!w>2r !h Vw#r#w#L:!@>2G!{*j:d:0!W:1!_>= zħ;>>ܧ>b>ܧz >oz2 QW>>Wʞ _{ |
821 |
|
|
>!_ ^#V 8 A
U U U K <2 :!*{!|!r!>w!r!~w!{!F#\!~0 #
$ !x ~w! ~562 6K :! K ! V:V!s Ϳxr6:!ʘ ͎>2!4:! 2 =2 2} 2!! |
822 |
|
|
0ҽ !} O~ʻ q2~ ! |
823 |
|
|
:} :! !P |
824 |
|
|
! |
825 |
|
|
G:! x( 2)1#!{ |
826 |
|
|
!:~ O#
|
827 |
|
|
## |
828 |
|
|
~#fo!"@!A |
829 |
|
|
B |
830 |
|
|
C |
831 |
|
|
D |
832 |
|
|
F |
833 |
|
|
GH |
834 |
|
|
IJ |
835 |
|
|
K |
836 |
|
|
YZ=>1W<]`
c ER M1W[ |
837 |
|
|
H
DU 7h8q=>ZNFOF 345J67`
8
!"@!>H2~ ! "0!! |
838 |
|
|
:} ! |
839 |
|
|
:!!0!:K!_ |
840 |
|
|
~! |
841 |
|
|
G :!# |
842 |
|
|
DBCHSArfSxyd cqn
JAKlmhg
!"@!G ڲ!Q!.! "@!~B6x 2R!!"@!6 x PO2 Ϳ:R!]2 |
843 |
|
|
62!ͭPLPÉ>2!ͭL2U!Ϳx2V!y2P BH>ê! :U!G~ʸ! 56:!͎>2!5:!2 -!x!6!x!6 !!~ w:!&&Hl" " 2 &&l" !E!x#~wG7)w:~ G!J##~ȸ9#~! 44AHB01 2 !y ~ |
844 |
|
|
6! |
845 |
|
|
!! w! !͋6!xʗ 2 ! ~w>õ:!»>õ>! w>2 :0!!r!~w>Ϳ
:! 6+6/6?#>1
BG/Oxy0w#6:!x!r!2
~w>Ϳ
:!x)
0w#6~w>Ϳ
: G:!J
:U!Ox<z
ͻ
: <z
6B͎> |