File: vice_6.html

package info (click to toggle)
vice 1.19-1etch1
  • links: PTS
  • area: contrib
  • in suites: etch
  • size: 27,132 kB
  • ctags: 33,406
  • sloc: ansic: 257,145; cpp: 13,395; sh: 3,674; makefile: 3,380; perl: 1,801; yacc: 622; lex: 258; asm: 4
file content (1897 lines) | stat: -rw-r--r-- 52,870 bytes parent folder | download | duplicates (2)
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
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
<HTML>
<HEAD>
<!-- This HTML file has been created by texi2html 1.52
     from ../vice.texi on 7 January 2006 -->

<TITLE>VICE Manual - 6  Settings and resources</TITLE>
</HEAD>
<BODY>
Go to the <A HREF="vice_1.html">first</A>, <A HREF="vice_5.html">previous</A>, <A HREF="vice_7.html">next</A>, <A HREF="vice_16.html">last</A> section, <A HREF="vice_toc.html">table of contents</A>.
<P><HR><P>


<H1><A NAME="SEC39" HREF="vice_toc.html#TOC39">6  Settings and resources</A></H1>

<P>
In the VICE emulators, all the settings are stored in entities known as
called <EM>resources</EM>.  Each resource has a name and a value which may
be either an integer or a string.  Integer values are often used as
boolean values with the usual convention of using zero for "false"
and any other value for "true".

</P>
<P>
Resource values can be changed via the right-button menu (the
<EM>settings</EM> menu), via command-line options or via the <EM>resource
file</EM>.

</P>
<P>
The <EM>resource file</EM> is a human-readable file containing resource
values: it is called <TT>`vicerc'</TT> and is stored in the directory 
<TT>`.vice/'</TT> in the user's home
directory.  It is possible to dump the current values of the resources
into that file or load the values stored into that file as the current
values, at any time.  This is achieved with the "Save settings" and
"Load settings" right menu items.  A third menu item, "Restore
Default Settings", can be used to reset all the values to the factory
defaults.

</P>
<P>
A special resource, <CODE>SaveResourcesOnExit</CODE>, if set to a non zero
value, causes the emulator to ask you if you want to save the current
(changed) settings before exiting, and can be toggled with the "Save
settings on exit" command from the right-button menu.

</P>
<P>
Notice that not all the resources can be changed from the menus; some of
them can only be changed by manually modifying the resource file or by
using command-line options.

</P>



<H2><A NAME="SEC40" HREF="vice_toc.html#TOC40">6.1  Format of resource files</A></H2>

