Skip to content
This repository was archived by the owner on Sep 24, 2025. It is now read-only.

Commit 0a0b46a

Browse files
committed
Cleanup and docs prep for svn patch
1 parent a07779f commit 0a0b46a

File tree

7 files changed

+25
-104
lines changed

7 files changed

+25
-104
lines changed

vice/configure.ac

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,11 @@ VICE_ARG_WITH_LIST(lame, [ --with-lame use LAME
9696
VICE_ARG_WITH_LIST(static-lame, [ --with-static-lame statically link LAME MP3])
9797
VICE_ARG_WITH_LIST(portaudio, [ --with-portaudio use PortAudio for sound input])
9898
VICE_ARG_ENABLE_LIST(catweasel, [ --enable-catweasel enables CatWeasel (PCI/Zorro/Clockport SID card) support])
99-
VICE_ARG_ENABLE_LIST(usbsid, [ --enable-usbsid enables usbsid support])
10099
VICE_ARG_ENABLE_LIST(hardsid, [ --disable-hardsid disables HardSID support])
101100
VICE_ARG_ENABLE_LIST(midi, [ --enable-midi enable MIDI support])
102101
VICE_ARG_ENABLE_LIST(new8580filter, [ --disable-new8580filter disable new 8580 filters])
103102
VICE_ARG_ENABLE_LIST(parsid, [ --enable-parsid enables ParSID support])
103+
VICE_ARG_ENABLE_LIST(usbsid, [ --enable-usbsid enables USBSID-Pico support])
104104

105105
dnl
106106
dnl Graphics options
@@ -2810,7 +2810,7 @@ if test x"$is_unix" = "xyes"; then
28102810
;;
28112811
*)
28122812
enable_parsid=no
2813-
# enable_usbsid=no
2813+
enable_usbsid=no
28142814
enable_hardsid=no
28152815
enable_catweasel=no
28162816
;;
@@ -3693,11 +3693,11 @@ fi
36933693

36943694
if test x"$real_arch" = "xUnix" -o x"$real_arch" = "xOSX" -o x"$real_arch" = "xWin32"; then
36953695
echo "MIDI support : $HAVE_MIDI_SUPPORT (--enable/disable-midi)"
3696+
echo "USBSID-Pico support : $HAVE_USBSID_SUPPORT (--enable/disable-usbsid)"
36963697
fi
36973698

36983699
if test x"$real_arch" != "xOSX" -a x"$real_arch" != "xBeOS"; then
36993700
echo "Catweasel MK3 support : $HAVE_CATWEASELMKIII_SUPPORT (--enable/disable-catweasel)"
3700-
echo "USBSID support : $HAVE_USBSID_SUPPORT (--enable/disable-usbsid)"
37013701
echo "HardSID support : $HAVE_HARDSID_SUPPORT (--enable/disable-hardsid)"
37023702
fi
37033703

vice/doc/vice.texi

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9584,7 +9584,7 @@ images are supported:
95849584

95859585
@itemize @bullet
95869586
@item
9587-
@file{.crt} images, as used by the CCS64 emulator by Per H�kan Sundell
9587+
@file{.crt} images, as used by the CCS64 emulator by Per H�kan Sundell
95889588
@item
95899589
raw @file{.bin} images, with or without load address
95909590
@end itemize
@@ -11677,7 +11677,7 @@ choosing one of the available predefined color sets, for example:
1167711677
@item
1167811678
@file{c64s.vpl} (``C64S''), palette taken from the shareware C64S emulator by Miha Peternel.
1167911679
@item
11680-
@file{ccs64.vpl} (``CCS64''), palette taken from the shareware CCS64 emulator by Per H�kan Sundell.
11680+
@file{ccs64.vpl} (``CCS64''), palette taken from the shareware CCS64 emulator by Per H�kan Sundell.
1168111681
@item
1168211682
@file{frodo.vpl} (``Frodo''), palette taken from the free Frodo emulator by Christian Bauer
1168311683
(@uref{https://frodo.cebix.net/}).
@@ -12281,7 +12281,7 @@ Integer specifying what model of the SID must be emulated.
1228112281
@vindex SidEngine
1228212282
@item SidEngine
1228312283
Integer specifying what SID engine will be used.
12284-
(0: FastSID, 1: ReSID, 2: Catweasel MKIII, 3: HardSID, 4: ParSID Port 1, 5: ParSID Port 2, 6: ParSID Port 3)
12284+
(0: FastSID, 1: ReSID, 2: Catweasel MKIII, 3: HardSID, 4: ParSID Port 1, 5: ParSID Port 2, 6: ParSID Port 3, 7: USBSID-Pico)
1228512285

1228612286
@vindex SidResidSampling
1228712287
@item SidResidSampling
@@ -12468,14 +12468,15 @@ DTVSID: 260/dtv/c64dtv/dtvsid,
1246812468
Catweasel MKIII: 512/catweaselmkiii/catweasel3/catweasel/cwmkiii/cw3/cw,
1246912469
HardSID: 768/hardsid/hard/hs,
1247012470
ParSID Port 1: 1024/parsid/parsid1/par1/lpt1,
12471-
ParSID Port 2: 1280/parsid2/par2/lpt2
12472-
ParSID Port 3: 1536/parsid3/par3/lpt3)
12471+
ParSID Port 2: 1280/parsid2/par2/lpt2,
12472+
ParSID Port 3: 1536/parsid3/par3/lpt3,
12473+
USBSID-Pico: 1792/usbsid/usbs/us)
1247312474

1247412475
@findex -sidengine
1247512476
@item -sidengine <engine>
1247612477
Specify engine for the emulated SID chip
1247712478
(@code{SidEngine}).
12478-
(FastSID: 0, ReSID: 1, DTVSID: 2, HardSID: 3, ParSID Port 1: 4, ParSID Port 2: 5, ParSID Port 3: 6)
12479+
(FastSID: 0, ReSID: 1, DTVSID: 2, HardSID: 3, ParSID Port 1: 4, ParSID Port 2: 5, ParSID Port 3: 6, USBSID-Pico: 7)
1247912480

1248012481
@findex -sidmodel
1248112482
@item -sidmodel <model>
@@ -14414,7 +14415,7 @@ images are supported:
1441414415

1441514416
@itemize @bullet
1441614417
@item
14417-
@file{.crt} images, as originally used by the CCS64 emulator by Per H�kan Sundell
14418+
@file{.crt} images, as originally used by the CCS64 emulator by Per H�kan Sundell
1441814419
@item
1441914420
raw @file{.bin} images, without load address
1442014421
@item
@@ -24514,7 +24515,7 @@ the file names can't have trailing spaces.
2451424515
Ettore Perazzoli.)
2451524516

