-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSamReciter.asm
4244 lines (4092 loc) · 138 KB
/
SamReciter.asm
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
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
.NOPATCHLIST
.TITLE "SOS SAM Driver -- 0.5 03-Oct-16"
;-----------------------------------------------------------------------
;
;
; SOS Software Automated Mouth (SAM) Driver
;
; Based on a disassembly of the AppleII SAM and Reciter programs
; Converted to work as a SOS Driver
; Uses Apple /// 6 bit DA converter for output
;
; Revisions:
;
; 0.1 22-May-16
; Initial version
;
; 0.2 27-May-16
; Add Pitch and Speed control
; If user sends in a seperate string:
; #P<decimal number> this will set the pitch. eg #P123
; #S<decimal number> this will set the speed. eg #S123
; range 0-255
;
; 0.3 29-May-16
; Add ability to read error code
; Return from single CR or LF directly (then does not affect error code)
;
; 0.4 01-Jun-16
; Add Reciter as a sub device
; 0.41 07-Jun-16
; Fix up shift right to convert to 6 bit.
; 0.42 07-Jun-16
; Set speed back to match original sam default. Now speech samples match
; A2 sam exactly. (after triming to 6 bits)
; 0.43 17-Jul-16
; Convert lowercase input to upper
; 0.5 02-Oct-16
; Add function to read the converted 'text to phoneme' string from reciter
; First read after a write will return the error code
; Second read after a write will return the converted string (phonemes)
;
;
;
;-----------------------------------------------------------------------
DEVTYPE .EQU 61 ;Character device, read/write, SAM
SUBTYPE .EQU 01
ROBJ .EQU 524A
RELEASE .EQU 0430
.PAGE
;-----------------------------------------------------------------------
;
; The macro SWITCH performs an N way branch based on a switch index. The
; maximum value of the switch index is 127 with bounds checking provided
; as an option. The macro uses the A and Y registers and alters the C,
; Z, and N flags of the status register, but the X register is unchanged.
;
; SWITCH [index], [bounds], adrs_table, [*]
;
; index This is the variable that is to be used as the switch index.
; If omitted, the value in the accumulator is used.
;
; bounds This is the maximum allowable value for index. If index
; exceeds this value, the carry bit will be set and execution
; will continue following the macro. If bounds is omitted,
; no bounds checking will be performed.
;
; adrs_table This is a table of addresses (low byte first) used by the
; switch. The first entry corresponds to index zero.
;
; * If an asterisk is supplied as the fourth parameter, the
; macro will push the switch address but will not exit to
; it; execution will continue following the macro. The
; program may then load registers or set the status before
; exiting to the switch address.
;
;-----------------------------------------------------------------------
.MACRO SWITCH
.IF "%1" <> "" ;If PARM1 is present,
LDA %1 ; Load A with switch index
.ENDC
.IF "%2" <> "" ;If PARM2 is present,
CMP #%2+1 ; Perform bounds checking
BCS $3579 ; on switch index
.ENDC
ASL A
TAY
LDA %3+1,Y ;Get switch address from table
PHA ; and push onto stack
LDA %3,Y
PHA
.IF "%4" <> "*" ;If PARM4 is omitted,
RTS ; Exit to code
.ENDC ;Otherwise, drop through
.IF "%2" <> ""
$3579
.ENDC
.ENDM
.PROC SAM
.WORD 0FFFF
.WORD 35. ;Length of comment field... entered manually.
.ASCII "SAM Speech Driver "
.ASCII "By Robert Justice"
; 1 2 3 4
; 1234567890123456789012345678901234567890
;
;-----------------------------------------------------------------------
;
; Device Handler Identification Block 0
;
;-----------------------------------------------------------------------
DIB0 .WORD DIB1 ;Link to next device handler
.WORD SAM_MAIN ;Entry point address
.BYTE 4 ;Length of device name
.ASCII ".SAM "
.BYTE 80 ;Device # (Mark active)
SLOT0 .BYTE 00 ;Slot # (not used)
.BYTE 00 ;Unit #
.BYTE DEVTYPE
.BYTE SUBTYPE
.BYTE 00
.WORD 0000
.WORD ROBJ
.WORD RELEASE
;-----------------------------------------------------------------------
;
; Device Handler Configuration Block 0
;
;-----------------------------------------------------------------------
.WORD 2
PITCH .BYTE 040 ;Pitch
SPEED .BYTE 048 ;Speed
.PAGE
;-----------------------------------------------------------------------
;
; Device Handler Identification Block 1
;
;-----------------------------------------------------------------------
DIB1 .WORD 0000 ;Link to next device handler
.WORD SAM_MAIN ;Entry point address
.BYTE 8 ;Length of device name
.ASCII ".RECITER " ;15 chars
.BYTE 80 ;Device # (Mark active)
SLOT1 .BYTE 00 ;Slot # of SAM card
.BYTE 01 ;Unit #
.BYTE DEVTYPE
.BYTE SUBTYPE
.BYTE 00
.WORD 0000
.WORD ROBJ
.WORD RELEASE
;-----------------------------------------------------------------------
;
; Device Handler Configuration Block 1
;
;-----------------------------------------------------------------------
.WORD 0
.PAGE
;-----------------------------------------------------------------------
;
; SOS Device Handler Interface
;
;-----------------------------------------------------------------------
SOSINT .EQU 0C0
REQCODE .EQU SOSINT+0 ;SOS request code
SOSUNIT .EQU SOSINT+1 ;Unit number
BUFFER .EQU SOSINT+2 ;Buffer pointer
REQCNT .EQU SOSINT+4 ;Requested count
CTLSTAT .EQU SOSINT+2 ;Control/status code
CSLIST .EQU SOSINT+3 ;Control/status list pointer
RTNCNT .EQU SOSINT+8 ;Actual Read count
;-----------------------------------------------------------------------
;
; SOS Global Subroutines
;
;-----------------------------------------------------------------------
ALLOCSIR .EQU 1913 ;SOS resource allocation
DEALCSIR .EQU 1916 ;SOS resource deallocation
SYSERR .EQU 1928 ;SOS error return
;-----------------------------------------------------------------------
;
; SOS Error Codes
;
;-----------------------------------------------------------------------
XREQCODE .EQU 20 ;Invalid request code
XCTLCODE .EQU 21 ;Invalid control/status code
XNOTOPEN .EQU 23 ;Device not open
XNOTAVIL .EQU 24 ;Device not available
XNORESRC .EQU 25 ;Resouce not available
XBADOP .EQU 26 ;Invalid operation for device
;-----------------------------------------------------------------------
;
; Misecllaneous Equates
;
;-----------------------------------------------------------------------
TRUE .EQU 80
FALSE .EQU 00
ASC_LF .EQU 0A
ASC_CR .EQU 0D
ASC_HASH .EQU 023
ASC_A .EQU 041
ASC_C .EQU 043
ASC_D .EQU 044
ASC_E .EQU 045
ASC_F .EQU 046
ASC_G .EQU 047
ASC_H .EQU 048
ASC_I .EQU 049
ASC_L .EQU 04C
ASC_N .EQU 04E
ASC_P .EQU 050
ASC_R .EQU 052
ASC_S .EQU 053
ASC_T .EQU 054
ASC_U .EQU 055
ASC_Y .EQU 059
BITON7 .EQU 80
BITOFF7 .EQU 7F
.PAGE
;
;Zeropage variables
;
L00E0 .EQU 000E0
L00E1 .EQU 000E1
L00E2 .EQU 000E2
L00E3 .EQU 000E3
L00E4 .EQU 000E4
L00E5 .EQU 000E5
L00E6 .EQU 000E6
L00E7 .EQU 000E7
L00E8 .EQU 000E8
L00E9 .EQU 000E9
L00EA .EQU 000EA
L00EB .EQU 000EB
L00EC .EQU 000EC
L00ED .EQU 000ED
L00EE .EQU 000EE
L00EF .EQU 000EF
L00F0 .EQU 000F0
L00F1 .EQU 000F1
L00F2 .EQU 000F2
L00F3 .EQU 000F3
L00F4 .EQU 000F4
L00F5 .EQU 000F5
L00F6 .EQU 000F6
L00F7 .EQU 000F7
L00F8 .EQU 000F8
L00F9 .EQU 000F9
L00FA .EQU 000FA
L00FB .EQU 000FB
L00FC .EQU 000FC
L00FD .EQU 000FD
L00FE .EQU 000FE
L00FF .EQU 000FF
;-----------------------------------------------------------------------
;
; Local Variables
;
;-----------------------------------------------------------------------
OPENFLG .BYTE FALSE ;Device 0 open flag
.BYTE FALSE ;Device 1 open flag
ERROR .BYTE 0FF ;output error code
INPUTBUF .BLOCK 0100
READNUM .BYTE 000 ;flag to determine number of reads after write, 0=none
;
;sinus table
;
SINET .BYTE 000,000,000,010,010,010,010,010
.BYTE 010,020,020,020,020,020,020,030
.BYTE 030,030,030,030,030,030,040,040
.BYTE 040,040,040,040,040,050,050,050
.BYTE 050,050,050,050,050,060,060,060
.BYTE 060,060,060,060,060,060,060,060
.BYTE 060,070,070,070,070,070,070,070
.BYTE 070,070,070,070,070,070,070,070
.BYTE 070,070,070,070,070,070,070,070
.BYTE 070,070,070,070,070,070,070,070
.BYTE 060,060,060,060,060,060,060,060
.BYTE 060,060,060,060,050,050,050,050
.BYTE 050,050,050,050,040,040,040,040
.BYTE 040,040,040,030,030,030,030,030
.BYTE 030,030,020,020,020,020,020,020
.BYTE 010,010,010,010,010,010,000,000
.BYTE 000,000,000,0F0,0F0,0F0,0F0,0F0
.BYTE 0F0,0E0,0E0,0E0,0E0,0E0,0E0,0D0
.BYTE 0D0,0D0,0D0,0D0,0D0,0D0,0C0,0C0
.BYTE 0C0,0C0,0C0,0C0,0C0,0B0,0B0,0B0
.BYTE 0B0,0B0,0B0,0B0,0B0,0A0,0A0,0A0
.BYTE 0A0,0A0,0A0,0A0,0A0,0A0,0A0,0A0
.BYTE 0A0,090,090,090,090,090,090,090
.BYTE 090,090,090,090,090,090,090,090
.BYTE 090,090,090,090,090,090,090,090
.BYTE 090,090,090,090,090,090,090,090
.BYTE 0A0,0A0,0A0,0A0,0A0,0A0,0A0,0A0
.BYTE 0A0,0A0,0A0,0A0,0B0,0B0,0B0,0B0
.BYTE 0B0,0B0,0B0,0B0,0C0,0C0,0C0,0C0
.BYTE 0C0,0C0,0C0,0D0,0D0,0D0,0D0,0D0
.BYTE 0D0,0D0,0E0,0E0,0E0,0E0,0E0,0E0
.BYTE 0F0,0F0,0F0,0F0,0F0,0F0,000,000
;
; rectangle table
;
RECTT .BYTE 090,090,090,090,090,090,090,090
.BYTE 090,090,090,090,090,090,090,090
.BYTE 090,090,090,090,090,090,090,090
.BYTE 090,090,090,090,090,090,090,090
.BYTE 090,090,090,090,090,090,090,090
.BYTE 090,090,090,090,090,090,090,090
.BYTE 090,090,090,090,090,090,090,090
.BYTE 090,090,090,090,090,090,090,090
.BYTE 090,090,090,090,090,090,090,090
.BYTE 090,090,090,090,090,090,090,090
.BYTE 090,090,090,090,090,090,090,090
.BYTE 090,090,090,090,090,090,090,090
.BYTE 090,090,090,090,090,090,090,090
.BYTE 090,090,090,090,090,090,090,090
.BYTE 090,090,090,090,090,090,090,090
.BYTE 090,090,090,090,090,090,090,090
.BYTE 070,070,070,070,070,070,070,070
.BYTE 070,070,070,070,070,070,070,070
.BYTE 070,070,070,070,070,070,070,070
.BYTE 070,070,070,070,070,070,070,070
.BYTE 070,070,070,070,070,070,070,070
.BYTE 070,070,070,070,070,070,070,070
.BYTE 070,070,070,070,070,070,070,070
.BYTE 070,070,070,070,070,070,070,070
.BYTE 070,070,070,070,070,070,070,070
.BYTE 070,070,070,070,070,070,070,070
.BYTE 070,070,070,070,070,070,070,070
.BYTE 070,070,070,070,070,070,070,070
.BYTE 070,070,070,070,070,070,070,070
.BYTE 070,070,070,070,070,070,070,070
.BYTE 070,070,070,070,070,070,070,070
.BYTE 070,070,070,070,070,070,070,070
;
; mult table
;
MULTT .BYTE 000,000,000,000,000,000,000,000
.BYTE 000,000,000,000,000,000,000,000
.BYTE 000,000,001,001,002,002,003,003
.BYTE 004,004,005,005,006,006,007,007
.BYTE 000,001,002,003,004,005,006,007
.BYTE 008,009,00A,00B,00C,00D,00E,00F
.BYTE 000,001,003,004,006,007,009,00A
.BYTE 00C,00D,00F,010,012,013,015,016
.BYTE 000,002,004,006,008,00A,00C,00E
.BYTE 010,012,014,016,018,01A,01C,01E
.BYTE 000,002,005,007,00A,00C,00F,011
.BYTE 014,016,019,01B,01E,020,023,025
.BYTE 000,003,006,009,00C,00F,012,015
.BYTE 018,01B,01E,021,024,027,02A,02D
.BYTE 000,003,007,00A,00E,011,015,018
.BYTE 01C,01F,023,026,02A,02D,031,034
.BYTE 000,0FC,0F8,0F4,0F0,0EC,0E8,0E4
.BYTE 0E0,0DC,0D8,0D4,0D0,0CC,0C8,0C4
.BYTE 000,0FC,0F9,0F5,0F2,0EE,0EB,0E7
.BYTE 0E4,0E0,0DD,0D9,0D6,0D2,0CF,0CB
.BYTE 000,0FD,0FA,0F7,0F4,0F1,0EE,0EB
.BYTE 0E8,0E5,0E2,0DF,0DC,0D9,0D6,0D3
.BYTE 000,0FD,0FB,0F8,0F6,0F3,0F1,0EE
.BYTE 0EC,0E9,0E7,0E4,0E2,0DF,0DD,0DA
.BYTE 000,0FE,0FC,0FA,0F8,0F6,0F4,0F2
.BYTE 0F0,0EE,0EC,0EA,0E8,0E6,0E4,0E2
.BYTE 000,0FE,0FD,0FB,0FA,0F8,0F7,0F5
.BYTE 0F4,0F2,0F1,0EF,0EE,0EC,0EB,0E9
.BYTE 000,0FF,0FE,0FD,0FC,0FB,0FA,0F9
.BYTE 0F8,0F7,0F6,0F5,0F4,0F3,0F2,0F1
.BYTE 000,0FF,0FF,0FE,0FE,0FD,0FD,0FC
.BYTE 0FC,0FB,0FB,0FA,0FA,0F9,0F9,0F8
;
; Buffers
;
BUFFER1 .BLOCK 0100
BUFFER2 .BLOCK 0100
BUFFER3 .BLOCK 0100
BUFFER4 .BLOCK 0100
BUFFER5 .BLOCK 0100
BUFFER6 .BLOCK 0100
BUFFER7 .BLOCK 0100
BUFFER8 .BLOCK 0100
;Frequency 1 table
FREQ1T .BYTE 000,013,013,013,013,00A,00E,013
.BYTE 018,01B,017,015,010,014,00E,012
.BYTE 00E,012,012,010,00D,00F,00B,012
.BYTE 00E,00B,009,006,006,006,006,011
.BYTE 006,006,006,006,00E,010,009,00A
.BYTE 008,00A,006,006,006,005,006,000
.BYTE 013,01B,015,01B,012,00D,006,006
.BYTE 006,006,006,006,006,006,006,006
.BYTE 006,006,006,006,006,006,006,006
.BYTE 006,00A,00A,006,006,006,02C,013
;Frequency 2 table
FREQ2T .BYTE 000,043,043,043,043,054,049,043
.BYTE 03F,028,02C,01F,025,02C,049,031
.BYTE 024,01E,033,025,01D,045,018,032
.BYTE 01E,018,053,02E,036,056,036,043
.BYTE 049,04F,01A,042,049,025,033,042
.BYTE 028,02F,04F,04F,042,04F,06E,000
.BYTE 048,027,01F,02B,01E,022,01A,01A
.BYTE 01A,042,042,042,06E,06E,06E,054
.BYTE 054,054,01A,01A,01A,042,042,042
.BYTE 06D,056,06D,054,054,054,07F,07F
;Frequency 3 table
FREQ3T .BYTE 000,05B,05B,05B,05B,06E,05D,05B
.BYTE 058,059,057,058,052,057,05D,03E
.BYTE 052,058,03E,06E,050,05D,05A,03C
.BYTE 06E,05A,06E,051,079,065,079,05B
.BYTE 063,06A,051,079,05D,052,05D,067
.BYTE 04C,05D,065,065,079,065,079,000
.BYTE 05A,058,058,058,058,052,051,051
.BYTE 051,079,079,079,070,06E,06E,05E
.BYTE 05E,05E,051,051,051,079,079,079
.BYTE 065,065,070,05E,05E,05E,008,001
;amplitude1 table
AMPL1T .BYTE 000,000,000,000,000,00D,00D,00E
.BYTE 00F,00F,00F,00F,00F,00E,00D,00C
.BYTE 00F,00F,00D,00D,00D,00E,00D,00C
.BYTE 00D,00D,00D,00C,009,009,000,000
.BYTE 000,000,000,000,000,000,00B,00B
.BYTE 00B,00B,000,000,001,00B,000,002
.BYTE 00E,00F,00F,00F,00F,00D,002,004
.BYTE 000,002,004,000,001,004,000,001
.BYTE 004,000,000,000,000,000,000,000
.BYTE 000,00C,000,000,000,000,00F,00F
;amplitude2 table
AMPL2T .BYTE 000,000,000,000,000,00A,00B,00D
.BYTE 00E,00D,00C,00C,00B,00B,00B,00B
.BYTE 00C,00C,00C,008,008,00C,008,00A
.BYTE 008,008,00A,003,009,006,000,000
.BYTE 000,000,000,000,000,000,003,005
.BYTE 003,004,000,000,000,005,00A,002
.BYTE 00E,00D,00C,00D,00C,008,000,001
.BYTE 000,000,001,000,000,001,000,000
.BYTE 001,000,000,000,000,000,000,000
.BYTE 000,00A,000,000,00A,000,000,000
;amplitude3 table
AMPL3T .BYTE 000,000,000,000,000,008,007,008
.BYTE 008,001,001,000,001,000,007,005
.BYTE 001,000,006,001,000,007,000,005
.BYTE 001,000,008,000,000,003,000,000
.BYTE 000,000,000,000,000,000,000,001
.BYTE 000,000,000,000,000,001,00E,001
.BYTE 009,001,000,001,000,000,000,000
.BYTE 000,000,000,000,000,000,000,000
.BYTE 000,000,000,000,000,000,000,000
.BYTE 000,007,000,000,005,000,013,010
;Phoneme Stressed Length Table
PHOSTRLT .BYTE 000,012,012,012,008,00B,009,00B
.BYTE 00E,00F,00B,010,00C,006,006,00E
.BYTE 00C,00E,00C,00B,008,008,00B,00A
.BYTE 009,008,008,008,008,008,003,005
.BYTE 002,002,002,002,002,002,006,006
.BYTE 008,006,006,002,009,004,002,001
.BYTE 00E,00F,00F,00F,00E,00E,008,002
.BYTE 002,007,002,001,007,002,002,007
.BYTE 002,002,008,002,002,006,002,002
.BYTE 007,002,004,007,001,004,005,005
;Phoneme Length Table
PHONLENT .BYTE 000,012,012,012,008,008,008,008
.BYTE 008,00B,006,00C,00A,005,005,00B
.BYTE 00A,00A,00A,009,008,007,009,007
.BYTE 006,008,006,007,007,007,002,005
.BYTE 002,002,002,002,002,002,006,006
.BYTE 007,006,006,002,008,003,001,01E
.BYTE 00D,00C,00C,00C,00E,009,006,001
.BYTE 002,005,001,001,006,001,002,006
.BYTE 001,002,008,002,002,004,002,002
.BYTE 006,001,004,006,001,004,0C7,0FF
; Number of frames at the end of a phoneme devoted to
; interpolating to next phoneme's final value
OUTBLENT .BYTE 000,002,002,002,002,004,004,004
.BYTE 004,004,004,004,004,004,004,004
.BYTE 004,004,003,002,004,004,002,002
.BYTE 002,002,002,001,001,001,001,001
.BYTE 001,001,001,001,001,001,002,002
.BYTE 002,001,000,001,000,001,000,005
.BYTE 005,005,005,005,004,004,002,000
.BYTE 001,002,000,001,002,000,001,002
.BYTE 000,001,002,000,002,002,000,001
.BYTE 003,000,002,003,000,002,0A0,0A0
; Number of frames at beginning of a phoneme devoted
; to interpolating to phoneme's final value
INBLENDT .BYTE 000,002,002,002,002,004,004,004
.BYTE 004,004,004,004,004,004,004,004
.BYTE 004,004,003,003,004,004,003,003
.BYTE 003,003,003,001,002,003,002,001
.BYTE 003,003,003,003,001,001,003,003
.BYTE 003,002,002,003,002,003,000,000
.BYTE 005,005,005,005,004,004,002,000
.BYTE 002,002,000,003,002,000,004,002
.BYTE 000,003,002,000,002,002,000,002
.BYTE 003,000,003,003,000,003,0B0,0A0
; Used to decide which phoneme's blend lengths.
; The candidate with the lower score is selected.
BLENRNKT .BYTE 000,01F,01F,01F,01F,002,002,002
.BYTE 002,002,002,002,002,002,005,005
.BYTE 002,00A,002,008,005,005,00B,00A
.BYTE 009,008,008,0A0,008,008,017,01F
.BYTE 012,012,012,012,01E,01E,014,014
.BYTE 014,014,017,017,01A,01A,01D,01D
.BYTE 002,002,002,002,002,002,01A,01D
.BYTE 01B,01A,01D,01B,01A,01D,01B,01A
.BYTE 01D,01B,017,01D,017,017,01D,017
.BYTE 017,01D,017,017,01D,017,017,017
;sampledConsonantFlags table
SAMCONST .BYTE 000,000,000,000,000,000,000,000
.BYTE 000,000,000,000,000,000,000,000
.BYTE 000,000,000,000,000,000,000,000
.BYTE 000,000,000,000,000,000,000,000
.BYTE 0F1,0E2,0D3,0BB,07C,095,001,002
.BYTE 003,003,000,072,000,002,000,000
.BYTE 000,000,000,000,000,000,000,000
.BYTE 000,000,000,000,000,000,000,000
.BYTE 000,000,000,01B,000,000,019,000
.BYTE 000,000,000,000,000,000,000,000
;sample data?
SAMPLDAT .BYTE 038,084,06B,019,0C6,063,018,086
.BYTE 073,098,0C6,0B1,01C,0CA,031,08C
.BYTE 0C7,031,088,0C2,030,098,046,031
.BYTE 018,0C6,035,00C,0CA,031,00C,0C6
.BYTE 021,010,024,069,012,0C2,031,014
.BYTE 0C4,071,008,04A,022,049,0AB,06A
.BYTE 0A8,0AC,049,051,032,0D5,052,088
.BYTE 093,06C,094,022,015,054,0D2,025
.BYTE 096,0D4,050,0A5,046,021,008,085
.BYTE 06B,018,0C4,063,010,0CE,06B,018
.BYTE 08C,071,019,08C,063,035,00C,0C6
.BYTE 033,099,0CC,06C,0B5,04E,0A2,099
.BYTE 046,021,028,082,095,02E,0E3,030
.BYTE 09C,0C5,030,09C,0A2,0B1,09C,067
.BYTE 031,088,066,059,02C,053,018,084
.BYTE 067,050,0CA,0E3,00A,0AC,0AB,030
.BYTE 0AC,062,030,08C,063,010,094,062
.BYTE 0B1,08C,082,028,096,033,098,0D6
.BYTE 0B5,04C,062,029,0A5,04A,0B5,09C
.BYTE 0C6,031,014,0D6,038,09C,04B,0B4
.BYTE 086,065,018,0AE,067,01C,0A6,063
.BYTE 019,096,023,019,084,013,008,0A6
.BYTE 052,0AC,0CA,022,089,06E,0AB,019
.BYTE 08C,062,034,0C4,062,019,086,063
.BYTE 018,0C4,023,058,0D6,0A3,050,042
.BYTE 054,04A,0AD,04A,025,011,06B,064
.BYTE 089,04A,063,039,08A,023,031,02A
.BYTE 0EA,0A2,0A9,044,0C5,012,0CD,042
.BYTE 034,08C,062,018,08C,063,011,048
.BYTE 066,031,09D,044,033,01D,046,031
.BYTE 09C,0C6,0B1,00C,0CD,032,088,0C4
.BYTE 073,018,086,073,008,0D6,063,058
.BYTE 007,081,0E0,0F0,03C,007,087,090
.BYTE 03C,07C,00F,0C7,0C0,0C0,0F0,07C
.BYTE 01E,007,080,080,000,01C,078,070
.BYTE 0F1,0C7,01F,0C0,00C,0FE,01C,01F
.BYTE 01F,00E,00A,07A,0C0,071,0F2,083
.BYTE 08F,003,00F,00F,00C,000,079,0F8
.BYTE 061,0E0,043,00F,083,0E7,018,0F9
.BYTE 0C1,013,0DA,0E9,063,08F,00F,083
.BYTE 083,087,0C3,01F,03C,070,0F0,0E1
.BYTE 0E1,0E3,087,0B8,071,00E,020,0E3
.BYTE 08D,048,078,01C,093,087,030,0E1
.BYTE 0C1,0C1,0E4,078,021,083,083,0C3
.BYTE 087,006,039,0E5,0C3,087,007,00E
.BYTE 01C,01C,070,0F4,071,09C,060,036
.BYTE 032,0C3,01E,03C,0F3,08F,00E,03C
.BYTE 070,0E3,0C7,08F,00F,00F,00E,03C
.BYTE 078,0F0,0E3,087,006,0F0,0E3,007
.BYTE 0C1,099,087,00F,018,078,070,070
.BYTE 0FC,0F3,010,0B1,08C,08C,031,07C
.BYTE 070,0E1,086,03C,064,06C,0B0,0E1
.BYTE 0E3,00F,023,08F,00F,01E,03E,038
.BYTE 03C,038,07B,08F,007,00E,03C,0F4
.BYTE 017,01E,03C,078,0F2,09E,072,049
.BYTE 0E3,025,036,038,058,039,0E2,0DE
.BYTE 03C,078,078,0E1,0C7,061,0E1,0E1
.BYTE 0B0,0F0,0F0,0C3,0C7,00E,038,0C0
.BYTE 0F0,0CE,073,073,018,034,0B0,0E1
.BYTE 0C7,08E,01C,03C,0F8,038,0F0,0E1
.BYTE 0C1,08B,086,08F,01C,078,070,0F0
.BYTE 078,0AC,0B1,08F,039,031,0DB,038
.BYTE 061,0C3,00E,00E,038,078,073,017
.BYTE 01E,039,01E,038,064,0E1,0F1,0C1
.BYTE 04E,00F,040,0A2,002,0C5,08F,081
.BYTE 0A1,0FC,012,008,064,0E0,03C,022
.BYTE 0E0,045,007,08E,00C,032,090,0F0
.BYTE 01F,020,049,0E0,0F8,00C,060,0F0
.BYTE 017,01A,041,0AA,0A4,0D0,08D,012
.BYTE 082,01E,01E,003,0F8,03E,003,00C
.BYTE 073,080,070,044,026,003,024,0E1
.BYTE 03E,004,04E,004,01C,0C1,009,0CC
.BYTE 09E,090,021,007,090,043,064,0C0
.BYTE 00F,0C6,090,09C,0C1,05B,003,0E2
.BYTE 01D,081,0E0,05E,01D,003,084,0B8
.BYTE 02C,00F,080,0B1,083,0E0,030,041
.BYTE 01E,043,089,083,050,0FC,024,02E
.BYTE 013,083,0F1,07C,04C,02C,0C9,00D
.BYTE 083,0B0,0B5,082,0E4,0E8,006,09C
.BYTE 007,0A0,099,01D,007,03E,082,08F
.BYTE 070,030,074,040,0CA,010,0E4,0E8
.BYTE 00F,092,014,03F,006,0F8,084,088
.BYTE 043,081,00A,034,039,041,0C6,0E3
.BYTE 01C,047,003,0B0,0B8,013,00A,0C2
.BYTE 064,0F8,018,0F9,060,0B3,0C0,065
.BYTE 020,060,0A6,08C,0C3,081,020,030
.BYTE 026,01E,01C,038,0D3,001,0B0,026
.BYTE 040,0F4,00B,0C3,042,01F,085,032
.BYTE 026,060,040,0C9,0CB,001,0EC,011
.BYTE 028,040,0FA,004,034,0E0,070,04C
.BYTE 08C,01D,007,069,003,016,0C8,004
.BYTE 023,0E8,0C6,09A,00B,01A,003,0E0
.BYTE 076,006,005,0CF,01E,0BC,058,031
.BYTE 071,066,000,0F8,03F,004,0FC,00C
.BYTE 074,027,08A,080,071,0C2,03A,026
.BYTE 006,0C0,01F,005,00F,098,040,0AE
.BYTE 001,07F,0C0,007,0FF,000,00E,0FE
.BYTE 000,003,0DF,080,003,0EF,080,01B
.BYTE 0F1,0C2,000,0E7,0E0,018,0FC,0E0
.BYTE 021,0FC,080,03C,0FC,040,00E,07E
.BYTE 000,03F,03E,000,00F,0FE,000,01F
.BYTE 0FF,000,03E,0F0,007,0FC,000,07E
.BYTE 010,03F,0FF,000,03F,038,00E,07C
.BYTE 001,087,00C,0FC,0C7,000,03E,004
.BYTE 00F,03E,01F,00F,00F,01F,00F,002
.BYTE 083,087,0CF,003,087,00F,03F,0C0
.BYTE 007,09E,060,03F,0C0,003,0FE,000
.BYTE 03F,0E0,077,0E1,0C0,0FE,0E0,0C3
.BYTE 0E0,001,0DF,0F8,003,007,000,07E
.BYTE 070,000,07C,038,018,0FE,00C,01E
.BYTE 078,01C,07C,03E,00E,01F,01E,01E
.BYTE 03E,000,07F,083,007,0DB,087,083
.BYTE 007,0C7,007,010,071,0FF,000,03F
.BYTE 0E2,001,0E0,0C1,0C3,0E1,000,07F
.BYTE 0C0,005,0F0,020,0F8,0F0,070,0FE
.BYTE 078,079,0F8,002,03F,00C,08F,003
.BYTE 00F,09F,0E0,0C1,0C7,087,003,0C3
.BYTE 0C3,0B0,0E1,0E1,0C1,0E3,0E0,071
.BYTE 0F0,000,0FC,070,07C,00C,03E,038
.BYTE 00E,01C,070,0C3,0C7,003,081,0C1
.BYTE 0C7,0E7,000,00F,0C7,087,019,009
.BYTE 0EF,0C4,033,0E0,0C1,0FC,0F8,070
.BYTE 0F0,078,0F8,0F0,061,0C7,000,01F
.BYTE 0F8,001,07C,0F8,0F0,078,070,03C
.BYTE 07C,0CE,00E,021,083,0CF,008,007
.BYTE 08F,008,0C1,087,08F,080,0C7,0E3
.BYTE 000,007,0F8,0E0,0EF,000,039,0F7
.BYTE 080,00E,0F8,0E1,0E3,0F8,021,09F
.BYTE 0C0,0FF,003,0F8,007,0C0,01F,0F8
.BYTE 0C4,004,0FC,0C4,0C1,0BC,087,0F0
.BYTE 00F,0C0,07F,005,0E0,025,0EC,0C0
.BYTE 03E,084,047,0F0,08E,003,0F8,003
.BYTE 0FB,0C0,019,0F8,007,09C,00C,017
.BYTE 0F8,007,0E0,01F,0A1,0FC,00F,0FC
.BYTE 001,0F0,03F,000,0FE,003,0F0,01F
.BYTE 000,0FD,000,0FF,088,00D,0F9,001
.BYTE 0FF,000,070,007,0C0,03E,042,0F3
.BYTE 00D,0C4,07F,080,0FC,007,0F0,05E
.BYTE 0C0,03F,000,078,03F,081,0FF,001
.BYTE 0F8,001,0C3,0E8,00C,0E4,064,08F
.BYTE 0E4,00F,0F0,007,0F0,0C2,01F,000
.BYTE 07F,0C0,06F,080,07E,003,0F8,007
.BYTE 0F0,03F,0C0,078,00F,082,007,0FE
.BYTE 022,077,070,002,076,003,0FE,000
.BYTE 0FE,067,000,07C,0C7,0F1,08E,0C6
.BYTE 03B,0E0,03F,084,0F3,019,0D8,003
.BYTE 099,0FC,009,0B8,00F,0F8,000,09D
.BYTE 024,061,0F9,00D,000,0FD,003,0F0
.BYTE 01F,090,03F,001,0F8,01F,0D0,00F
.BYTE 0F8,037,001,0F8,007,0F0,00F,0C0
.BYTE 03F,000,0FE,003,0F8,00F,0C0,03F
.BYTE 000,0FA,003,0F0,00F,080,0FF,001
.BYTE 0B8,007,0F0,001,0FC,001,0BC,080
.BYTE 013,01E,000,07F,0E1,040,07F,0A0
.BYTE 07F,0B0,000,03F,0C0,01F,0C0,038
.BYTE 00F,0F0,01F,080,0FF,001,0FC,003
.BYTE 0F1,07E,001,0FE,001,0F0,0FF,000
.BYTE 07F,0C0,01D,007,0F0,00F,0C0,07E
.BYTE 006,0E0,007,0E0,00F,0F8,006,0C1
.BYTE 0FE,001,0FC,003,0E0,00F,000,0FC
;
; more buffers..
L8521 .BLOCK 03C
L855D .BLOCK 03C
L8599 .BLOCK 03C
;
PHOINDEX .BLOCK 0100
L8AC4 .EQU PHOINDEX+254
PHOLENGT .BLOCK 0100
PHOSTRES .BLOCK 0100
;amplitudeRescale
L85FD .BYTE 000,001,002,002,002,003,003,004
.BYTE 004,005,006,008,009,00B,00D,00F
L860D .BYTE 000,000,0E0,0E6,0EC,0F3,0F9,000
.BYTE 006,00C,006
L89C1 .BYTE 080,0A4,070,070,06C
;stressInputTable
;
STRESINT .ASCII "*12345678"
;signInputTable1
FICHRTAB:
.ASCII " "
.ASCII "."
.ASCII "?"
.ASCII ","
.ASCII "-"
.ASCII "I"
.ASCII "I"
.ASCII "E"
.ASCII "A"
.ASCII "A"
.ASCII "A"
.ASCII "A"
.ASCII "U"
.ASCII "A"
.ASCII "I"
.ASCII "E"
.ASCII "U"
.ASCII "O"
.ASCII "R"
.ASCII "L"
.ASCII "W"
.ASCII "Y"
.ASCII "W"
.ASCII "R"
.ASCII "L"
.ASCII "W"
.ASCII "Y"
.ASCII "M"
.ASCII "N"
.ASCII "N"
.ASCII "D"
.ASCII "Q"
.ASCII "S"
.ASCII "S"
.ASCII "F"
.ASCII "T"
.ASCII "/"
.ASCII "/"
.ASCII "Z"
.ASCII "Z"
.ASCII "V"
.ASCII "D"
.ASCII "C"
.ASCII "*"
.ASCII "J"
.ASCII "*"
.ASCII "*"
.ASCII "*"
.ASCII "E"
.ASCII "A"
.ASCII "O"
.ASCII "A"
.ASCII "O"
.ASCII "U"
.ASCII "B"
.ASCII "*"
.ASCII "*"
.ASCII "D"
.ASCII "*"
.ASCII "*"
.ASCII "G"
.ASCII "*"
.ASCII "*"
.ASCII "G"
.ASCII "*"
.ASCII "*"
.ASCII "P"
.ASCII "*"
.ASCII "*"
.ASCII "T"
.ASCII "*"
.ASCII "*"
.ASCII "K"
.ASCII "*"
.ASCII "*"
.ASCII "K"
.ASCII "*"
.ASCII "*"
.ASCII "U"
.ASCII "U"
.ASCII "U"
;signInputTable2
SECHRTAB:
.ASCII "*"
.ASCII "*"
.ASCII "*"
.ASCII "*"
.ASCII "*"
.ASCII "Y"
.ASCII "H"
.ASCII "H"
.ASCII "E"
.ASCII "A"
.ASCII "H"
.ASCII "O"
.ASCII "H"
.ASCII "X"
.ASCII "X"
.ASCII "R"
.ASCII "X"
.ASCII "H"
.ASCII "X"
.ASCII "X"
.ASCII "X"
.ASCII "X"
.ASCII "H"
.ASCII "*"
.ASCII "*"
.ASCII "*"
.ASCII "*"
.ASCII "*"
.ASCII "*"
.ASCII "X"
.ASCII "X"
.ASCII "*"
.ASCII "*"
.ASCII "H"
.ASCII "*"
.ASCII "H"
.ASCII "H"
.ASCII "X"
.ASCII "*"
.ASCII "H"
.ASCII "*"
.ASCII "H"
.ASCII "H"
.ASCII "*"
.ASCII "*"
.ASCII "*"
.ASCII "*"
.ASCII "*"
.ASCII "Y"
.ASCII "Y"
.ASCII "Y"
.ASCII "W"
.ASCII "W"
.ASCII "W"
.ASCII "*"
.ASCII "*"
.ASCII "*"
.ASCII "*"
.ASCII "*"
.ASCII "*"
.ASCII "*"
.ASCII "*"
.ASCII "*"
.ASCII "X"
.ASCII "*"
.ASCII "*"
.ASCII "*"
.ASCII "*"
.ASCII "*"
.ASCII "*"
.ASCII "*"
.ASCII "*"
.ASCII "*"
.ASCII "*"
.ASCII "*"
.ASCII "X"
.ASCII "*"
.ASCII "*"
.ASCII "L"
.ASCII "M"
.ASCII "N"
;
;flags
;
L8D72 .BYTE 000
.BYTE 000
.BYTE 000
.BYTE 000
.BYTE 000
.BYTE 0A4
.BYTE 0A4
.BYTE 0A4
.BYTE 0A4
.BYTE 0A4
.BYTE 0A4
.BYTE 084
.BYTE 084
.BYTE 0A4
.BYTE 0A4
.BYTE 084
.BYTE 084
.BYTE 084
.BYTE 084
.BYTE 084
.BYTE 084
.BYTE 084
.BYTE 044
.BYTE 044
.BYTE 044
.BYTE 044
.BYTE 044
.BYTE 04C
.BYTE 04C
.BYTE 04C
.BYTE 048
.BYTE 04C
.BYTE 040
.BYTE 040
.BYTE 040
.BYTE 040
.BYTE 040
.BYTE 040
.BYTE 044
.BYTE 044
.BYTE 044
.BYTE 044
.BYTE 048
.BYTE 040
.BYTE 04C
.BYTE 044
.BYTE 000
.BYTE 000
.BYTE 0B4
.BYTE 0B4
.BYTE 0B4
.BYTE 094
.BYTE 094
.BYTE 094
.BYTE 04E
.BYTE 04E
.BYTE 04E
.BYTE 04E
.BYTE 04E
.BYTE 04E
.BYTE 04E
.BYTE 04E
.BYTE 04E
.BYTE 04E
.BYTE 04E
.BYTE 04E
.BYTE 04B
.BYTE 04B
.BYTE 04B
.BYTE 04B
.BYTE 04B
.BYTE 04B
.BYTE 04B
.BYTE 04B
.BYTE 04B
.BYTE 04B
.BYTE 04B