<P>
A resource file is made up of several sections; sections have the
purpose of separating the resources of a certain emulator from the ones
of the other emulators.  A section starts with the name of an
emulator in brackets (e.g., <SAMP>`[C64]'</SAMP>) and ends when another section
starts or when the file ends.

</P>
<P>
Every line in a section has the following format:

</P>

<PRE>
RESOURCE=VALUE
</PRE>

<P>
where <CODE>RESOURCE</CODE> is the name of a resource and <CODE>VALUE</CODE> is its
assigned value.  Resource names are case-sensitive and resource values
are either strings or integers.  Strings must start and end with a
double quote character (<CODE>"</CODE>), while integers must be given in
decimal notation.

</P>
<P>
Here is an example of a stripped-down <TT>`.vice/vicerc'</TT> file:

</P>

<PRE>
[VIC20]
HTMLBrowserCommand="netscape %s"
SaveResourcesOnExit=0
FileSystemDevice8=1
FSDevice8ConvertP00=1
FSDevice8Dir="/home/ettore/cbm/stuff/vic20p00"
FSDevice8SaveP00=1
FSDevice8HideCBMFiles=1
[C64]
HTMLBrowserCommand="netscape %s"
SaveResourcesOnExit=1
FileSystemDevice8=1
FSDevice8ConvertP00=1
FSDevice8Dir="/home/ettore/cbm/stuff/c64p00"
FSDevice8SaveP00=1
FSDevice8HideCBMFiles=1
</PRE>

<P>
Notice that, when resource values are saved with "Save settings", the
emulator only modifies its own section, leaving the others unchanged.

</P>


<H2><A NAME="SEC41" HREF="vice_toc.html#TOC41">6.2  Using command-line options to change resources</A></H2>

<P>
Resources can also be changed via command-line options.

</P>
<P>
Command-line options always override the defaults from <CODE>.vice/vicerc</CODE>,
and their assignments last for the whole session.  So, if you specify a
certain command-line option that changes a certain resource from its
default value and then use "Save Settings", the value specified with
the command-line option will be saved back to the resource file.

</P>
<P>
Command-line options can begin with with a minus sign (<SAMP>`-'</SAMP>) or
with a plus sign (<SAMP>`+'</SAMP>).  Options beginning with a minus sign
may require an additional parameter, while the ones beginning with the
plus sign never require one.

</P>
<P>
Moreover, options beginning with a plus sign always have a counterpart
with the same name, but with a minus sign; in that case, the option
beginning with a minus sign is used to <EM>enable</EM> a certain
feature, while the one beginning with a plus sign is used to
<EM>disable</EM> the same feature (this is an X11 convention).  For
example, <CODE>-mitshm</CODE> enables support of MITSHM, while <CODE>+mitshm</CODE>
disables it.

</P>



<H2><A NAME="SEC42" HREF="vice_toc.html#TOC42">6.3  Performance settings</A></H2>

<P>
<A NAME="IDX16"></A>
It is possible to control the emulation speed by using the "Maximum
speed" menu item in the right-button menu.  The default setting is
<CODE>100</CODE>, which causes the emulation to never run faster than the real
machine.  A higher value allows the emulator to run faster, a lower one
may force it to run slower.  The setting "No limit" means to run as
fast as possible, without limiting speed.

</P>
<P>
<A NAME="IDX17"></A>
It is also possible to control the emulator's rate of frame update using
the "Refresh rate" setting; the value ranges from "1/1" (update 1/1
of the frames of the real machine, that is 50 frames per second) to
"1/10" (update 1 every 10 frames) and can be changed via the "Refresh
Rate" submenu.  The "Auto" setting means to dynamically adapt the
refresh rate to the current speed of the host machine, making sure the
maximum speed specified by the via "Maxium speed" is always reached if
possible.  In any case, the refresh rate will never be worse than 1/10
if this option is specified.

</P>
<P>
Note that you cannot simultaneously specify "Auto" as the refresh rate
and "No limit" as the maximum speed..

</P>
<P>
<A NAME="IDX18"></A>
Moreover, a special <EM>warp speed</EM> mode is provided and can be toggled
with the "Enable Warp Mode" menu item.  If this mode is enabled, it
will cause the emulator to disable any speed limit, turn sound emulation
off and use a 1/10 refresh rate, so that it will run at the maximum
possible speed.

</P>



<H3><A NAME="SEC43" HREF="vice_toc.html#TOC43">6.3.1  Performance resources</A></H3>

<DL COMPACT>

<DT><CODE>Speed</CODE>
<DD>
<A NAME="IDX19"></A>
 
Integer specifying the maximum relative speed, as a percentage.  <CODE>0</CODE>
stands for "no limit".

<A NAME="IDX20"></A>
<DT><CODE>RefreshRate</CODE>
<DD>
Integer specifying the refresh rate; a value of <CODE>n</CODE> specifies a
refresh rate of 1/<CODE>n</CODE>.  A value of <CODE>0</CODE> enables automatic frame
skipping.

<A NAME="IDX21"></A>
<DT><CODE>WarpMode</CODE>
<DD>
Booolean specifying whether "warp mode" is turned on or not.

</DL>



<H3><A NAME="SEC44" HREF="vice_toc.html#TOC44">6.3.2  Performance command-line options</A></H3>

<DL COMPACT>

<DT><CODE>-speed VALUE</CODE>
<DD>
<A NAME="IDX22"></A>
 
Specifies the maximum speed as a percentage.  <CODE>0</CODE> stands for "no
limit".  (Same as setting the <CODE>Speed</CODE> resource.)

<A NAME="IDX23"></A>
<DT><CODE>-refresh VALUE</CODE>
<DD>
Specifies refresh rate; a value of <CODE>n</CODE> specifies a refresh rate of
1/<CODE>n</CODE>.  A value of <CODE>0</CODE> enables automatic frame skipping.
(Same as setting the <CODE>RefreshRate</CODE> resource.)

<A NAME="IDX24"></A>
<DT><CODE>-warp</CODE>
<DD>
<DT><CODE>+warp</CODE>
<DD>
Enables/disables warp mode (<CODE>WarpMode=1</CODE>, <CODE>WarpMode=0</CODE>).

</DL>



<H2><A NAME="SEC45" HREF="vice_toc.html#TOC45">6.4  Video settings</A></H2>

<P>
The following right-button menu items control the video output.
On emulators that include two video chips (like <CODE>x128</CODE>)
all options but XSync exist twice, once for each chip.
XSync is shared between the video chips.

</P>

<UL>

<LI>

<A NAME="IDX25"></A>
 
"Video Cache" enables a video cache that can speed up the emulation
when little graphics activity is going on; it is especially useful when
you run the emulator on a networked X terminal as it can reduce the
network bandwidth required.  However, this setting can actually make the
emulator slower when there is little graphics activity and the amount of
work needed to maintain the cache is greater than the amount of work that
would be wasted by not using it (if any).

<A NAME="IDX26"></A>
<LI>

"Double Size" toggles <EM>double-size mode</EM>, which makes the
emulation window twice as big.  When emulating a 80-column PET, only the
height is doubled, so that the aspect ratio is closer to that of the
real thing.

<A NAME="IDX27"></A>
<LI>

"Double Scan" toggles <EM>double-scan mode</EM>, which causes the
emulator to draw only odd lines when running in double-size mode (this
saves some CPU time and also makes the emulation window look more like
an old monitor).

<A NAME="IDX28"></A>
<A NAME="IDX29"></A>
<LI>

`Use XSync()" causes the emulator to call the X11 function
<CODE>XSync()</CODE> before updating the emulation window: this might be
necessary on low-end systems to prevent it from consuming so many system
resources that it becomes impossible for the user to interact with it.

</UL>



<H3><A NAME="SEC46" HREF="vice_toc.html#TOC46">6.4.1  Video resources</A></H3>

<P>
The following resources affect the screen emulation. The prefix of
some of the resources and commandline options denote the video chip 
the values apply to.

</P>
<DL COMPACT>

<DT><CODE>VideoCache, CrtcVideoCache</CODE>
<DD>
<A NAME="IDX30"></A>
 <A NAME="IDX31"></A>
 
Boolean specifying whether the video cache is turned on.

<A NAME="IDX32"></A>
<A NAME="IDX33"></A>
<DT><CODE>DoubleSize, CrtcDoubleSize</CODE>
<DD>
Boolean specifying whether double-size mode is turned on.

<A NAME="IDX34"></A>
<A NAME="IDX35"></A>
<DT><CODE>DoubleScan, CrtcDoubleScan</CODE>
<DD>
Boolean specifying whether double-scan mode is turned on.

<A NAME="IDX36"></A>
<DT><CODE>UseXSync</CODE>
<DD>
Boolean specifying whether <CODE>XSync()</CODE> is called after updating the
emulation window.

<A NAME="IDX37"></A>
<DT><CODE>MITSHM</CODE>
<DD>
Integer specifying whether VICE should try to use the shared memory
extensions (MITSHM) when starting up.  The shared memory extensions make
things a lot faster but might not be available on your system.  You will
not be able to use these extensions if you are sitting at an X terminal
while running the emulator on a remote machine across a network.  Valid
values are: 0 = do not use MITSHM, 1 = do use MITSHM, -1 = try to
autodetect availability on startup (default).  The last is a simple test
if the emulator runs across a network and if so disables MITSHM (If you
have problems with this test please report it).

<A NAME="IDX38"></A>
<DT><CODE>PrivateColormap</CODE>
<DD>
Boolean specifying whether VICE should install a private colormap at
startup.  This makes sense for 8-bit displays that could run out of
colors if other color-hungry applications are running at the same time.

<A NAME="IDX39"></A>
<DT><CODE>DisplayDepth</CODE>
<DD>
Integer specifying the depth of the host display.  The value <SAMP>`0'</SAMP>
(the default) causes the emulator to autodetect it.

<A NAME="IDX40"></A>
<A NAME="IDX41"></A>
<DT><CODE>PaletteFile, CrtcPaletteFile</CODE>
<DD>
String specifying the name of the palette file being used.  The
<TT>`.vpl'</TT> extension is optional.

</DL>



<H3><A NAME="SEC47" HREF="vice_toc.html#TOC47">6.4.2  Video command-line options</A></H3>

<DL COMPACT>

<DT><CODE>-vcache</CODE>
<DD>
<A NAME="IDX42"></A>
 
<DT><CODE>+vcache</CODE>
<DD>
Enable/disable the video cache (<CODE>VideoCache=1</CODE>, <CODE>VideoCache=0</CODE>).

<A NAME="IDX43"></A>
<DT><CODE>-dsize</CODE>
<DD>
<DT><CODE>+dsize</CODE>
<DD>
Enable/disable the double size mode (<CODE>DoubleSize=1</CODE>,
<CODE>DoubleSize=0</CODE>).

<A NAME="IDX44"></A>
<DT><CODE>-dscan</CODE>
<DD>
<DT><CODE>+dscan</CODE>
<DD>
Enable/disable the double scan mode (<CODE>DoubleScan=1</CODE>,
<CODE>DoubleScan=0</CODE>).

<A NAME="IDX45"></A>
<DT><CODE>-xsync</CODE>
<DD>
<DT><CODE>+xsync</CODE>
<DD>
Enable/disable usage of <CODE>XSync()</CODE> when updating the emulation
window (<CODE>UseXSync=1</CODE>, <CODE>UseXSync=0</CODE>).

<A NAME="IDX46"></A>
<DT><CODE>-mitshm</CODE>
<DD>
<DT><CODE>+mitshm</CODE>
<DD>
Enable/disable usage of the MITSHM extensions (<CODE>MITSHM=1</CODE>,
<CODE>MITSHM=0</CODE>).

<A NAME="IDX47"></A>
<DT><CODE>-mitshmauto</CODE>
<DD>
Enable autodetection of MITSHM availability (<CODE>MITSHM=-1</CODE>)

<A NAME="IDX48"></A>
<DT><CODE>-install</CODE>
<DD>
<DT><CODE>+install</CODE>
<DD>
Enable/disable installation of a private colormap
(<CODE>PrivateColormap=1</CODE>, <CODE>PrivateColormap=0</CODE>).

<A NAME="IDX49"></A>
<DT><CODE>-displaydepth DEPTH</CODE>
<DD>
Specify the display depth (<CODE>DisplayDepth</CODE>).

<A NAME="IDX50"></A>
<DT><CODE>-palette NAME</CODE>
<DD>
<DT><CODE>-crtcpalette NAME</CODE>
<DD>
Specify <CODE>NAME</CODE> as the palette file (<CODE>PaletteFile</CODE>,<CODE>CrtcPaletteFile</CODE>).

</DL>



<H2><A NAME="SEC48" HREF="vice_toc.html#TOC48">6.5  Keyboard settings</A></H2>

<P>
It is possible to specify whether the "positional" or "symbolic"
keyboard mapping should be used with the "Keyboard mapping type"
submenu (see section <A HREF="vice_2.html#SEC11">2.6  The keyboard emulation</A> for an explanation of positional
and symbolic mappings).

</P>
<P>
The keyboard settings submenu also allows you to:

</P>

<UL>
<LI>

Load custom-made positional and symbolic keymap files
("Set symbolic keymap file" and "Set positional keymap file").
<LI>

Dump the current keymap to a user-defined keymap file ("Dump to keymap
file").
</UL>



<H3><A NAME="SEC49" HREF="vice_toc.html#TOC49">6.5.1  Keyboard resources</A></H3>

<DL COMPACT>

<DT><CODE>KeymapIndex</CODE>
<DD>
<A NAME="IDX51"></A>
 
Integer identifying which keymap is being used; <CODE>0</CODE> indicates
symbolic mapping, <CODE>1</CODE> positional mapping.  For the PET the even
values represent symbolic mapping, odd positional.  Then add <CODE>0</CODE>
for UK business keyboard or <CODE>2</CODE> for graphics keyboard.

<A NAME="IDX52"></A>
<DT><CODE>KeymapSymFile</CODE>
<DD>
String specifying the name of the keymap file for the symbolic mapping
(see section <A HREF="vice_2.html#SEC11">2.6  The keyboard emulation</A>, all but PET and CBM-II).

<A NAME="IDX53"></A>
<DT><CODE>KeymapPosFile</CODE>
<DD>
String specifying the name of the keymap file for the positional mapping
(see section <A HREF="vice_2.html#SEC11">2.6  The keyboard emulation</A>, all but PET and CBM-II).

<A NAME="IDX54"></A>
<DT><CODE>KeymapBusinessUKSymFile</CODE>
<DD>
<DT><CODE>KeymapBusinessUKPosFile</CODE>
<DD>
String specifying the name of the keymap file for the symbolic 
and positional mapping for the UK business keyboard
(see section <A HREF="vice_2.html#SEC11">2.6  The keyboard emulation</A>, PET and CBM-II).

<A NAME="IDX55"></A>
<DT><CODE>KeymapGraphicsSymFile</CODE>
<DD>
<DT><CODE>KeymapGraphicsPosFile</CODE>
<DD>
String specifying the name of the keymap file for the symbolic and 
positional mapping for the graphics keyboard
(see section <A HREF="vice_2.html#SEC11">2.6  The keyboard emulation</A>, PET only).

<A NAME="IDX56"></A>
<DT><CODE>KeymapBusinessDESymFile</CODE>
<DD>
<DT><CODE>KeymapBusinessDEPosFile</CODE>
<DD>
String specifying the name of the keymap file for the symbolic 
and positional mapping for the German business keyboard.
(see section <A HREF="vice_2.html#SEC11">2.6  The keyboard emulation</A>, PET only).

</DL>



<H3><A NAME="SEC50" HREF="vice_toc.html#TOC50">6.5.2  Keyboard command-line options</A></H3>

<DL COMPACT>

<DT><CODE>-keymap N</CODE>
<DD>
<A NAME="IDX57"></A>
 
Specifies which keymap is being used; <CODE>0</CODE> indicates symbolic
mapping, <CODE>1</CODE> positional mapping (as for the <CODE>KeymapIndex</CODE>
resource).

<A NAME="IDX58"></A>
<DT><CODE>-symkeymap NAME</CODE>
<DD>
Specify <TT>`NAME'</TT> as the symbolic keymap file (<CODE>KeymapSymFile</CODE>).

<A NAME="IDX59"></A>
<DT><CODE>-poskeymap NAME</CODE>
<DD>
Specify <TT>`NAME'</TT> as the positional keymap file (<CODE>KeymapPosFile</CODE>).

<A NAME="IDX60"></A>
<DT><CODE>-buksymkeymap NAME</CODE>
<DD>
<DT><CODE>-bukposkeymap NAME</CODE>
<DD>
Specify <TT>`NAME'</TT> as the symbolic/positional keymap file for the
UK business keyboard
(<CODE>KeymapBusinessUKSymFile</CODE>, <CODE>KeymapBusinessUKPosFile</CODE>, PET and CBM-II).

<A NAME="IDX61"></A>
<DT><CODE>-grsymkeymap NAME</CODE>
<DD>
<DT><CODE>-grposkeymap NAME</CODE>
<DD>
Specify <TT>`NAME'</TT> as the symbolic/positional keymap file for the
graphics keyboard
(<CODE>KeymapGraphicsSymFile</CODE>, <CODE>KeymapGraphicsPosFile</CODE>, PET only).

<A NAME="IDX62"></A>
<DT><CODE>-bdesymkeymap NAME</CODE>
<DD>
<DT><CODE>-bdeposkeymap NAME</CODE>
<DD>
Specify <TT>`NAME'</TT> as the symbolic/positional keymap file for the
German business keyboard
(<CODE>KeymapBusinessDESymFile</CODE>, <CODE>KeymapBusinessDEPosFile</CODE>, PET only).

</DL>



<H2><A NAME="SEC51" HREF="vice_toc.html#TOC51">6.6  Sound settings</A></H2>

<P>
The following menu items control sound output:

</P>

<UL>

<LI>

<A NAME="IDX63"></A>
 
"Enable sound playback" turns sound emulation on and off.

<A NAME="IDX64"></A>
<A NAME="IDX65"></A>
<LI>

"Sound synchronization" specifies the method for syncronizing the
sound playback.  Possible settings are:

<UL>
<LI>

"Flexible", i.e., the audio renderer flexibly adds/removes samples to
the output to smoothly adapt the playback to slight changes in the speed
of the emulator.
<LI>

"Adjusting" works like "flexible", but supports bigger differences
in speed.  For example, if the emulation speed drops down from from 100%
to 50%, audio slows down by the same amount too.
<LI>

"Exact", instead, makes the audio renderer output always the same
sounds you would hear from the real thing, without trying to adapt the
ratio; to compensate the tolerances in speed, some extra frames will be
skipped or added.
</UL>

<A NAME="IDX66"></A>
<LI>

"Sample rate" specifies the sampling frequency, ranging from 8000 to
48000 Hz (not all the sound cards and/or sound drivers can support all
the frequencies, so actually the nearest candidate will be chosen).

<A NAME="IDX67"></A>
<A NAME="IDX68"></A>
<LI>

"Buffer size" specifies the size of the audio buffer; the bigger the
buffer, the longer the delay with which sounds are played.  You should
pick the smallest value your machine can handle without problems.

<A NAME="IDX69"></A>
<LI>

"Sound suspend time", will cause the audio playback to pause for the
specified number of seconds whenever some clicking happens.  If "Keep
going" is selected, no pausing is done.

<A NAME="IDX70"></A>
<LI>

"Oversample" specifies an oversampling factor, from 1 to 8 times
(warning: this eats CPU cycles!).

</UL>



<H3><A NAME="SEC52" HREF="vice_toc.html#TOC52">6.6.1  Sound resources</A></H3>

<DL COMPACT>

<DT><CODE>Sound</CODE>
<DD>
<A NAME="IDX71"></A>
 
Boolean specifying whether audio emulation is turned on.

<A NAME="IDX72"></A>
<DT><CODE>SoundSpeedAdjustment</CODE>
<DD>
Integer specifying what speed adjustment method the audio renderer should
use.  Possible values are:

<UL>
<LI>

<CODE>0</CODE>: "flexible"
<LI>

<CODE>1</CODE>: "adjusting"
<LI>

<CODE>2</CODE>: "exact"
</UL>

<A NAME="IDX73"></A>
<DT><CODE>SoundSampleRate</CODE>
<DD>
Integer specifying the sampling frequency, ranging from 8000 to 48000 Hz
(not all the sound cards and/or sound drivers can support all the
frequencies, so actually the nearest candidate will be chosen).

<A NAME="IDX74"></A>
<DT><CODE>SoundBufferSize</CODE>
<DD>
Integer specifying the size of the audio buffer, in milliseconds.

<A NAME="IDX75"></A>
<DT><CODE>SoundSuspendTime</CODE>
<DD>
Integer specifying the pause interval when audio underflows ("clicks")
happen.  <CODE>0</CODE> means no pause is done.

<A NAME="IDX76"></A>
<DT><CODE>SoundOversample</CODE>
<DD>
Integer specifying the oversampling factor, ranging from <CODE>0</CODE> (no
oversampling) to <CODE>3</CODE> (8 times oversampling).

<A NAME="IDX77"></A>
<DT><CODE>SoundDeviceName</CODE>
<DD>
String specifying the audio driver.

Implemented drivers are:


<UL>
<LI>

<CODE>aix</CODE>, for the IBM AIX sound driver.
<LI>

<CODE>uss</CODE>, for the Linux/FreeBSD Universal Sound System driver
(<CODE>SoundDeviceArg</CODE> specifies the audio device, <TT>`/dev/dsp'</TT> by
default);
<LI>

<CODE>sgi</CODE>, for the Silicon Graphics audio device (<CODE>SoundDeviceArg</CODE>
specifies the audio device, <TT>`/dev/audio'</TT> by default);
<LI>

<CODE>sun</CODE>, for the Solaris audio device (unfinished;
<CODE>SoundDeviceArg</CODE> specifies the audio device, <TT>`/dev/audio'</TT> by
default).
<LI>

<CODE>hpux</CODE>, for the HP-UX audio device (unfinished;
<CODE>SoundDeviceArg</CODE> specifies the audio device, <TT>`/dev/audio'</TT> by
default).
<LI>

<CODE>sdl</CODE>, for the Simple DirectMedia Layer audio driver.
<LI>

<CODE>esd</CODE>, for EsounD, the Enlightened Sound Daemon; <CODE>SoundDeviceArg</CODE>
specifies the ESD server (<TT>`host:port'</TT>) to connect, empty by default.
<LI>

<CODE>dummy</CODE>, fully emulating the SID, but not actually playing samples.
<LI>

<CODE>dump</CODE>, writing all the write accesses to the registers to a file
(specified by <CODE>SoundDeviceArg</CODE>, default value is
<CODE>vicesnd.sid</CODE>);
<LI>

<CODE>speed</CODE>, like <CODE>dummy</CODE> but also calculating samples (mainly
used to evaluate the speed of the sample generator);
<LI>

<CODE>fs</CODE>, writing samples to a file (specified by
<CODE>SoundDeviceArg</CODE>; default is <TT>`vicesnd.raw'</TT>);
</UL>

These drivers will actually be present only if the VICE configuration
script detected the corresponding devices at the time of compilation.

<A NAME="IDX78"></A>
<DT><CODE>SoundDeviceArg</CODE>
<DD>
String specifying an additional parameter for the audio driver (see
<CODE>SoundDeviceName</CODE>).

</DL>



<H3><A NAME="SEC53" HREF="vice_toc.html#TOC53">6.6.2  Sound command-line options</A></H3>

<DL COMPACT>

<DT><CODE>-sound</CODE>
<DD>
<A NAME="IDX79"></A>
 
<DT><CODE>+sound</CODE>
<DD>
Turns sound emulation on (<CODE>Sound=1</CODE>) and off (<CODE>Sound=0</CODE>).

<A NAME="IDX80"></A>
<DT><CODE>-soundsync N</CODE>
<DD>
Specify <CODE>N</CODE> as the sound speed adjustment method
(<CODE>SoundSpeedAdjustment</CODE>).

<A NAME="IDX81"></A>
<DT><CODE>-soundrate RATE</CODE>
<DD>
Specifies the sound playback sample rate (<CODE>SoundSampleRate</CODE>).

<A NAME="IDX82"></A>
<DT><CODE>-soundbufsize SIZE</CODE>
<DD>
Specifies the size of the audio buffer in milliseconds
(<CODE>SoundBufferSize</CODE>).

<A NAME="IDX83"></A>
<DT><CODE>-sounddev NAME</CODE>
<DD>
Specifies the name of the audio device (<CODE>SoundDeviceName</CODE>).

<A NAME="IDX84"></A>
<DT><CODE>-soundarg ARG</CODE>
<DD>
Specifies an additional parameter for the audio device
(<CODE>SoundDeviceArg</CODE>).

</DL>



<H2><A NAME="SEC54" HREF="vice_toc.html#TOC54">6.7  Drive settings</A></H2>

<P>
These settings are used to control the hardware-level emulation of the
drive.  When hardware-level emulation is turned on, only drives 8 and 9
are being emulated.

</P>
<P>
The following settings affect both drives:

</P>

<UL>

<LI>

"Enable true drive emulation" enables the (slow) hardware-level
emulation of the drives for maximum compatibility.  This must be turned
on for any of the following settings to have effect.

<LI>

"Drive sync factor" specifies the speed of the drive's CPU.  This can
be used to help loading certain programs that have trouble with the
default PAL setting (for example, programs designed for NTSC machines).
The ratio is calculated as follows:


<PRE>
sync_factor = 65536 * clk_drive / clk_machine
</PRE>

where <CODE>clk_drive</CODE> and <CODE>clk_machine</CODE> are clock speeds in MHz.
The menu lets you choose between the PAL and NTSC values, and also lets
you specify whatever value you want.  Be careful when changing it,
though, because a wrong value can break things and even corrupt disk
images.

</UL>

<P>
The following settings, instead, are specific of each drive:

</P>

<UL>

<LI>

"Drive model" specifies the model of the drive being emulated.
<STRONG>Warning:</STRONG> This will reset the drive.

<LI>

"Enable parallel cable" enables emulation of a SpeedDOS parallel
cable; if you switch this option on and replace the original Commodore
ROMs with SpeedDOS-compatible ones, you can speed up loading/saving times.

<LI>

"Idle method" specifies which method the drive emulation should use to
save CPU cycles in the host CPU.  There are three methods:


<UL>
<LI>

<EM>Skip cycles</EM>: Each time the serial line is accessed by the C64, the
drive executes all the cycles since the last time it ran.  If
the number of elapsed cycles is larger than a certain value, the drive
discards part of them.
<LI>

<EM>Trap idle</EM>: The disk drive is still emulated upon serial line
accesses as with the previous option, but it is also always emulated at
the end of each screen frame.  If the drive gets into the DOS idle loop,
only pending interrupts are emulated to save time.
<LI>

<EM>No traps</EM>: Like "Trap idle", but without any traps at all.  So
basically the drive works exactly as with the real thing, and nothing is
done to reduce the power needs of the drive emulation.
</UL>

The first option ("Skip cycles") is usually best for performance, as
the drive is emulated as little as possible; on the other hand, you may
notice sudden slowdowns (when the drive executes several cycles at once)
and the LED status is never updated (because it would not be possible to
do correctly so).  Moreover, if the drive tries to get in sync with the
computer in some weird way and the computer does not access the serial
line for a long time, it is possible that some cycles are discarded and
the sync is lost.  Notice that this hack will have no effect on
performance if a program continuously reads from the IEC port, as the
drive will have to be fully emulated in any case (some stupid programs
do this, even when they don't actually need to use the drive).

<P>

The second option ("Trap idle") is usually a bit slower, as at least
interrupts are always emulated, but ensures the LED state is always
updated correctly and always keeps the drive and the computer in sync.
On the other hand, if a program installs a non-standard idle loop in the
drive, the drive CPU has to be emulated even when not necessary and the
global emulation speed is then <EM>much</EM> slower.

<LI>

"40-track image support" specifies how 40-track ("extended") disk
images should be supported.  There are three possible ways:


<UL>
<LI>

"Never extend" never extends disk images at all (so if a program tries
to write tracks beyond the 35th, it is not allowed to do so);
<LI>

"Ask on extend" prompts the user as soon as a program tries to write
tracks beyond the 35th, and the user can then choose whether he wants
the disk image to be extended or not;
<LI>

"Extend on access" simply extends the disk image as soon the program
needs it, without prompting the user.
</UL>

</UL>



<H3><A NAME="SEC55" HREF="vice_toc.html#TOC55">6.7.1  Drive resources</A></H3>

<DL COMPACT>

<DT><CODE>DriveTrueEmulation</CODE>
<DD>
<A NAME="IDX85"></A>
 
Boolean controlling whether the "true" drive emulation is turned on.

<A NAME="IDX86"></A>
<A NAME="IDX87"></A>
<DT><CODE>Drive8Type</CODE>
<DD>
<DT><CODE>Drive9Type</CODE>
<DD>
Integers specifying the model number for drives 8 and 9.  Possible values 
are <CODE>1541</CODE>, <CODE>1571</CODE>, <CODE>1581</CODE> and <CODE>2031</CODE>.

<A NAME="IDX88"></A>
<DT><CODE>Drive8ParallelCable</CODE>
<DD>
<A NAME="IDX89"></A>
<DT><CODE>Drive9ParallelCable</CODE>
<DD>
Booleans controlling whether the SpeedDOS-compatible cable is emulated or
not for drives 8 and 9.

<A NAME="IDX90"></A>
<DT><CODE>Drive8ExtendImagePolicy</CODE>
<DD>
<A NAME="IDX91"></A>
<DT><CODE>Drive9ExtendImagePolicy</CODE>
<DD>
Integer specifying the policy for 40-track support for drives 8 and 9.
Possible values are <CODE>0</CODE> (never extend), <CODE>1</CODE> (ask on extend),
<CODE>2</CODE> (extend on access).

<A NAME="IDX92"></A>
<DT><CODE>Drive8IdleMethod</CODE>
<DD>
<A NAME="IDX93"></A>
<DT><CODE>Drive9IdleMethod</CODE>
<DD>
Integers specifying the idling method for the drive CPU.  Possible values
are <CODE>0</CODE> (none), <CODE>1</CODE> (skip cycles), <CODE>2</CODE> (trap idle).
See section <A HREF="vice_6.html#SEC54">6.7  Drive settings</A>.

<A NAME="IDX94"></A>
<DT><CODE>DriveSyncFactor</CODE>
<DD>
Integer specifying the drive's clock sync factor (see section <A HREF="vice_6.html#SEC54">6.7  Drive settings</A>).  Special values <CODE>-1</CODE> and <CODE>-2</CODE> mean PAL and NTSC,
respectively.

<A NAME="IDX95"></A>
<DT><CODE>DosName1541</CODE>
<DD>
<A NAME="IDX96"></A>
<DT><CODE>DosName1571</CODE>
<DD>
<A NAME="IDX97"></A>
<DT><CODE>DosName1581</CODE>
<DD>
<A NAME="IDX98"></A>
<DT><CODE>DosName2031</CODE>
<DD>
Strings specifying the names of the ROM images for the drive emulation.

</DL>



<H3><A NAME="SEC56" HREF="vice_toc.html#TOC56">6.7.2  Drive command-line options</A></H3>

<DL COMPACT>

<DT><CODE>-truedrive</CODE>
<DD>
<A NAME="IDX99"></A>
 
<DT><CODE>+truedrive</CODE>
<DD>
Turns true drive emulation on (<CODE>DriveTrueEmulation=1</CODE>) and off
(<CODE>DriveTrueEmulation=0</CODE>), respectively.

<A NAME="IDX100"></A>
<DT><CODE>-drive8type TYPE</CODE>
<DD>
<DT><CODE>-drive9type TYPE</CODE>
<DD>
Specifies the drive types for units 8 and 9, respectively.  Possible
values for <CODE>TYPE</CODE> are <CODE>1541</CODE>, <CODE>1571</CODE>, <CODE>1581</CODE> and
<CODE>2031</CODE>.

<A NAME="IDX101"></A>
<DT><CODE>-parallel8</CODE>
<DD>
<DT><CODE>+parallel8</CODE>
<DD>
<DT><CODE>-parallel9</CODE>
<DD>
<DT><CODE>+parallel9</CODE>
<DD>
Turns emulation of the SpeedDOS-compatible parallel cable for 
disk unit 8 or 9 on
(<CODE>DriveXParallelCable=1</CODE>, X=8 or 9) and off 
(<CODE>DriveXParallelCable=0</CODE>), respectively.

<A NAME="IDX102"></A>
<DT><CODE>-drive8idle NUM</CODE>
<DD>
<DT><CODE>-drive9idle NUM</CODE>
<DD>
Specifies <CODE>NUM</CODE> as the idling method in drives 8 and 9, respectively
(<CODE>Drive8IdleMethod</CODE>, <CODE>Drive9IdleMethod</CODE>).

<A NAME="IDX103"></A>
<DT><CODE>-drive8extend NUM</CODE>
<DD>
<DT><CODE>-drive9extend NUM</CODE>
<DD>
Specifies <CODE>NUM</CODE> as the track 40 extend policy in drives 8 and 9, 
respectively
(<CODE>Drive8ExtendImagePolicy</CODE>, <CODE>Drive9ExtendImagePolicy</CODE>).

<A NAME="IDX104"></A>
<DT><CODE>-paldrive</CODE>
<DD>
Specifies a PAL sync factor for the drive emulation
(<CODE>DriveSyncFactor=-1</CODE>).

<A NAME="IDX105"></A>
<DT><CODE>-ntscdrive</CODE>
<DD>
Specifies an NTSC sync factor for the drive emulation
(<CODE>DriveSyncFactor=-2</CODE>).

<A NAME="IDX106"></A>
<DT><CODE>-drivesync NUM</CODE>
<DD>
Specifies a generic sync factor for the drive emulation
(<CODE>True1541SyncFactor</CODE>).

<A NAME="IDX107"></A>
<A NAME="IDX108"></A>
<A NAME="IDX109"></A>
<A NAME="IDX110"></A>
<A NAME="IDX111"></A>
<DT><CODE>-dos1541</CODE>
<DD>
<DT><CODE>-dos1571</CODE>
<DD>
<DT><CODE>-dos1581</CODE>
<DD>
<DT><CODE>-dos2031</CODE>
<DD>
<DT><CODE>-dos2040</CODE>
<DD>
<DT><CODE>-dos3040</CODE>
<DD>
<DT><CODE>-dos4040</CODE>
<DD>
<DT><CODE>-dos1001</CODE>
<DD>
Specify the ROM names for the 1541, 1571, 1581, 2031, 2040, 3040, 4040 
and 1001 emulation respectively.

</DL>



<H2><A NAME="SEC57" HREF="vice_toc.html#TOC57">6.8  Peripheral settings</A></H2>

<P>
VICE is able to support some special peripherals:

</P>

<UL>
<LI>

<EM>file system devices</EM>, pseudo-drives accessing the Unix file system;
<LI>

printers.
</UL>

<P>
These features depend on some <EM>kernal traps</EM> that replace the
existing routines in the original Commodore operating system with
custom-made C routines.

</P>



<H3><A NAME="SEC58" HREF="vice_toc.html#TOC58">6.8.1  Settings for file system devices</A></H3>

<P>
These settings deal with the drive-like peripherals connected to the bus
of the emulated machine. 
The first setting relates to the parallel IEEE488 interface. With 
this interface a special engine is used to listen to the bus lines 
to translates them to the filesystem code. Thus the PET will always
detect a drive for example, but it can also use drives 10 and 11 even
together with true disk drive emulation. 

</P>

<UL>
<LI>

"Enable virtual devices", enables the peripheral access via
the fast disk emulation (either kernal traps or IEEE488 interface). 
Both, filesystem and disk image access via fast
drive emulation, are affected.
</UL>

<P>
Four peripherals, numbered from 8 to 11, are
accessible; each of them provides the following settings:

</P>

<UL>
<LI>

"File system access", if enabled, allows the device to emulate a drive
accessing a file system directory; note that when a disk image is
attached to the same drive, the directory is no longer visible and the
attached disk is used instead.
<LI>

"File system directory" specifies the directory to be accessed by the
drive.
<LI>

"Convert P00 file names", if enabled, allows access to P00 files using
their built-in name instead of the Unix one.
<LI>

"Create P00 files on save", if enabled, creates P00 files (instead of
raw CBM files) whenever a program creates a file.
</UL>

<P>
Note that, by default, all drives except 11 create P00 files on save,
while drive 11 creates raw CBM files. Those files come without any header, 
but also with the filename restrictions given by the operating system
VICE runs on.

</P>



<H4><A NAME="SEC59" HREF="vice_toc.html#TOC59">6.8.1.1  Resources for file system devices</A></H4>

<DL COMPACT>

<DT><CODE>FSDevice8ConvertP00</CODE>
<DD>
<A NAME="IDX112"></A>
 
<A NAME="IDX113"></A>
<DT><CODE>FSDevice9ConvertP00</CODE>
<DD>
<A NAME="IDX114"></A>
<DT><CODE>FSDevice10ConvertP00</CODE>
<DD>
<A NAME="IDX115"></A>
<DT><CODE>FSDevice11ConvertP00</CODE>
<DD>
Booleans specifying whether on-read support for P00 files is enabled on
drives 8, 9, 10 and 11 respectively (on by default).

<A NAME="IDX116"></A>
<DT><CODE>FSDevice8SaveP00</CODE>
<DD>
<A NAME="IDX117"></A>
<DT><CODE>FSDevice9SaveP00</CODE>
<DD>
<A NAME="IDX118"></A>
<DT><CODE>FSDevice10SaveP00</CODE>
<DD>
<A NAME="IDX119"></A>
<DT><CODE>FSDevice11SaveP00</CODE>
<DD>
Booleans specifying whether the drives should create P00 files instead
of plain CBM ones (on by default for drives 8-10, off for 11).

<A NAME="IDX120"></A>
<DT><CODE>FSDevice8HideCBMFiles</CODE>
<DD>
<A NAME="IDX121"></A>
<DT><CODE>FSDevice9HideCBMFiles</CODE>
<DD>
<A NAME="IDX122"></A>
<DT><CODE>FSDevice10HideCBMFiles</CODE>
<DD>
<A NAME="IDX123"></A>
<DT><CODE>FSDevice11HideCBMFiles</CODE>
<DD>
Booleans specifying whether non-P00 files should be invisible to
programs running in the emulator (do not hide by default).

<A NAME="IDX124"></A>
<DT><CODE>FSDevice8Dir</CODE>
<DD>
<A NAME="IDX125"></A>
<DT><CODE>FSDevice9Dir</CODE>
<DD>
<A NAME="IDX126"></A>
<DT><CODE>FSDevice10Dir</CODE>
<DD>
<A NAME="IDX127"></A>
<DT><CODE>FSDevice11Dir</CODE>
<DD>
Strings specifying the directories to which drives 8, 9, 10 and 11
have access.

</DL>



<H4><A NAME="SEC60" HREF="vice_toc.html#TOC60">6.8.1.2  Command-line options for file system devices</A></H4>

<DL COMPACT>

<DT><CODE>-fs8 PATH</CODE>
<DD>
<A NAME="IDX128"></A>
 
<A NAME="IDX129"></A>
<DT><CODE>-fs9 PATH</CODE>
<DD>
<A NAME="IDX130"></A>
<DT><CODE>-fs10 PATH</CODE>
<DD>
<A NAME="IDX131"></A>
<DT><CODE>-fs11 PATH</CODE>
<DD>
Specify the paths for the file system access on drives 8, 9, 10 and 11,
respectively (<CODE>FSDevice8Dir</CODE>, <CODE>FSDevice9Dir</CODE>,
<CODE>FSDevice10Dir</CODE> and <CODE>FSDevice11Dir</CODE>).

</DL>



<H3><A NAME="SEC61" HREF="vice_toc.html#TOC61">6.8.2  Printer settings</A></H3>

<P>
The VICE emulators can emulate printers connected to either the IEC
buffer or the user port.  Emulation can be achieved by redirecting the
printer output to a file or by piping it through an external process.
This is defined by so-called <EM>printer device file names</EM>; a printer
device file name can be either a simple path, or a command name
preceeded by a pipe symbol <SAMP>`|'</SAMP>.

</P>
<P>
For example, printer device <SAMP>`filename'</SAMP> will cause the output to be
appended to the file <TT>`filename'</TT>, while printer device <SAMP>`|lpr'</SAMP>
will cause the <CODE>lpr</CODE> command to be executed and be fed the printer
output.  The printer output will not be converted but saved as printed
by the emulated machine.

</P>
<P>
Up to three printer devices may be specified through the following
resources:

</P>

<UL>
<LI>

device 1, whose default value is <CODE>print.dump</CODE>;
<LI>

device 2, whose default value is <CODE>|lpr</CODE>.
<LI>

device 3, whose default value is <CODE>|petlp -F PS|lpr</CODE>;
</UL>

<P>
So, basically, by default printer device 1 will dump printer
output to <TT>`print.dump'</TT>; printer device 2 will print it via
<CODE>lpr</CODE> directly to the printer and device 3 will print it via
<CODE>petlp</CODE> (a not-yet-complete utility that will produce Postscript
output from the Commodore printer code) and then to the printer via 
<CODE>lpr</CODE>.

</P>



<H4><A NAME="SEC62" HREF="vice_toc.html#TOC62">6.8.2.1  Printer resources</A></H4>

<DL COMPACT>

<DT><CODE>PrDevice1</CODE>
<DD>
<A NAME="IDX132"></A>
 
<A NAME="IDX133"></A>
<DT><CODE>PrDevice2</CODE>
<DD>
<A NAME="IDX134"></A>
<DT><CODE>PrDevice3</CODE>
<DD>
Strings specifying the printer devices (see section <A HREF="vice_6.html#SEC61">6.8.2  Printer settings</A>).

<A NAME="IDX135"></A>
<DT><CODE>Printer4</CODE>
<DD>
Boolean specifying if the IEC printer (device 4) is being emulated.

<A NAME="IDX136"></A>
<DT><CODE>Printer4Dev</CODE>
<DD>
Integer (ranging from 0 to 2, for device 1-3) specifying what printer device 
(see section <A HREF="vice_6.html#SEC61">6.8.2  Printer settings</A>) the IEC printer is using.

<A NAME="IDX137"></A>
<DT><CODE>PrUser</CODE>
<DD>
Boolean specifying if the user-port printer is being emulated.

<A NAME="IDX138"></A>
<DT><CODE>PrUserDev</CODE>
<DD>
Integer (ranging from 0 to 2, for device 1-3) specifying what printer 
device the user-port printer is using.

</DL>



<H4><A NAME="SEC63" HREF="vice_toc.html#TOC63">6.8.2.2  Printer command-line options</A></H4>

<DL COMPACT>

<DT><CODE>-prdev1 NAME</CODE>
<DD>
<A NAME="IDX139"></A>
 
<A NAME="IDX140"></A>
<DT><CODE>-prdev2 NAME</CODE>
<DD>
<A NAME="IDX141"></A>
<DT><CODE>-prdev3 NAME</CODE>
<DD>
Specify <CODE>NAME</CODE> as printer devices 1, 2 and 3, respectively
(<CODE>PrDevice1</CODE>, <CODE>PrDevice2</CODE> and <CODE>PrDevice3</CODE>).

<A NAME="IDX142"></A>
<DT><CODE>-printer4</CODE>
<DD>
<DT><CODE>+printer4</CODE>
<DD>
Enable/disable emulation of the IEC printer (<CODE>Printer4=1</CODE>,
<CODE>Printer4=0</CODE>).

<A NAME="IDX143"></A>
<DT><CODE>-pr4dev DEV</CODE>
<DD>
Specify device for the IEC printer (<CODE>Printer4Dev</CODE>).

<A NAME="IDX144"></A>
<DT><CODE>-pruser</CODE>
<DD>
<DT><CODE>+pruser</CODE>
<DD>
Enable/disable emulation of the IEC printer (<CODE>PrUser=1</CODE>,
<CODE>PrUser=0</CODE>).

<A NAME="IDX145"></A>
<DT><CODE>-pruserdev DEV</CODE>
<DD>
Specify device for the IEC printer (<CODE>PrUserDev</CODE>).

</DL>



<H3><A NAME="SEC64" HREF="vice_toc.html#TOC64">6.8.3  Disabling kernal traps</A></H3>

<P>
If you have compatibility problems, you can completely disable Kernal
traps with the "Disable kernal traps" option.  This will of course
disable all the features that depend on it, such as the fast 1541
emulation (so you will have to turn true 1541 emulation on if you want
to be able to read or write disk images) and tape support.

</P>



<H4><A NAME="SEC65" HREF="vice_toc.html#TOC65">6.8.3.1  Resources to control Kernal traps</A></H4>

<DL COMPACT>

<DT><CODE>VirtualDevices</CODE>
<DD>
<A NAME="IDX146"></A>
 
Boolean specifying whether all the mechanisms for virtual device
emulation should be enabled. Serial IEC devices use kernal traps, 
parallel IEEE488 devices use an own IEEE488 engine. Both are switched
on and off with this resource.

</DL>



<H4><A NAME="SEC66" HREF="vice_toc.html#TOC66">6.8.3.2  Command-line options to control Kernal traps</A></H4>

<DL COMPACT>

<DT><CODE>-virtualdev</CODE>
<DD>
<A NAME="IDX147"></A>
 
<DT><CODE>+virtualdev</CODE>
<DD>
Enable (<CODE>VirtualDevices=1</CODE>) or disable (<CODE>VirtualDevices=0</CODE>) 
virtual devices.

</DL>



<H2><A NAME="SEC67" HREF="vice_toc.html#TOC67">6.9  RS232 settings</A></H2>

<P>
The VICE emulators can emulate the RS232 device most of the machines
have.  The C64, C128 and VIC20 emulators emulate the userport RS232
interface at 300 and 1200 baud.  The C64 and C128 can also use the 9600
baud interface by Daniel Dallmann, using the shift registers of the two
CIA 6526 chips.  The PET can have a 6551 ACIA RS232 interface when
running as a SuperPET, and the CBM-II has such an ACIA by default.  The
C64 and C128 emulators can emulate an ACIA 6551 (also known as Datapump
for example) as extension at <CODE>$de**</CODE>.

</P>
<P>
Emulation can be achieved by either:

</P>

<UL>
<LI>

connecting a real UNIX serial device;
<LI>

dumping to a file;
<LI>

piping through a process.
</UL>

<P>
It is possible to define up to four UNIX serial devices, and then decide
which interface should be connected to which device.  This is done by
so-called <EM>rs232 device file names</EM>; an rs232 device file name can
be either a simple path, or a command name preceeded by a pipe symbol
<SAMP>`|'</SAMP>.  If the path specifies a special device (e.g. <TT>`/dev/ttyS0'</TT>) it
is recognized by VICE and the emulator can set the baudrate.

</P>
<P>
For example, rs232 device <SAMP>`filename'</SAMP> will cause the output to be
written (not appended) to the file <TT>`filename'</TT>, while printer device
<SAMP>`|lpr'</SAMP> will cause the <CODE>lpr</CODE> command to be executed and be fed
the rs232 output.  The rs232 output will not be converted but saved as
sent by the emulated machine.  The same holds true for the rs232 input.
If the command writes data to the standard output it will be caught by VICE 
and sent back to the emulator.  Also the data sent by the pseudo device will
be sent back to VICE.

</P>
<P>
For example you can setup a null-modem cable between two serial ports
of your PC, setup one port for login and use the other in VICE.  Then you
can login from your emulator via the RS232 emulation and the null-modem
cable to your machine again.

</P>
<P>
You can not simply run a shell from VICE, as the shell will notice that
it does not run on its own pseudo terminal and will thus buffer its
output.  You need to write some program that opens an own pseudo terminal
and runs the shell from there (not yet finished).

</P>
<P>
Up to four RS232 devices may be specified through the following
resources:

</P>

<UL>
<LI>

device 1, whose default value is <CODE>/dev/ttyS0</CODE>;
<LI>

device 2, whose default value is <CODE>/dev/ttyS1</CODE>;
<LI>

device 3, whose default value is <CODE>rs232.dump</CODE>;
<LI>

device 4, whose default value is <CODE>|lpr</CODE>.
</UL>

<P>
For the first two devices you can change the baudrate the tty device is
set to by specifying it on the commandline or in the menu.  This
baudrate is 9600 by default for the latter two, but can be changed only
by resources (The baudrate is independent from the baudrate the emulator
actually expects).

</P>



<H3><A NAME="SEC68" HREF="vice_toc.html#TOC68">6.9.1  RS232 resources</A></H3>

<DL COMPACT>

<DT><CODE>RsDevice1</CODE>
<DD>
<A NAME="IDX148"></A>
 
<A NAME="IDX149"></A>
<DT><CODE>RsDevice2</CODE>
<DD>
<A NAME="IDX150"></A>
<DT><CODE>RsDevice3</CODE>
<DD>
<A NAME="IDX151"></A>
<DT><CODE>RsDevice4</CODE>
<DD>
Strings specifying the RS232 devices (see section <A HREF="vice_6.html#SEC67">6.9  RS232 settings</A>).

<A NAME="IDX152"></A>
<DT><CODE>RsDevice1Baud</CODE>
<DD>
<A NAME="IDX153"></A>
<DT><CODE>RsDevice2Baud</CODE>
<DD>
<A NAME="IDX154"></A>
<DT><CODE>RsDevice3Baud</CODE>
<DD>
<A NAME="IDX155"></A>
<DT><CODE>RsDevice4Baud</CODE>
<DD>
Integer specifying the RS232 baudrate devices if the device file points
to a special device (like <TT>`/dev/ttyS0'</TT>; see section <A HREF="vice_6.html#SEC67">6.9  RS232 settings</A>).

<A NAME="IDX156"></A>
<DT><CODE>AciaDE</CODE>
<DD>
Boolean specifying whether C64 or C128 should emulate ACIA 6551 in
I/O 1, at <CODE>$de**</CODE>.

<A NAME="IDX157"></A>
<DT><CODE>Acia1Dev</CODE>
<DD>
Integer (ranging from 0 to 3, for device 1-4) specifying what RS232 device 
(see section <A HREF="vice_6.html#SEC67">6.9  RS232 settings</A>) the ACIA is using (all except VIC20).

<A NAME="IDX158"></A>
<DT><CODE>Acia1Irq</CODE>
<DD>
Integer specifying which interrupt to use. 0 = none, 1 = IRQ, 2 = NMI 
(C64 and C128 only)

<A NAME="IDX159"></A>
<DT><CODE>RsUser</CODE>
<DD>
Integer specifying if the user-port RS232 interface is being emulated and 
at which baudrate it should have for the emulator. 0 = off; &#62; 0 specifies the
baudrate (C64, C128 and VIC20).

<A NAME="IDX160"></A>
<DT><CODE>RsUserDev</CODE>
<DD>
Integer (ranging from 0 to 3, for device 1-4) specifying what RS232 device 
the user-port interface is using (C64, C128 and VIC20).

</DL>



<H3><A NAME="SEC69" HREF="vice_toc.html#TOC69">6.9.2  RS232 command-line options</A></H3>

<DL COMPACT>

<DT><CODE>-rsdev1 NAME</CODE>
<DD>
<A NAME="IDX161"></A>
 
<A NAME="IDX162"></A>
<DT><CODE>-rsdev2 NAME</CODE>
<DD>
<A NAME="IDX163"></A>
<DT><CODE>-rsdev3 NAME</CODE>
<DD>
<A NAME="IDX164"></A>
<DT><CODE>-rsdev4 NAME</CODE>
<DD>
Specify <CODE>NAME</CODE> as RS232 devices 1, 2, 3 and 4, respectively
(<CODE>RsDevice1</CODE>, <CODE>RsDevice2</CODE> <CODE>RsDevice3</CODE> and <CODE>RsDevice4</CODE>).

<A NAME="IDX165"></A>
<DT><CODE>-rsdev1 BAUDRATE</CODE>
<DD>
<A NAME="IDX166"></A>
<DT><CODE>-rsdev2 BAUDRATE</CODE>
<DD>
<A NAME="IDX167"></A>
<DT><CODE>-rsdev3 BAUDRATE</CODE>
<DD>
<A NAME="IDX168"></A>
<DT><CODE>-rsdev4 BAUDRATE</CODE>
<DD>
Specify <CODE>BAUDRATE</CODE> as baudrate for the RS232 devices if the device name
specifies a special device (like <TT>`/dev/ttyS0'</TT> for example, 
see section <A HREF="vice_6.html#SEC67">6.9  RS232 settings</A>;
<CODE>RsDevice1Baud</CODE>, <CODE>RsDevice2Baud</CODE> <CODE>RsDevice3Baud</CODE> and 
<CODE>RsDevice4Baud</CODE>).

<A NAME="IDX169"></A>
<DT><CODE>-acia1dev</CODE>
<DD>
Specify device for the ACIA (<CODE>Acia1Dev</CODE>).

<A NAME="IDX170"></A>
<DT><CODE>-rsuser BAUDRATE</CODE>
<DD>
Enable (BAUDRATE not 0) or disable (BAUDRATE = 0) emulation of the 
userport RS232 emulation (<CODE>RsUser</CODE>; C64, C128 and VIC20)

<A NAME="IDX171"></A>
<DT><CODE>-rsuserdev DEV</CODE>
<DD>
Specify device for the userport RS232 emulation (<CODE>RsUserDev</CODE>; 
C64, C128 and VIC20).

</DL>



<H3><A NAME="SEC70" HREF="vice_toc.html#TOC70">6.9.3  RS232 usage example</A></H3>

<P>
Here we give you a simple example how to set up an emulated C64 using
the modem connected to your PC. The following list shows each step.

</P>
<DL COMPACT>

<DT><CODE>Attach your modem to your PC at a serial port.</CODE>
<DD>
Normally you should set it up to use the modem as "/dev/modem".
<DT><CODE>start VICE</CODE>
<DD>
<DT><CODE>Setup VICE to use your modem as "serial device 1"</CODE>
<DD>
Go to the RS232 settings menu and change "Serial 1 device" to "/dev/modem" (or the device where you attached your modem to)
Then go to the RS232 settings menu and change "Serial 1 baudrate" to the baudrate your modem should run at.
  Watch out, e.g. on Linux there is an additional multiplier
  to multiply with the baudrate (so e.g. 19200 gives 115200 or so baud)
  See the "setserial" manpage on Linux for example. 
  However, most modems should be able to autodetect the speed to 
  the computer as well.

<DT><CODE>Select the RS232 emulation your programs use</CODE>
<DD>
If you want to use the Userport emulation, go to the RS232 settings and 
  change "Userport RS232 Device" to 
  "Serial 1". If you want ACIA emulation (swiftlink or what's it called?)
  then change "ACIA $DE** device" to "Serial 1".

<DT><CODE>Enable the emulation</CODE>
<DD>
  Go to the RS232 settings and select either "ACIA $DE** emulation"
  or Userport 300/1200 baud or CIA 9600 baud emulation.

<DT><CODE>Load your program and start it.</CODE>
<DD>
If it is able to detect an
  RS232 cartridge like swiftlink or so, try to detect the ACIA emulation
  if enabled. 
  Otherwise just set the baudrate to either 300, 1200 or 9600 according
  to what you enabled in the VICE menu for the userport.

</DL>



<H2><A NAME="SEC71" HREF="vice_toc.html#TOC71">6.10  Miscellaneous settings</A></H2>

<P>
This section lists generic resources that do not fit in the other
categories.

</P>



<H3><A NAME="SEC72" HREF="vice_toc.html#TOC72">6.10.1  Miscellaneous resources</A></H3>

<DL COMPACT>

<DT><CODE>Directory</CODE>
<DD>
<A NAME="IDX172"></A>
 
String specifying the search path for system files.  It is defined as a
sequence of directory names, separated by colons (<SAMP>`:'</SAMP>), just like
the <CODE>PATH</CODE> variable in the shell.  The special string <SAMP>`$$'</SAMP>
stands for the default search path, which is initialized at startup to
the following value:


<PRE>
LIBDIR/EMUID:$HOME/.vice/EMUID:BOOTPATH/EMUID:LIBDIR/DRIVES:$HOME/.vice/DRIVES:BOOTPATH/DRIVES
</PRE>

where:


<UL>
<LI>

<CODE>LIBDIR</CODE> is the VICE installation directory (usually
<TT>`/usr/local/lib/vice'</TT>, <TT>`/usr/lib/vice'</TT> or
<TT>`/opt/vice/lib'</TT>);
<LI>

<CODE>EMUID</CODE> is the emulation identification
string (<CODE>C64</CODE>, <CODE>C128</CODE>, <CODE>VIC20</CODE> or <CODE>PET</CODE>);
<LI>

<CODE>BOOTPATH</CODE> is the directory where the binary lies (usually
<TT>`/usr/local/bin'</TT>, <TT>`/usr/bin'</TT> or <CODE>/opt/vice/bin</CODE>).
<LI>

<CODE>DRIVES</CODE> is the directory called "DRIVES", where the disk drive ROMs are.
(The disk drive ROMs are used by all emulators, so there is an extra
directory for them.)
</UL>

Notice that the middle entry points to a default location in
the user's home directory. Here private ROM versions (e.g. 
speeddos or JiffyDos) can be stored for example.

See section <A HREF="vice_4.html#SEC23">4  System files</A>. for a description of the method used to load the
emulator's system files.

<A NAME="IDX173"></A>
<DT><CODE>HTMLBrowserCommand</CODE>
<DD>
String specifying the command to run the help browser.  The help browser
can be any HTML browser, and every <SAMP>`%s'</SAMP> in the string is replaced
with the name of the toplevel file of the VICE documentation.  For
example, the default value <SAMP>`netscape %s'</SAMP> runs Netscape Navigator.

<A NAME="IDX174"></A>
<DT><CODE>SaveResourcesOnExit</CODE>
<DD>
Boolean specifying whether the emulator should save changed settings
before exiting.  If this is enabled, the user will be always prompted
first, in case the settings have changed.

<A NAME="IDX175"></A>
<DT><CODE>DoCoreDump</CODE>
<DD>
Boolean specifying whether the emulator should dump core when it gets a
signal.

<A NAME="IDX176"></A>
<DT><CODE>JoyDevice1</CODE>
<DD>
<DT><CODE>JoyDevice2</CODE>
<DD>
Integer specifying which joystick device the emulator should use for
joystick emulation for ports 1 and 2, respectively
(0=None, 1=Numpad, 2=Custom keys, 3=Analog joystick 1, 4=Analog joystick 2,
5=Digital joystick 1, 6=Digital joystick 2 on Unix)
The available joysticks might differ depending on operating system and
joystick support in the OS (Linux joystick module must be 
available for example).

</DL>



<H3><A NAME="SEC73" HREF="vice_toc.html#TOC73">6.10.2  Miscellaneous command-line options</A></H3>

<DL COMPACT>

<DT><CODE>-directory SEARCHPATH</CODE>
<DD>
<A NAME="IDX177"></A>
 
Specify the system file search path (<CODE>Directory</CODE>).
<A NAME="IDX178"></A>
<DT><CODE>-htmlbrowser COMMAND</CODE>
<DD>
Specify the command to run the HTML browser for the on-line help
(<CODE>HTMLBrowserCommand</CODE>).
<A NAME="IDX179"></A>
<DT><CODE>-saveres</CODE>
<DD>
<DT><CODE>+saveres</CODE>
<DD>
Enable/disable automatic saving of settings on exit
(<CODE>SaveResourcesOnExit=1</CODE>, <CODE>SaveResourcesOnExit=0</CODE>).

<A NAME="IDX180"></A>
<DT><CODE>-core</CODE>
<DD>
<DT><CODE>+core</CODE>
<DD>
Enable/disable generation of core dumps (<CODE>DoCoreDump=1</CODE>,
<CODE>DoCoreDump=0</CODE>).

<A NAME="IDX181"></A>
<DT><CODE>-joydev1</CODE>
<DD>
<DT><CODE>-joydev2</CODE>
<DD>
Set the device for joystick emulation of port 1 and 2, respectively
(<CODE>JoyDevice1</CODE>, <CODE>JoyDevice2</CODE>).
</DL>

<P><HR><P>
Go to the <A HREF="vice_1.html">first</A>, <A HREF="vice_5.html">previous</A>, <A HREF="vice_7.html">next</A>, <A HREF="vice_16.html">last</A> section, <A HREF="vice_toc.html">table of contents</A>.
</BODY>
</HTML>