2451624517
This format was defined in 1998 as a cooperative effort between several
24517-
emulator people, mainly Per H�kan Sundell, author of the CCS64 C64
24518+
emulator people, mainly Per H�kan Sundell, author of the CCS64 C64
2451824519
emulator, Andreas Boose of the VICE CBM emulator team and Joe
2451924520
Forster/STA, the author of Star Commander. It was the first real public
2452024521
attempt to create a format for the emulator community which removed
@@ -37028,7 +37029,7 @@ Implemented the SDL UI slider control and fixed some
3702837029
GP2X/Dingoo SDL UI issues.
3702937030

3703037031
@item
37031-
@b{Istv�n F�bi�n}
37032+
@b{Istv�n F�bi�n}
3703237033
Contributed a initial patch with the more correct 1541 bus
3703337034
timing code and which gave us hints for to improving the 1541
3703437035
emulation.
@@ -37139,7 +37140,7 @@ driver, basic support for the OPENCBM library and some
3713937140
other patches.
3714037141

3714137142
@item
37142-
@b{Frank K�nig}
37143+
@b{Frank K�nig}
3714337144
Contributed the Win32 joystick autofire feature.
3714437145

3714537146
@item
@@ -37188,7 +37189,7 @@ CPU emulation.
3718837189
Provided some monitor fixes.
3718937190

3719037191
@item
37191-
@b{Marko M�kel�}
37192+
@b{Marko M�kel�}
3719237193
Wrote lots of CPU documentation. Wrote the VIC Flash Plugin
3719337194
cartridge emulation in xvic. Wrote the Ultimem cartridge
3719437195
emulation in xvic.
@@ -37255,7 +37256,7 @@ Donated @code{findpath.c}.
3725537256
Digitalized the C64 colors used in the (old) default palette.
3725637257

3725737258
@item
37258-
@b{Lasse ��rni}
37259+
@b{Lasse ��rni}
3725937260
Contributed the Windows Multimedia sound driver
3726037261

3726137262
@item
@@ -37502,7 +37503,7 @@ thanks goes to the following people:
3750237503

3750337504
Last but not least, a very special thank to Andreas Arens, Lutz
3750437505
Sammer, Edgar Tornig, Christian Bauer, Wolfgang Lorenz, Miha
37505-
Peternel, Per H�kan Sundell, David Horrocks, Benjamin Rosseaux and William McCabe
37506+
Peternel, Per H�kan Sundell, David Horrocks, Benjamin Rosseaux and William McCabe
3750637507
for writing cool emulators to compete with. @t{:-)}
3750737508

3750837509
@c end of file generation section.

vice/src/arch/shared/hwsiddrv/usbsid-macros.h

Lines changed: 0 additions & 63 deletions
This file was deleted.

vice/src/sid/sid-cmdline-options.c

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ static const struct engine_s engine_match[] = {
124124
#endif
125125
#endif
126126
#ifdef HAVE_USBSID // TODO: CHECK AND FINISH
127-
{ "1280", SID_USBSID },
127+
{ "1792", SID_USBSID },
128128
{ "usbsid", SID_USBSID },
129129
{ "usbs", SID_USBSID },
130130
{ "us", SID_USBSID },
@@ -135,7 +135,6 @@ static const struct engine_s engine_match[] = {
135135
#ifdef HAVE_USBSID
136136
int us_setparam(const char *param, void *extra_param)
137137
{
138-
printf("KUT: %s %s %s\n", param, (char *)&extra_param, (char *)extra_param);
139138
if ((!strcmp(((char *)extra_param), "rw")) && (strlen(param) >= 1)) {
140139
int r = atoi(param);
141140
printf("R: %d\n", r);
@@ -285,19 +284,6 @@ static const cmdline_option_t usbsid_cmdline_options[] =
285284
{ "-usbuffsize", SET_RESOURCE, CMDLINE_ATTRIB_NEED_ARGS,
286285
NULL, NULL, "SidUSBSIDBufferSize", NULL,
287286
"<n divisable by 8>", "Write buffer size (default: 8192)" },
288-
289-
// { "-usreadmode", CALL_FUNCTION, CMDLINE_ATTRIB_NEED_ARGS,
290-
// us_setparam, "rw", "SidUSBSIDReadMode", NULL,
291-
// "<1 or 0>", "Enable USBSID read mode (disables cycled writing & digiplay)" },
292-
// { "-usaudiomode", CALL_FUNCTION, CMDLINE_ATTRIB_NEED_ARGS,
293-
// us_setparam, "audio", "SidUSBSIDAudioMode", NULL,
294-
// "<1 or 0>", "Set audio to Stereo(1) or Mono(0) (Default)" },
295-
// { "-usbuffsize", CALL_FUNCTION, CMDLINE_ATTRIB_NEED_ARGS,
296-
// us_setparam, "buff", "SidUSBSIDBufferSize", NULL,
297-
// "<n divisable by 8>", "Write buffer size (default: 8192)" },
298-
// { "-usdiffsize", CALL_FUNCTION, CMDLINE_ATTRIB_NEED_ARGS,
299-
// us_setparam, "diff", "SidUSBSIDDiffSize", NULL,
300-
// "<n divisable by 8>", "Write buffer head -> tail diff size (default: 64)" },
301287
CMDLINE_LIST_END
302288
};
303289
#endif
@@ -469,7 +455,7 @@ static char *build_sid_cmdline_option(int sid_type)
469455
#ifdef HAVE_USBSID
470456
/* add usbsid options if available */
471457
if (usbsid_available()) {
472-
new = util_concat(old, ", 1280: USBSID", NULL);
458+
new = util_concat(old, ", 1792: USBSID-Pico", NULL);
473459
lib_free(old);
474460
old = new;
475461
}
@@ -547,7 +533,7 @@ static char *build_sid_engine_cmdline_option(int sid_type)
547533
#ifdef HAVE_USBSID
548534
/* add usbsid options if available */
549535
if (usbsid_available()) {
550-
new = util_concat(old, ", 5: USBSID", NULL);
536+
new = util_concat(old, ", 7: USBSID-Pico", NULL);
551537
lib_free(old);
552538
old = new;
553539
}

vice/src/sid/sid-resources.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ static int set_sid_engine(int set_engine, void *param)
124124
case SID_ENGINE_PARSID:
125125
#endif
126126
#endif
127-
#ifdef HAVE_USBSID // TODO: CHECK AND FINISH
127+
#ifdef HAVE_USBSID
128128
case SID_ENGINE_USBSID:
129129
#endif
130130
break;
@@ -185,9 +185,6 @@ static int set_sid_stereo(int val, void *param)
185185
machine_sid2_enable(val);
186186
}
187187
}
188-
// #ifdef HAVE_USBSID
189-
// usbsid_set_audio(val); /* Set mono or stereo by no. sids */
190-
// #endif
191188
return 0;
192189
}
193190

vice/src/sid/sid.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1162,12 +1162,12 @@ int sid_engine_get_max_sids(int engine)
11621162
return SID_ENGINE_CATWEASELMKIII_NUM_SIDS;
11631163
case SID_ENGINE_HARDSID:
11641164
return SID_ENGINE_HARDSID_NUM_SIDS;
1165-
case SID_ENGINE_USBSID:
1166-
return SID_ENGINE_USBSID_NUM_SIDS;
11671165
#if !defined(WINDOWS_COMPILE) || (defined(WINDOWS_COMPILE) && defined(HAVE_LIBIEEE1284))
11681166
case SID_ENGINE_PARSID:
11691167
return SID_ENGINE_PARSID_NUM_SIDS;
11701168
#endif
1169+
case SID_ENGINE_USBSID:
1170+
return SID_ENGINE_USBSID_NUM_SIDS;
11711171
default:
11721172
/* unknow engine */
11731173
return -1;

vice/src/sid/sid.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ enum {
4545
SID_ENGINE_CATWEASELMKIII,
4646
SID_ENGINE_HARDSID,
4747
SID_ENGINE_PARSID,
48-
SID_ENGINE_USBSID
48+
SID_ENGINE_USBSID = 7
4949
};
5050

5151
#define SID_ENGINE_DEFAULT 99
@@ -99,7 +99,7 @@ enum {
9999
#define SID_CATWEASELMKIII (SID_ENGINE_CATWEASELMKIII << 8)
100100
#define SID_HARDSID (SID_ENGINE_HARDSID << 8)
101101
#define SID_PARSID (SID_ENGINE_PARSID << 8)
102-
#define SID_USBSID (SID_ENGINE_USBSID << 8) // 1280
102+
#define SID_USBSID (SID_ENGINE_USBSID << 8)
103103

104104
#define SIDTYPE_SID 0
105105
#define SIDTYPE_SIDDTV 1

0 commit comments

Comments
 (0)