Todo: Difference between revisions

From vice-emu
Jump to navigation Jump to search
mNo edit summary
(46 intermediate revisions by 3 users not shown)
Line 1: Line 1:
This is the list of known problems. also look at [https://sourceforge.net/tracker/?limit=100&func=&group_id=223021&atid=1057617&assignee=&status=4&category=&artgroup=&keyword=&submitter=&artifact_id=&assignee=&status=1&category=&artgroup=&submitter=&keyword=&artifact_id=&submit=Filter&mass_category=&mass_priority=&mass_resolution=&mass_assignee=&mass_artgroup=&mass_status=&mass_cannedresponse= Tracker: open Bugs]
This list always refers to the status of the last major release version, which was '''3.3'''. Items that have been fixed by the time of a major release will be removed, items fixed after that will be marked as fixed and stay until the next major version. New items will be added as noticed.
==Prime Directive==
==Prime Directive==


* '''all developers shall subscribe to the [https://sourceforge.net/p/vice-emu/mailman/ vice-emu-mail mailinglist]''' and perhaps join #vice-dev on freenode too (highly recommended).
* '''All developers shall subscribe to the [https://sourceforge.net/p/vice-emu/mailman/ vice-emu-mail mailinglist]''' and perhaps join #vice-dev on freenode too (highly recommended).
* please '''respect the [https://sourceforge.net/p/vice-emu/code/HEAD/tree/trunk/vice/doc/coding-guidelines.txt coding guidelines]'''
* Please '''respect the [https://sourceforge.net/p/vice-emu/code/HEAD/tree/trunk/vice/doc/coding-guidelines.txt coding guidelines]'''.
* when adding/changing stuff that needs (G)UI items/changes, '''all developers should update the SDL and GTK3 UIs themselves''', and immediately following their respective changes.
* '''Document your code''' so other people than you are able to understand and fix it in a decade or two.
* when adding/changing command-line options and/or resources, adding a new feature or change the behavior of an existing feature, '''please update the documentation''' :)
* When adding/changing stuff that needs (G)UI items/changes, '''all developers should update the SDL and GTK3 UIs themselves''', and immediately following their respective changes.
* after fixing a bug or implementing a new feature, '''update''' its status on '''the [https://sourceforge.net/tracker/?limit=50&group_id=223021&atid=1057617&status=1&submit=Filter Bug Tracker] and''' mark it as fixed in '''the TODO list''' below.
* When adding/changing command-line options and/or resources, adding a new feature or change the behavior of an existing feature, '''please update the documentation'''.
* most importantly...
* After fixing a bug or implementing a new feature, '''update''' its status on '''the [https://sourceforge.net/tracker/?limit=50&group_id=223021&atid=1057617&status=1&submit=Filter Bug Tracker] and''' mark it as fixed in '''the TODO list''' below.
* And most importantly...
<pre>
<pre>
  <@_tlr> Please at least test the issue you were trying to fix before committing.
  <@_tlr> Please at least test the issue you were trying to fix before committing.
</pre>
</pre>
: that means: '''you break it, you fix it.''' don not commit deal breaking changes without communicating it with the rest of the team. '''generally regressions are not acceptable and respective commits are subject to be reverted.'''
: That means: '''you break it, you fix it.''' Do not commit deal breaking changes without communicating it with the rest of the team. '''Generally regressions are not acceptable and respective commits are subject to be reverted.'''


==Code cleanup and streamlining==
==Code cleanup and streamlining==
Line 17: Line 23:


* remove compiler- and platform- specific hacks (IFDEFS) in common code
* remove compiler- and platform- specific hacks (IFDEFS) in common code
* (WIP) merge archdep* files of SDL and Gtk3 into src/archdep/ (so the same code is used for GTK3 and SDL)
$ ./src/findhacks.sh ccarchdep
* <strike>remove the YUV rendering code, its broken and archaic and shouldnt be needed anywhere (HAVE_XVIDEO, video/video-render.c and all related renderers)</strike>
$ ./src/findhacks.sh archdep
 
 
* add howto into docs dir for gtk3 building (needs windows/linux/osx specific instructions)
* add howto into docs dir for gtk3 building (needs windows/linux/osx specific instructions)
:: docs for Linux and Windows (msys2) are there, OSX is still a mystery
:: docs for Linux and Windows (msys2) are there, OSX is well underway
* remove the third scaling method described in [[Scaling_cleanup]] (formerly used by XAW)
* remove the third scaling method described in [[Scaling_cleanup]] (formerly used by XAW)
* add proper [[Icons]] to both UIs
* add proper [[Icons]] to both UIs
Line 26: Line 34:
* revisit the old [[Feature checking]] pages, and clear it out eventually
* revisit the old [[Feature checking]] pages, and clear it out eventually
** [[Resource_and_Cmdline_checking]] - Tracks and documents all Resources and Command line options
** [[Resource_and_Cmdline_checking]] - Tracks and documents all Resources and Command line options
* make a configure option to enable building of x64. this should be OFF by default (and desktop binary distributions should not include it)
 
* <strike>remove HAVE_FULLSCREEN</strike>
* get rid of fullscreenarch.h and fullscreen.c - its no more required because both SDL and GTK3 can do all of the features fine.
* get rid of fullscreenarch.h and fullscreen.c - its no more required because both SDL and GTK3 can do all of the features fine.
* replace readline and our fallback implementation with linenoise (https://github.com/antirez/linenoise), or perhaps linenoise-ng (https://github.com/arangodb/linenoise-ng) which appears to support Windows and UTF-8.


----
==Build system==
 
==Known Issues==
 
This is the list of known problems. also look at [https://sourceforge.net/tracker/?limit=100&func=&group_id=223021&atid=1057617&assignee=&status=4&category=&artgroup=&keyword=&submitter=&artifact_id=&assignee=&status=1&category=&artgroup=&submitter=&keyword=&artifact_id=&submit=Filter&mass_category=&mass_priority=&mass_resolution=&mass_assignee=&mass_artgroup=&mass_status=&mass_cannedresponse= Tracker: open Bugs]
 
This list always refers to the status of the last major release version, which was '''3.3'''. Items that have been fixed by the time of a major release will be removed, items fixed after that will be marked as fixed and stay until the next major version. New items will be added as noticed.
 
----
 
===Build system===


* The build system currently has some code in the Makefile's to conditionally build x64sc, x64dtv and xscpu64, but these are unconditionally set to 'true' in configure. So the build system can be somewhat simplified by removing these conditionals from the Makefile.am's and the bindist scripts.
* The build system currently has some code in the Makefile's to conditionally build x64sc, x64dtv and xscpu64, but these are unconditionally set to 'true' in configure. So the build system can be somewhat simplified by removing these conditionals from the Makefile.am's and the bindist scripts.
** '''fixed''' for Windows and Linux
** '''fixed''' for Windows and Linux
* The bindist script for SDL on Windows is currently broken, it doesn't copy any required DLL's, nor does it add an SVN revision string to any bindist if building from trunk. Probably the easiest way to fix this is to take a good look at the Gtk3 `make-bindist_win32.sh` script and update the SDL script accordingly.
* <s>The bindist script for SDL on Windows is currently broken, it doesn't copy any required DLL's, nor does it add an SVN revision string to any bindist if building from trunk. Probably the easiest way to fix this is to take a good look at the Gtk3 `make-bindist_win32.sh` script and update the SDL script accordingly.</s> (fixed in trunk)
* The Gtk3 Windows port bindist script copies *all* icons of the Adwaita theme, resulting in 6000+ files, while we use about 12 icons currently (all in VSID).
* The Gtk3 Windows port bindist script copies *all* icons of the Adwaita theme, resulting in 6000+ files, while we use about 12 icons currently (all in VSID).
** I (compyx) am working on a system to have the Gtk3 source files indicate which icons they use and create a list of icons to include in a bindist. But I'm afraid a simple shell script won't do, I may have to use Python or Perl. I think autotools depends on Perl, so there's that.
** I (compyx) am working on a system to have the Gtk3 source files indicate which icons they use and create a list of icons to include in a bindist. But I'm afraid a simple shell script won't do, I may have to use Python or Perl. I think autotools depends on Perl, so there's that.
* The build system doesn't properly handle --enable-debug on Windows: all binaries are stripped when creating a bindist. This makes creating debug builds for Windows a futile effort.
* The build system doesn't properly handle --enable-debug on Windows: all binaries are stripped when creating a bindist. This makes creating debug builds for Windows a futile effort.


===Documentation===
==Documentation==
====MAN Pages====
===MAN Pages===
* the man pages are very outdated and should perhaps be generated from the infotext
* the man pages are very outdated and should perhaps be generated from the infotext
** the man pages refer to the path where the html documentation can be found, this should get adjusted to whats actually used
** the man pages refer to the path where the html documentation can be found, this should get adjusted to whats actually used
Line 56: Line 54:
* man pages for the individual emulator binaries should get installed as symbolic links to vice.1
* man pages for the individual emulator binaries should get installed as symbolic links to vice.1


====Manual====
===Manual===
=====Technical=====
====Technical====
* many nodes are not yet linked correctly, which makes some of the exporters output garbled and/or suboptimal output (windows .hlp, unix .info).
* many nodes are not yet linked correctly, which makes some of the exporters output garbled and/or suboptimal output (windows .hlp, unix .info).


: '''Workaround:''' use the .html or .pdf documentation, which is exported correctly.
: '''Workaround:''' use the .html or .pdf documentation, which is exported correctly.


=====Content=====
====Content====
The documentation is partly outdated and/or incomplete, in particular:
The documentation is partly outdated and/or incomplete, in particular:


Line 71: Line 69:


* Generate only vice.pdf and make available via the UI, spawning the default PDF handler on the OS, or point to the HTML documentation on the website.
* Generate only vice.pdf and make available via the UI, spawning the default PDF handler on the OS, or point to the HTML documentation on the website.
* Unix: Install docs into their proper location, in other words: certainly '''not''' in $prefix/lib64/vice/doc.


for details look at doc/Documentation-Howto.txt
for details look at doc/Documentation-Howto.txt


----
==Testbench==
 
===Testbench===


* many test programs (mostly for vic20) are not yet integrated into the automatic testing
* many test programs (mostly for vic20) are not yet integrated into the automatic testing
Line 82: Line 80:
* '''TODO''': make a test program to determine visible screen dimensions
* '''TODO''': make a test program to determine visible screen dimensions


----
==Emulators==


===Subsystems===
===Subsystems===
Line 112: Line 110:
* contact-bounce is not emulated
* contact-bounce is not emulated
: '''TODO''': make a proper test program
: '''TODO''': make a proper test program
* when selecting "swap joysticks" or "swap userport joysticks" this will actually swap the related resources, which may be surprising when saving settings and loading them later. it also means its impossible to display whether they are swapped or not in the UI
: '''TODO''': create a "JoysticksAreSwapped" resource, and update the code accordingly


====Joystick port devices====
====Joystick port devices====
Line 183: Line 183:
======Dual Drives======
======Dual Drives======


r25459 by Rhialto:
Dual Drives are currently implemented as a weird hack, to improve this we must do some significant changes to how drives are handled internally. For details see [[Improving_dual_disk_drive_handling]]
 
I enabled up to DRIVE_NUM IEEE-488 drives, rather than 2 (in True Drive Emulation mode). In some places where they are enumerated, it is 4. The drives use their full 3 bits of jumpered drive number now, rather than just 1 bit.
 
I have also generalised  code so as to allow another dual drive. Since dual drives currently use up two device numbers, it will use 10 and 11. I'm currently simplifying the methods for checking the dualness of a drive.
 
When that is done, I hope to have gained enough understanding of the code to remove the horrible hack of using 2 devices for a dual drive, and remove it. It looks like it will simplify a lot of code (including removing lots of code that I changed for allowing 2 dual drives). That will have some repercussions on the GUIs, since for every drive you may need to be able to attach ''two'' image files. It also would add an extra "drive" parameter (in addition to the current "unit" parameter) to a shedload of functions, although this is a pretty mechanical change. In fact, it is the GUI change that currently holds me back...
 
'''TODO''': Think of some elegant way to represent settings for 8 floppy images (for 4 dual drives), without requiring all GUIs to be updated at once.
 
'''TODO''': After that, I can rework the code to make dual drives more regular and hence allow 4 of them.


=====Extensions=====
=====Extensions=====
Line 218: Line 208:
* printer noise is not emulated
* printer noise is not emulated
* printers don't work on the PET (or other IEEE-488 computers)
* printers don't work on the PET (or other IEEE-488 computers)
* piping to an external program does not work on windows due to missing implementation of fork_coproc, see [[RS232#piping_to_an_external_program|here]].
====RS232 Emulation====
* piping to an external program does not work on windows
Detailed info on the state of RS232 emulation can be found [[RS232|here]].


----
----
Line 232: Line 229:


* Move Lynx and ZipCode handling out of c1541 and into VICE core so we don't have to spawn c1541 to generate a disk image from a Lynx container or a zipcoded disk image. And while we're at it, rewrite that code, it's ... less than ideal.
* Move Lynx and ZipCode handling out of c1541 and into VICE core so we don't have to spawn c1541 to generate a disk image from a Lynx container or a zipcoded disk image. And while we're at it, rewrite that code, it's ... less than ideal.
* Remove optional dependency on libreadline once linenoise-ng has been tested properly.
:: See if linenoise-ng can be made to work with the MSYS2 shell, which would help with debugging c1541.


===Chips===
===Chips===
Line 335: Line 335:
* I/O "dump" function is missing
* I/O "dump" function is missing
used in: 1570/1571/1581
used in: 1570/1571/1581
====ACIA (6551)====
Detailed info on the state of RS232 emulation can be found [[RS232|here]].


----
----
Line 361: Line 365:


'''NOTICE:'''
'''NOTICE:'''
-------------
 
Since revision 36182 (2019-04-08), VICE will no longer build the old x64 binary by default. To make VICE build x64, pass `--enable-x64` to configure.
Since revision 36182 (2019-04-08), VICE will no longer build the old x64 binary by default. To make VICE build x64, pass `--enable-x64` to configure.


Line 473: Line 477:
* some combinations of selected keymap and keyboard model do not work because of missing keymaps
* some combinations of selected keymap and keyboard model do not work because of missing keymaps
* CPU history (chist) implementation is incomplete
* CPU history (chist) implementation is incomplete
----


===Ports===
==Ports==


* Make a list of Hotkeys used per port, compare and try to make them the same / alike. ( [[Hotkey cleanup]] )
* Make a list of Hotkeys used per port, compare and try to make them the same / alike. ( [[Hotkey cleanup]] )
Line 488: Line 491:
* improve vsync / add option to sync to actual output framerate ( https://sourceforge.net/tracker/?func=detail&aid=3009846&group_id=223021&atid=1057620 )
* improve vsync / add option to sync to actual output framerate ( https://sourceforge.net/tracker/?func=detail&aid=3009846&group_id=223021&atid=1057620 )


====Windows====
===Windows===


* there seems to be a problem with ParSID ( https://sourceforge.net/tracker/?func=detail&aid=2981666&group_id=223021&atid=1057617 )
* there seems to be a problem with ParSID ( https://sourceforge.net/tracker/?func=detail&aid=2981666&group_id=223021&atid=1057617 )
* piping to an external program does not work on windows due to missing implementation of fork_coproc, see [[RS232#piping_to_an_external_program|here]].
* the native (console based) monitor does not work in windows


====Linux====
===Linux===


* ADD: support for rtkit ( https://sourceforge.net/tracker/?func=detail&aid=3088679&group_id=223021&atid=1057619 )
* ADD: support for rtkit ( https://sourceforge.net/tracker/?func=detail&aid=3088679&group_id=223021&atid=1057619 )


====*BSD====
===*BSD===


* serial device hangs on open() in NetBSD 5.0.2 ( https://sourceforge.net/tracker/?func=detail&aid=3043294&group_id=223021&atid=1057617 )
* serial device hangs on open() in NetBSD 5.0.2 ( https://sourceforge.net/tracker/?func=detail&aid=3043294&group_id=223021&atid=1057617 )


====BeOS====
===BeOS===


* Sound problems on slower machines (P100) with a non-official driver for sb16.
* Sound problems on slower machines (P100) with a non-official driver for sb16.
Line 507: Line 512:
===Archdep cleanup===
===Archdep cleanup===


* merge GTK3 and SDL archdep code
* <s>merge GTK3 and SDL archdep code</s>
** <s>remove use of GLib code so the Gtk3 archdep code can be merged with SDL archdep (which doesn't use GLib for obvious reasons)</s>
** <s>remove use of GLib code so the Gtk3 archdep code can be merged with SDL archdep (which doesn't use GLib for obvious reasons)</s>
I fixed that, but there still plenty of SDL archdep code supporting lesser-known/ancient/crap OSes, so that needs to handled or removed somehow. (CPX)
<s>I fixed that, but there still plenty of SDL archdep code supporting lesser-known/ancient/crap OSes, so that needs to handled or removed somehow. (CPX)</s>


* make sure VICEDIR, DOCDIR, LIBDIR etc (add here) are NOT used in common code (ONLY archdep)
* <s>make sure VICEDIR, DOCDIR, LIBDIR etc (add here) are NOT used in common code (ONLY archdep)</s>
** <s>create functions to retrieve the respective paths instead</s>
** <s>create functions to retrieve the respective paths instead</s>
*** <s>make sure common code uses these, ie no magic fiddling with archdep_boot_path() per platform (except in archdep)</s>
*** <s>make sure common code uses these, ie no magic fiddling with archdep_boot_path() per platform (except in archdep)</s>
Line 536: Line 541:


===== Windows =====
===== Windows =====
MAINTAINER WANTED!


./configure --enable-native-gtk3ui
./configure --enable-native-gtk3ui
Line 553: Line 560:
This is a list of things to do and bugs to fix. This is no way an exhaustive list, to get a better understanding of what needs to be fixed/altered, run this command inside VICE's top dir: <code>grep -n 'FIXME\|TODO\|XXX' `find src/arch/gtk3 -name '*.c'`</code>, and be amazed.
This is a list of things to do and bugs to fix. This is no way an exhaustive list, to get a better understanding of what needs to be fixed/altered, run this command inside VICE's top dir: <code>grep -n 'FIXME\|TODO\|XXX' `find src/arch/gtk3 -name '*.c'`</code>, and be amazed.


* <b>Write documentation on how to use the UI</b>


* make sure both hard- and software rendering match whats described in [[Scaling_cleanup]] - if so, the page can be cleaned out
* make sure both hard- and software rendering match whats described in [[Scaling_cleanup]] - if so, the page can be cleaned out
Line 564: Line 572:
** data/fonts and data/logos should go to data/common
** data/fonts and data/logos should go to data/common
** <s>TODO: add vice.gresource to install/bindist</s>
** <s>TODO: add vice.gresource to install/bindist</s>
** <s>TODO: load the CBM font for the file selector from vice.gresource</s> this is not possible, now using fontconfig on Linux and GDI on Windows. MacOS needs testing, <s>it might support fontconfig, but </s> we'll <s>probably</s> have to use whatever API MacOS uses.
** <s>TODO: load the CBM font for the file selector from vice.gresource</s>


* Perhaps the "show menu/statusbar when fullscreen" menu item should be check button?
* Perhaps the "show menu/statusbar when fullscreen" menu item should be check button?
Line 578: Line 586:
:: Someone should also try this on MacOS, see what happens there.
:: Someone should also try this on MacOS, see what happens there.


* <s>Keyboard layouts/keymaps: provide feedback to the user when a keymap/layout cannot be selected (for example symbolic + Dutch: VICE 'accepts' the choice but after moving out of the dialog and reentering, the layout is reset to US).</s>


===== Per emulator TODOs/BUGs =====
* Move joystick related items from the main menu into a popup menu on the statusbar's joysticks widget.
 
This is a list of emulator-specific BUGs/TODOs. Scratch out items as we go, perhaps mentioning the commit(s) that fixed the issue(s).
 
 
====== x64/x64sc ======
 
* Check model settings glue logic.
 
 
====== x64dtv ======
 
* Check model settings glue logic.
 
====== xscpu64 ======
 
* Check model settings glue logic.
 


====== x128 ======
* Create a context-menu for the emulated display with some display settings. Once that is done, and found to be usable, remove items like 'fullscreen' from the main menu.


* Update model settings UI to reflect updated model list and properly implement all glue logic.
:: Mostly done, needs further work on the "BoardType" resource to determine the difference between C128 and C128D models, and perhaps moire.
* Perhaps move C128 "Bank 2 & 3" from I/O extension into the C128 model setting page.
====== xplus4 ======
* Check model settings glue logic.
:: plus4_get_model() depends on loaded kernal, so switching between PAL/NTSC for C16 and Plus4 results in "Unknown" in the model list. No easy way to fix this. I certainly don't want to move the ROMs settings page into the Model settings.
====== xvic ======
* Check model settings glue logic.
** Fixed RAM banks glue logic
** VIC21 logic is still mysterious: selecting VIC21 and then PAL results in model "Unknown", is this supposed to happen or do we revert to VIC20/PAL?
====== xcbm5x0 ======
* <s>Check model settings glue logic.</s>
Seems okay now, someone with some experience with/knowledge of CBM-II 5x10 should check this.
====== xcbm2 ======
* Check model settings glue logic.
====== xpet ======
* Check model settings glue logic.
:: Seems to be fine, someone with actual PET knowledge should check this, especially the "SuperPET" stuff.


====== vsid ======
====== vsid ======
Line 642: Line 602:


* STIL view: some tunes (for example Last Ninja 2) print empty "tune #x" entries, so you'll get "Tune #1" in blue and a few empty lines, in the case of LN2 this goes on until tune #6. Most likely a bug in the use of hvsclib, not the lib itself.
* STIL view: some tunes (for example Last Ninja 2) print empty "tune #x" entries, so you'll get "Tune #1" in blue and a few empty lines, in the case of LN2 this goes on until tune #6. Most likely a bug in the use of hvsclib, not the lib itself.
* Playlist: allow keyboard navigation. Perhaps also multi-select via Ctrl or Shift to delete multiple entries?
* add a "STOP" icon


====== Statusbar ======
====== Statusbar ======
Line 697: Line 661:
The list of covered resources is [[Gtk3_Resource_Coverage|here]]
The list of covered resources is [[Gtk3_Resource_Coverage|here]]


* xpet: "model settings" - more glue logic is needed (2017-11-21)
* ROM settings are missing (partially supported, needs work (2018-01-31)
* ROM settings are missing (partially supported, needs work (2018-01-31)
* HardSID settings are missing
* HardSID settings are missing
* x64/x64sc/x64dtv/xscpu64/xplus4/xpet/xcbm2: Check model settings glue logic.
* x128; Update model settings UI to reflect updated model list and properly implement all glue logic.
:: Mostly done, needs further work on the "BoardType" resource to determine the difference between C128 and C128D models, and perhaps more.
* Perhaps move C128 "Bank 2 & 3" from I/O extension into the C128 model setting page.
* xplus4: plus4_get_model() depends on loaded kernal, so switching between PAL/NTSC for C16 and Plus4 results in "Unknown" in the model list. No easy way to fix this. I certainly don't want to move the ROMs settings page into the Model settings.
* VIC21 logic is still mysterious: selecting VIC21 and then PAL results in model "Unknown", is this supposed to happen or do we revert to VIC20/PAL?
* xpet seems to be fine, someone with actual PET knowledge should check this, especially the "SuperPET" stuff.
===== Printer Settings =====
* the radio button on the right called "output device" is called "text output device" on printer 7 tab. it should always be just "output device"
* at the bottom it should be "printer output device" instead of "printer text output devices"
* all 3 "output devices" are the same, and behave the same. there is no point in implying they are not (by adding "file dump" or "exec")
===== RS232 Settings =====
* all 4 "RS232 Devices" at the bottom are the same. they should all have a "browse" button and a baudrate selection.


==== Drive settings ====
==== Drive settings ====
Line 708: Line 689:


==== C64 Cartridge settings ====
==== C64 Cartridge settings ====
* "set current cartridge as default" is missing in the GUI
* <s>"set current cartridge as default" is missing in the GUI</s>


* check I/O extensions for proper behaviour (attach/detach, load/save images etc):
* check I/O extensions for proper behaviour (attach/detach, load/save images etc):
Line 742: Line 723:
==== Feature requests / Stretch goals ====
==== Feature requests / Stretch goals ====


* Add some way to show the keycodes of the keys being pressed (perhaps in the status bar?) - that would make it a lot easier to fix/create keymaps
* <s>Add some way to show the keycodes of the keys being pressed (perhaps in the status bar?) - that would make it a lot easier to fix/create keymaps</s>
* Add preview of the RAM init pattern (2017-11-08)
* Add preview of the RAM init pattern (2017-11-08)
* Add a 'smart' cartridge attach dialog: show "preview" of .crt image if selected in the dialog, show only valid cartridge types when selecting a cart image.
* Add a 'smart' cartridge attach dialog: show "preview" of .crt image if selected in the dialog, show only valid cartridge types when selecting a cart image.
Line 760: Line 741:
:: With the next release of the HVSC (#71), the SLDB will support milliseconds for time stamps and the Songlengths.txt file will be removed, leaving only Songlengths.md5. This means some updating of the HVSC code (src/hvsc) and the UI's (Gtk3 only for now, there's no HVSC support in the SDL version of VSID).</s>
:: With the next release of the HVSC (#71), the SLDB will support milliseconds for time stamps and the Songlengths.txt file will be removed, leaving only Songlengths.md5. This means some updating of the HVSC code (src/hvsc) and the UI's (Gtk3 only for now, there's no HVSC support in the SDL version of VSID).</s>


==== Documentation Wall of Shame) ====
==== Documentation Wall of Shame ====


The Gtk3 UI code is documented using Doxygen (as is the rest of VICE *cough*), but there are quite a few files not documented properly, so here's a little list of files needing updating (I've made doxygen skip novte/, that code is too weird, and I'll skip imported stuff like linenoise):
The Gtk3 UI code is documented using Doxygen (as is the rest of VICE *cough*), but there are quite a few files not documented properly, so here's a little list of files needing updating (I've made doxygen skip novte/, that code is too weird, and I'll skip imported stuff like linenoise):
Line 818: Line 799:
* Sounds terrible unless sampling is lowered from default 44Khz to 22Khz [https://sourceforge.net/p/vice-emu/bugs/984/]
* Sounds terrible unless sampling is lowered from default 44Khz to 22Khz [https://sourceforge.net/p/vice-emu/bugs/984/]
* Emulator in default config makes no sound unless the OutputMode is changed to Stereo. [https://sourceforge.net/p/vice-emu/bugs/983/]
* Emulator in default config makes no sound unless the OutputMode is changed to Stereo. [https://sourceforge.net/p/vice-emu/bugs/983/]
----


==External Libraries==
==External Libraries==
Line 993: Line 972:
** add support for switching the emulated 1351 mouse to joystick mode by doing a hard reset while pressing the right mouse button ( https://sourceforge.net/tracker/?func=detail&aid=2631893&group_id=223021&atid=1057620 )
** add support for switching the emulated 1351 mouse to joystick mode by doing a hard reset while pressing the right mouse button ( https://sourceforge.net/tracker/?func=detail&aid=2631893&group_id=223021&atid=1057620 )
** add support for 8player joystick adapter "inception" ([http://www.c64.cz/inception/])
** add support for 8player joystick adapter "inception" ([http://www.c64.cz/inception/])
** add support for the C-Net dongle ([https://1200baud.wordpress.com/2018/10/31/c-net-dongle-cracked/])


* Tape Port
* Tape Port

Revision as of 13:52, 13 September 2019

This is the list of known problems. also look at Tracker: open Bugs

This list always refers to the status of the last major release version, which was 3.3. Items that have been fixed by the time of a major release will be removed, items fixed after that will be marked as fixed and stay until the next major version. New items will be added as noticed.

Prime Directive

  • All developers shall subscribe to the vice-emu-mail mailinglist and perhaps join #vice-dev on freenode too (highly recommended).
  • Please respect the coding guidelines.
  • Document your code so other people than you are able to understand and fix it in a decade or two.
  • When adding/changing stuff that needs (G)UI items/changes, all developers should update the SDL and GTK3 UIs themselves, and immediately following their respective changes.
  • When adding/changing command-line options and/or resources, adding a new feature or change the behavior of an existing feature, please update the documentation.
  • After fixing a bug or implementing a new feature, update its status on the Bug Tracker and mark it as fixed in the TODO list below.
  • And most importantly...
 <@_tlr> Please at least test the issue you were trying to fix before committing.
That means: you break it, you fix it. Do not commit deal breaking changes without communicating it with the rest of the team. Generally regressions are not acceptable and respective commits are subject to be reverted.

Code cleanup and streamlining

As of 3.2 we started removing a lot of the old cruft, that was dangling around in the tree for way too long, to make maintenance easier

  • remove compiler- and platform- specific hacks (IFDEFS) in common code
$ ./src/findhacks.sh ccarchdep
$ ./src/findhacks.sh archdep


  • add howto into docs dir for gtk3 building (needs windows/linux/osx specific instructions)
docs for Linux and Windows (msys2) are there, OSX is well underway
  • remove the third scaling method described in Scaling_cleanup (formerly used by XAW)
  • add proper Icons to both UIs
TODO: update the Icons page with all required info

Build system

  • The build system currently has some code in the Makefile's to conditionally build x64sc, x64dtv and xscpu64, but these are unconditionally set to 'true' in configure. So the build system can be somewhat simplified by removing these conditionals from the Makefile.am's and the bindist scripts.
    • fixed for Windows and Linux
  • The bindist script for SDL on Windows is currently broken, it doesn't copy any required DLL's, nor does it add an SVN revision string to any bindist if building from trunk. Probably the easiest way to fix this is to take a good look at the Gtk3 `make-bindist_win32.sh` script and update the SDL script accordingly. (fixed in trunk)
  • The Gtk3 Windows port bindist script copies *all* icons of the Adwaita theme, resulting in 6000+ files, while we use about 12 icons currently (all in VSID).
    • I (compyx) am working on a system to have the Gtk3 source files indicate which icons they use and create a list of icons to include in a bindist. But I'm afraid a simple shell script won't do, I may have to use Python or Perl. I think autotools depends on Perl, so there's that.
  • The build system doesn't properly handle --enable-debug on Windows: all binaries are stripped when creating a bindist. This makes creating debug builds for Windows a futile effort.

Documentation

MAN Pages

  • the man pages are very outdated and should perhaps be generated from the infotext
    • the man pages refer to the path where the html documentation can be found, this should get adjusted to whats actually used
  • the following man pages are missing: vsid
  • man pages for the individual emulator binaries should get installed as symbolic links to vice.1

Manual

Technical

  • many nodes are not yet linked correctly, which makes some of the exporters output garbled and/or suboptimal output (windows .hlp, unix .info).
Workaround: use the .html or .pdf documentation, which is exported correctly.

Content

The documentation is partly outdated and/or incomplete, in particular:

  • some info that was previously hidden in target specific articles on the VICE knowledge base should get merged into vice.texi - the remaining articles are here
  • some descriptions of emulator formats are missing (D67, D1M, D2M, D4M...)
  • descriptions of several snapshot modules are missing (Plus4, TED...)

generate target specific documentation

  • Generate only vice.pdf and make available via the UI, spawning the default PDF handler on the OS, or point to the HTML documentation on the website.
  • Unix: Install docs into their proper location, in other words: certainly not in $prefix/lib64/vice/doc.

for details look at doc/Documentation-Howto.txt

Testbench

  • many test programs (mostly for vic20) are not yet integrated into the automatic testing
  • TODO: fix the reference screenshots and/or the scripts so they dont rely on the "normal" rendering mode anymore
  • TODO: make a test program to determine visible screen dimensions

Emulators

Subsystems

Keyboard

  • When a key which is shifted on the real machine but unshifted on the PC or Unix keyboard you are using is pressed, the virtual shift is pressed together (i.e. at the same clock cycle) with the main key; this could not work with some keyboard routines.
note: also see this knowledgebase article
Workaround: If you have to use the function keys, press the (real) shift key manually (e.g. F2 = Shift + F1, F4 = Shift + F3 and so on); this also works with other keys.
  • When typing very quickly, some keypresses might get lost. This comes from the fact that the keyboard is (and can not) be scanned in real time (ie every 1mhz cycle). Even if we could remove the per frame scanning from the emulator itself, the operating system and last not least the keyboard itself would still impose a certain limit (something like 10ms for USB HID keyboards, for example). That means if a key is pressed and released within that timespan, the emulator does (and can not) know about it.
Workaround: the only workaround is to type slower, it cant be fixed.
  • Some ports/emulators/keyboard-types do not have all required keymaps (and a fallback will used) - look at Keymaps for details
  • Although "shift lock" can be mapped to a key, not all ports and/or emulators support it due to missing keymaps and/or implementation details.
TODO: check ports and fix or at least add a comment in the keymaps
  • contact-bounce is not emulated
TODO: make a proper test program

Joystick

TODO: make a proper test program
  • when selecting "swap joysticks" or "swap userport joysticks" this will actually swap the related resources, which may be surprising when saving settings and loading them later. it also means its impossible to display whether they are swapped or not in the UI
TODO: create a "JoysticksAreSwapped" resource, and update the code accordingly

Joystick port devices

  • Paperclip 64 dongle emulation is broken

Commandline

  • some options where the available parameters depend on the machine type lack proper descriptions (-drivetype)

Monitor

  • When loading a snapshot, the monitor break/watchpoints break.
  • Improve the remote interface

History Recording

  • history recording currently breaks on a lot of user actions, such as using autostart or attaching a cartridge.
Workaround: make sure to start up with a bog standard c64, and then load/run the program in question manually

note: since history recording is very error prone and hard to debug, we depend on feedback (on either failure or success) on this topic very much. if you still have problems with the current release, please report them including testcases.

Screenshots / Media Recording

  • Screenshots with activated video filter (CRT emulation / Scale2x) do not deliver the expected (filtered) result.

Rendering

  • some things are still shared by videochips although they shouldnt be, resulting in conflicts for eg the color generation (visible in x128 in ports that show two windows at a time, when crt emulation is enabled, eg adjusting brightness affects also the other window)
  • TODO add a 4:3 fixed aspect ratio scaling mode
  • TODO when a test program has been written, adjust the "normal" border mode accordingly (CAUTION: fix testsuite first)
  • TODO put all border mode parameters into arrays, make a global function to query the parameters and modes (for UIs) and then add "TV" mode (like "normal", but not centered)
CRT Emulation
  • the rf-modulator output characteristics are not emulated, which means the so called "black bleeding" effect does not work (emusux0r, http://www.csdb.dk/release/?id=81780)
  • artefact color and luma/chroma crosstalk are not emulated (eg the "red/green stripes")
  • color generation should get a partial rewrite according to new research by pepto (http://colodore.com)

see http://hitmen.c02.at/temp/palstuff/ for some further info on this topic.

Drive Emulation

  • Dual disk drive 2040/3040 support (DOS1, 670 blocks free) is not working
  • when using a dual drive, and no TDE, only the first drive (0:) can be used.
  • G64 image support is incomplete, the speedzone definitions are completely ignored
Note: this is no problem in practise, so far not a single title (game) could be located that would actually require this kind of support to work. Incase you find a program that needs this kind of support, please let us know.
  • RPM and Wobble settings have currently no effect when P64 images are used
virtual Devices
  • handling of CBM style sub partitions is incomplete, write operations on sub partitions may give unexpected results.
  • RELative files are only supported when using disk images ( https://sourceforge.net/p/vice-emu/bugs/703/ )
  • support for double sided disk images is very shaky, since no concept of disk sides exists and the tracks on the second side are referenced by an offset into the image, the handling of images with different number of tracks is needlessly hard and complicated (and thus broken).
True Drive Emulation
  • serial timing latency is not implemented. due to their physical properties, it takes about half a cycle for a value to show up at the respective output pin after it has been written to the register. and respectivly, it takes about half a cycle from changing an input pin until the value in the respective register changes.
  • mechanical delays (such as head stepping and motor spinup) are not emulated yet.
  • accessing device #7 on the IEC bus works (only real devices), but it only works if True Drive Emulation is OFF, even though this has nothing to do with drives. This needs to be fixed in TDE somehow.
1541
  • 1541 Emulation still fails a few test programs
1571
  • 2mhz mode of the 1571 is not handled correctly
    • drive CPUs always run at 1Mhz for all drives (hardcoded 1000000 at a few places)
    • 1571 has extra delay on on reading sync inside the drive, ("you cannot use BVC in 2mhz mode!")
  • 1571CR emulation does not work correctly
  • double sided 1571 images do not work correctly
    • regular (70 tracks) vs extended (80 or 84 tracks) d71 images are not handled at all (vdrive problem)
    • creating (formatting) G71 does not work correctly, the second BAM block will be wrong (vdrive problem)
    • double sided P64 can be used, but can not be created from within VICE (see patch #122, r32586). since these are non existant "in the wild" and probably not needed for anything - not a big problem :) to handle this properly, a seperate image format should get created (at least internally)
Dual Drives

Dual Drives are currently implemented as a weird hack, to improve this we must do some significant changes to how drives are handled internally. For details see Improving_dual_disk_drive_handling

Extensions
  • when using dolphin dos 3 emulation, the state of the mc6821 is not saved to/restored from snapshots
  • when using supercard+ emulation, the optional additional index hole sensor (for the IHS nibbler) is not emulated
Drive Noise
  • since the current implementation is a very simple sample player, things like "drive composer" will not work

Datasette Emulation

  • unlike with a real datasette, the emulated counter will stop counting when no tape/image is present
  • when a t64 image is attached, the datasette status will incorrectly say "no image".
Note: since t64 is currently only accessable via kernal traps, the datasette emulation actually treats this case as if no image is present. The respective code must be updated so the datasette emulation actually "knows" about when t64 is in use.
  • motor noise is not emulated

Tape port devices

  • DTL Basic Dongle emulation is broken

Printer Emulation

there perhaps should be a way to explicitly set a directory for printer output files Gpz 01:24, 4 July 2011 (UTC)
  • printer noise is not emulated
  • printers don't work on the PET (or other IEEE-488 computers)
  • piping to an external program does not work on windows due to missing implementation of fork_coproc, see here.

RS232 Emulation

  • piping to an external program does not work on windows

Detailed info on the state of RS232 emulation can be found here.


c1541

unfortunately to fix this a lot of c1541 will have to be rewritten (mount image only once, not for each operation) Gpz (talk) 23:57, 13 December 2012 (UTC)


  • Move Lynx and ZipCode handling out of c1541 and into VICE core so we don't have to spawn c1541 to generate a disk image from a Lynx container or a zipcoded disk image. And while we're at it, rewrite that code, it's ... less than ideal.
  • Remove optional dependency on libreadline once linenoise-ng has been tested properly.
See if linenoise-ng can be made to work with the MSYS2 shell, which would help with debugging c1541.

Chips

CIA

  • the case when CIA1 port A and port B are both in output mode, port A outputs low, port B outputs high, both are connected via the keyboard matrix and a value is read from port B is not handled correctly ( testprogs/CIA/ciaports ; http://noname.c64.org/csdb/release/?id=5375 ) (has been improved but is not perfect)
  • the various analog side effects that must be considered when pressing two or more keys are not emulated correctly, so this will currently not produce the correct results in some corner cases.
  • Shift Register IRQ triggers only cycle too early (see this bug)
  • I/O "peek" function is broken

used in: C64, C128, 1570/71

SID

  • the POTX/POTY sampling period is not taken into account (512 cycles)
  • POTX/POTY sampling jitter is not emulated
  • only one mouse or pair of paddles can be emulated at a time
  • 'dump' support in the monitor is missing

used in: C64, C128, CBM2, (VIC20, PLUS4, PET: SID cart)

TED

used in: Plus4

VDC

  • Some basic features of the VDC are missing:
  • Registers 34/35 (horizontal blanking position) not implemented
  • $d600 bit 7 STATUS flag is only approximately implemented. Fixing requires emulating the internal timing of the VDC.. (partially implemented in r35456, also see testprogs/VDC/vdctiming)
  • Differences between 8563 and 8568 are not all emulated, eg. register 38
  • Snapshot doesn't include VDC
  • Clock calculation for lightpen is incorrect

used in: C128

VIC

used in: VIC-20

VIC-II

used in: C64, CBM2

VIC-IIe

  • The test bit is not emulated, which results in things like 'real interlace' ([1]) and the $D030 new VIC-IIe color palette hack ([2]) not working.

used in: C128

t6721a

  • 48bit frames support is incorrect/broken
  • synthesizer condition 2 loss-effect-, shape- and repeat- bits have no effect
  • reading from the speach rom is not emulated (which is not really an issue since neither magic voice nor v364 have one)
  • snapshot support is missing

used in: Magic Voice, Plus4 (V364)

mc6821

  • interrupts are not implemented
  • implementation of C2 output modes is incomplete

used in: Formel64, Magic Formel, Dolphin-DOS 3

CS8900a

  • snapshot support is missing

used in: RR-Net/TFE

RIOT

  • I/O "peek" function is broken
  • I/O "dump" function is missing

used in: 2040/3040/4040/1001/8050/8250

PC8477/DP8473

  • I/O "dump" function is missing

used in: FD4000/FD2000

WD1770

  • I/O "dump" function is missing

used in: 1570/1571/1581

ACIA (6551)

Detailed info on the state of RS232 emulation can be found here.


Cores

spi-sdcard

  • snapshot support is missing

used in: MMC64, MMC Replay

ser-eeprom

  • snapshot support is missing

used in: MMC Replay

midi

  • snapshot support is missing

used in: C64, VIC-20


Machines

vsid

x64 / x64sc

NOTICE:

Since revision 36182 (2019-04-08), VICE will no longer build the old x64 binary by default. To make VICE build x64, pass `--enable-x64` to configure.

Currently the bindist scripts of Gtk3 and SDL on Windows have been updated to reflect this, and `make install` on Linux (and probably BSD) handles this fine as well.

The maintainers of the Amiga, BeOS/Haiku, OS/2 and MacOS should update their respective install scripts to make this work on those ports.

general
  • the memory layout for "Max Machine" is not yet correct
  • when SX-64 is selected, the tick for the CIA TOD clocks should always be 60Hz (regardless of PAL/NTSC)
  • for details see C64models
x64 issues addressed by x64sc

To clarify... these will never (as in can't) be emulated in the regular x64, unless we end up replacing x64 with x64sc.

  • some VIC-II bugs present in the old VIC-II core
    • inline gfx data changes are not emulated (see testprogs/VICII/gfxfetch/)
    • The VIC-II implementation lacks cycle exact sprite collision support
    • VIC-II shows wrong colors when switching from hires background to idle with borders open (see testprogs/VICII/border/*, Krestology)
    • VIC-II fetches from cartridge in ultimax mode can not be emulated properly for all carts

note: this is also broken in xcbm2

Workaround in all cases: use x64sc :)

x64 specific problems

note: While most of the x64sc improvements/fixes are impossible to shoehorn into x64 (hence the split), a few things could still be improved:

Workaround in all cases: use x64sc :)

Cartridge System

note: the detailed todo list/status is here.

  • some carts have no snapshot support yet (still broken: Magic Voice, MMC Replay, RR-Net MK3, Ethernet.)
    • IDE64 & ATA system can only handle "readonly" snapshots now. Somehow the image file must be matched to the snapshot to prevent corruption.
    • MMC64 snapshots do not include the SD-card
  • some carts do not work 100% yet (still broken: Magic Voice, MMC Replay.)
    • Magic Voice: emulation of the speech chip is incomplete (see Todo#t6721a), this breaks some words included in the magic voice rom and the "a-bee-c" cartridge. Memory mapping is incomplete/broken (which however affects no known software/testcase).
    • MMC Replay: only the BIOS mode works right now; the monitor may incorrectly access cartridge memory (even) if "bank cart" is explicitly set
  • the (very strange, and incompatible with most cartridges) passthrough port of the SFX sound expander is not emulated
  • various cartridges have no support for verbose i/o dump in the monitor
  • Passthrough port functionality depends on ordering of cartridge attaches, especially visible from the command line. (e.g. MMC64+RR ok, RR+MMC64 not)

x128

  • Support for fast mode (2MHz) is implemented but incomplete, detailed information about the stealing of cycles by the VICII when switching back from fast mode is missing and therefor the emulation of it is incorrect.
  • support for c128 specific expansion port handling/mapping is missing in the c64/c128 cartridge system (MMC Replay, FastLoad128, MACH128, other?)
  • the relative speed and details like cycle-stealing of the z80 is inaccurate ( https://sourceforge.net/tracker/?func=detail&aid=3476760&group_id=223021&atid=1057617 )
xmx provided a test program, see testprogs/c128/z80/cycletimer
  • CPU history (chist) implementation is incomplete

xvic

x64dtv

The DTV emulator is very inaccurate and is in need of a partial rewrite. Maintainer wanted!

xplus4

The plus4 emulator is generally work in progress and not yet "ready". Maintainer wanted!

xcbm2

  • The CBM-II emulator, when the execution bank is set to an open memory bank, sets the zeropage and stack access to unmapped, but actually existing memory. This is a bug but cannot be avoided with the current CPU code architecture.
  • break- and watchpoints in zeropage are broken. this is because of the old cpu core, and can likely not be fixed without migrating to the new one.
  • banking in the monitor is broken
  • breakpoints are broken
    • when a breakpoint is hit, the monitor disassembles from the wrong bank
    • breakpoints will only hit in the bank which is active in the monitor (!)
  • when running the burn-in diagnostic tests, the CIA is reported as bad ( https://sourceforge.net/tracker/?func=detail&aid=3102493&group_id=223021&atid=1057617 )
note: run like this: xcbm2 -model 610 -ntsc -drive8type 8050 -virtualdev +truedrive -8 cbm2-burnin.d80
  • CPU history (chist) implementation is incomplete

xcbm5x0

  • The emulator, when the execution bank is set to an open memory bank, sets the zeropage and stack access to unmapped, but actually existing memory. This is a bug but cannot be avoided with the current CPU code architecture.
  • break- and watchpoints in zeropage are broken. this is because of the old cpu core, and can likely not be fixed without migrating to the new one.
  • banking in the monitor is broken
  • In the C510 emulation the VIC-II timing is not exact, i.e. the stopping of the CPU during bad lines is wrong.
  • The C510 emulation uses the old VIC-II core which means no cycle exact sprite collisions, no inline gfx changes, and probably more.
  • CPU history (chist) implementation is incomplete

xpet

  • When running the "8296d diagnostic" test of the 8296 system disk on "xpet -model 8296" some tests fail:
    • when TDE is enabled, the program will hang. when TDE is disabled, the IEEE interface status will be reported as bad
    • the userport is reported as bad (perhaps some dongle is needed?)
note: run like this: "xpet -model 8296 -drive8type 8050 -8 8296d-systemdisk.d82 -editor edit-4-80-b-50Hz.901474-04.bin". the "burnin8296" program seems to be an older version of the "8296d diagnostic" program. it runs when TDE is enabled, but the 50Hz irq test fails.
  • break- and watchpoints in zeropage are broken. this is because of the old cpu core, and can likely not be fixed without migrating to the new one.
  • some combinations of selected keymap and keyboard model do not work because of missing keymaps
  • CPU history (chist) implementation is incomplete

Ports

  • Make a list of Hotkeys used per port, compare and try to make them the same / alike. ( Hotkey cleanup )
  • enable/disable menu items in drive settings menu according to Drive_options_precedence
  • Fix all Keymap handling according to Keymaps

Windows

Linux

*BSD

BeOS

  • Sound problems on slower machines (P100) with a non-official driver for sb16.
  • Compiling with `--enable-ethernet` fails due to absence of rawnetarch.{c,h} missing --Compyx 2016-10-26 (tested on Haiku)

Archdep cleanup

  • merge GTK3 and SDL archdep code
    • remove use of GLib code so the Gtk3 archdep code can be merged with SDL archdep (which doesn't use GLib for obvious reasons)

I fixed that, but there still plenty of SDL archdep code supporting lesser-known/ancient/crap OSes, so that needs to handled or removed somehow. (CPX)

  • make sure VICEDIR, DOCDIR, LIBDIR etc (add here) are NOT used in common code (ONLY archdep)
    • create functions to retrieve the respective paths instead
      • make sure common code uses these, ie no magic fiddling with archdep_boot_path() per platform (except in archdep)
  • make sure common code ONLY includes archdep.h, not archapi.h

GTK3 UI

The how and why we go Gtk3 for *nix, Windows and OSX should be clear, but I'll reiterate: since we don't have any Windows or OSX maintainters left and failed to attract new ones, the decision was made to use Gtk3 as the new UI for 'modern' OSes.

Gtk3 is portable and widely supported and has a C interface. So we should be able to write the UI code once and have it run on our major platforms: Linux, Windows and OSX. Using GLib (a dependency of Gtk3) a lot of platform-dependent code in the UI can be avoided and many standard dialogs, such as open/save/select-dir need to written only once, Gtk3/GLib will handle most of the platform-dependent stuff.

Current development state

  • All emulators work, though some UI code still needs to be written or updated to properly support all machines
  • Default renderer is OpenGL 3.2 based (GTK 3.16 required) and does full HW scaling. Fallback renderer is Cairo-based, which will scale in software if necessary but slows down noticably when it does.
  • All UI code is hand-written, we tried using Glade/GtkBuilder, but the amount of machines and extra hardware VICE supports is way too much what a static UI can handle
  • Though many UI elements look okay, some don't. This isn't lazyness but rather to avoid tweaking the layout only to discover later that it still needs to be changed. So any layout/style issues will eventually get fixed. So don't complain about it, unless there are glaring bugs (such as dialogs that are too large to fit on a decent screen)
Unix (Linux)

./configure --enable-native-gtk3ui

  • starts up, video, audio, keyboard, joysticks, mouse working
Windows

MAINTAINER WANTED!

./configure --enable-native-gtk3ui

  • starts up, video, audio, keyboard, joysticks, mouse working
MacOS

./configure --enable-native-gtk3ui

  • TODO: make joystick input work
  • TODO: make mouse input work
    • mouse grab doesnt seem to work, also the provided POTX/Y values seem to be seriously laggy. mouse buttons and scrollwheel DO work however

BUGS/TODO

This is a list of things to do and bugs to fix. This is no way an exhaustive list, to get a better understanding of what needs to be fixed/altered, run this command inside VICE's top dir: grep -n 'FIXME\|TODO\|XXX' `find src/arch/gtk3 -name '*.c'`, and be amazed.

  • Write documentation on how to use the UI
  • make sure both hard- and software rendering match whats described in Scaling_cleanup - if so, the page can be cleaned out
  • save/restore window(s) size(s) and position(s) from vice.ini
Implemented, but only for a single display, no multi-display support yet. GDK seem to support multi-display setup querying, but we'd actually have to write code and test this to see how GDK handles this, if at all.
    • do not forget the VDC and the Monitor windows
VDC is handled, the monitor windows isn't, there aren't any resource for the monitor window, nor any event handlers. Another wish seems to be to put the VICII and VDC window next to each other for x128, which will probably mean introducing yet another resource to control this and override the Window1* resources. Probably some enum: USE_WINDOW1* = -1, ABOVE, BELOW, LEFT, RIGHT. And hope the Window Manager actually listens to our requests to move said window.
  • the logo/icon/s)/font(s) in about dialog should be embedded using GResource
    • data/fonts and data/logos should go to data/common
    • TODO: add vice.gresource to install/bindist
    • TODO: load the CBM font for the file selector from vice.gresource
  • Perhaps the "show menu/statusbar when fullscreen" menu item should be check button?
  • mouse grab (when mouse emulation is enabled) is not perfect. eg when the emulator is started with mouse enabled, the pointer is not initially moved into the emulator window.
  • Add support for non-ASCII characters in the various file/path dialogs. This means at least the disk, tape and cart dialogs, but probably should be expanded to the snapshot and screenshot/video/audio dialogs, maybe even the various cartridge image/eeprom paths and the machine/drive ROM paths.
Also update the fliplist UI code: when displaying disk image filenames in the fliplist, use g_locale_to_utf8() to properly display them in the popup menu.
  • Rework NetPlay UI into something both functional and better looking.
  • Going fullscreen and activating the (VTE) monitor does not present the monitor window on top of the emulated machine window. Alt-Tabbing away and back to VICE makes it work on Windows. It works as expected on at least KDE Plasma (KWin) and Gnome 3 (Mutter), so this seems to be a Windows problem. Someone with some actual understanding of the Windows window manager should have a look.
Someone should also try this on MacOS, see what happens there.
  • Keyboard layouts/keymaps: provide feedback to the user when a keymap/layout cannot be selected (for example symbolic + Dutch: VICE 'accepts' the choice but after moving out of the dialog and reentering, the layout is reset to US).
  • Move joystick related items from the main menu into a popup menu on the statusbar's joysticks widget.
  • Create a context-menu for the emulated display with some display settings. Once that is done, and found to be usable, remove items like 'fullscreen' from the main menu.


vsid
  • Fix drag-n-drop behaviour, dragging multiple SID files onto the playlist widget works, but on Linux at least, dropping a SID file on the STIL view widget doesn't work (specifically the GtkTextView), this works on Windows oddly enough.
  • Implement "goto-next-SID" when having SLDB support enabled.
  • When double-clicking a SID in the playlist, disable "Pause" when set in the controls.
  • STIL view: some tunes (for example Last Ninja 2) print empty "tune #x" entries, so you'll get "Tune #1" in blue and a few empty lines, in the case of LN2 this goes on until tune #6. Most likely a bug in the use of hvsclib, not the lib itself.
  • Playlist: allow keyboard navigation. Perhaps also multi-select via Ctrl or Shift to delete multiple entries?
  • add a "STOP" icon
Statusbar

Mostly done, needs a bit of love still.

  • the Tape Devices widget needs to check if resources can be set to avoid segfaults (2017-11-14)
Unix (Linux)
  • FIXME: The Unix port uses the XDG specification for the vice configuration files, so now `vicerc` is located in `$HOME/.config/vice`, not `$HOME/.vice`. Right now the 'autostart-${emu}.d64' files are also stored there, which is not quite correct, they should be in $XDG_CACHE_HOME (~/.cache).
Windows
  • TODO: the MIDI settings widget should show a combobox with supported drivers
  • in the HELP menu the "browse documentation" item is non functional. we either need a portable solution, or use archdep code here
    • its implemented now using the method recommended for GTK3. needs to be checked on windows and OSX.
Works on Windows now: seems Windows does not like URI's, but rather want simple filesystem paths, which finally allows the Windows UI to properly open the PDF file. The HTML fallback has been removed, no need for that.
  • When using fullscreen with OpenGL and pushing Alt+B to display the menu bar and the statusbar, the (popup) menu's are hidden behind the canvas. This is an upstream bug, see https://gitlab.gnome.org/GNOME/gtk/issues/1702, so not much we can do about it until a fix lands in upstream GDK.
macOS
  • GSettings schema files aren't loaded, so things like GtkFileChooser cause an abnormal exit, which means attaching disk images doesn't work.
  • joystick_ui_get_next_device_name should return the detected joysticks instead of the predefined list
  • TODO: test mouse -emulation and -grab
  • TODO: the MIDI settings widget should show a combobox with supported drivers
  • TODO: Add QuickTime recording settings widget, like the FFMPEG recording settings widget
  • FIXME: The Unix port uses the XDG specification for the vice configuration files, so now `vicerc` is located in `$HOME/.config/vice`, not `$HOME/.vice`. Right now the 'autostart-${emu}.d64' files are also stored there, which is not quite correct.

Monitor

as in using it in the "chars" section of an `m` command, good luck with that with current vte.
  • in the novte lib, GValueArray should be replaced by GArray
forget about that, really screws with the C++ crap. Until we find a better way, the novte stuff will have to do.
  • Allow font selection and resizing: VTE has signals for "increase/decrease font size", triggered by Ctrl +/-. And having a default font and size in the resources will also be useful, which needs some widgets in the settings UI to be able to select a font.

for some info on the monitor ui see: MonitorUI.

OpenGL

  • The OpenGL renderer should transform itself into a Cairo renderer if the system doesn't support OpenGL. (2017-11-15)
  • Do-not-scale option. Important for Cairo renderer, possible for OpenGL. (2017-11-15)
  • Stretch goal: the OpenGL renderer should fall back to legacy mode (the SDL renderer) if GTK3 itself has, instead of failing. (2017-11-15)

Settings

The list of covered resources is here

  • ROM settings are missing (partially supported, needs work (2018-01-31)
  • HardSID settings are missing
  • x64/x64sc/x64dtv/xscpu64/xplus4/xpet/xcbm2: Check model settings glue logic.
  • x128; Update model settings UI to reflect updated model list and properly implement all glue logic.
Mostly done, needs further work on the "BoardType" resource to determine the difference between C128 and C128D models, and perhaps more.
  • Perhaps move C128 "Bank 2 & 3" from I/O extension into the C128 model setting page.
  • xplus4: plus4_get_model() depends on loaded kernal, so switching between PAL/NTSC for C16 and Plus4 results in "Unknown" in the model list. No easy way to fix this. I certainly don't want to move the ROMs settings page into the Model settings.
  • VIC21 logic is still mysterious: selecting VIC21 and then PAL results in model "Unknown", is this supposed to happen or do we revert to VIC20/PAL?
  • xpet seems to be fine, someone with actual PET knowledge should check this, especially the "SuperPET" stuff.


Printer Settings
  • the radio button on the right called "output device" is called "text output device" on printer 7 tab. it should always be just "output device"
  • at the bottom it should be "printer output device" instead of "printer text output devices"
  • all 3 "output devices" are the same, and behave the same. there is no point in implying they are not (by adding "file dump" or "exec")
RS232 Settings
  • all 4 "RS232 Devices" at the bottom are the same. they should all have a "browse" button and a baudrate selection.

Drive settings

  • the "IEC device" checkbox should probably be moved to distinguish it from the device list abovee it
    • the resource actually switches on a C-level IEC device on that device number that is used to talk to vdrive/fsdevice/opencbm
  • enable/disable relations should be checked, e.g. selecting "None" as drive type should not grey out IEC device and changing fsdevice settings only makes sense if IEC device is checked
  • presenting vdrive/fsdevice/opencbm as additional radio buttons would make sense from a user's point of view, but is contrary to how the related resources work internally

C64 Cartridge settings

  • "set current cartridge as default" is missing in the GUI
  • check I/O extensions for proper behaviour (attach/detach, load/save images etc):
    • GEO-RAM
    • RamCart
    • Expert Cartridge
    • ISEPIC
    • EasyFlash
    • GMod2
    • IDE64
    • MMC64
    • MMC Replay
    • Retro Replay
    • RR-Net Mk3

Dialogs

  • "File->Netplay" needs some testing and refactoring. perhaps move it into settings?
    • Work is under way in uinetplay_new.c, which mostly works but needs the client/server mapping of keyboard/joystick etc. And indeed moving into settings would be prefered (compyx, 2018-02-09)

Media recording

  • Implement audio recording and video recording (2017-12-17)
    • Mostly implemented, what is missing is a 'stop recording' button on the status bar (compyx 2017-12-23)

Upstream bugs

  • Some combobox contents appear to have 'empty' entries and sometimes the colors of the items change (upstream Gtk3 bug) (2017-11-08)
  • The GtkFileChooser-based dialogs (open/save file etc) sort the drives on Windows in reverse-order. There is no public API or any GSetting that allows controlling this.
The Gtk3 devs say they won't implement changing the sort order, but agreed the order should follow what Windows does. See ticket https://gitlab.gnome.org/GNOME/gtk/issues/900
This also happens on Linux: mountable file systems (such as Windows partitions) are list in reverse order by /sda/* and then by volumne name, in reverse order.
  • Another issue is case-insensitive sorting of dir/filenames (seems to be default on Windows), no support for this in Gtk3.
  • When using full screen (Alt+D) on Windows and using the openGL renderer and enabling the main menu bar and the statusbar (Atl+B), menus aren't shown (this includes popup menus triggered via the statusbar), they appear to be hidden behind the openGL canvas (guessing where a menu item is and clicking on it seems to work). According to the Gtk3 devs, this is a known bug.

Feature requests / Stretch goals

  • Add some way to show the keycodes of the keys being pressed (perhaps in the status bar?) - that would make it a lot easier to fix/create keymaps
  • Add preview of the RAM init pattern (2017-11-08)
  • Add a 'smart' cartridge attach dialog: show "preview" of .crt image if selected in the dialog, show only valid cartridge types when selecting a cart image.
  • Make Hotkeys user-defineable
  • make an option to force display size to 1x/2x/3x/4x
VSID
  • Implement a playlist for VSID (partly done)
  • Add some sort of tree-based file browser (preferably using the HVSC as the default dir) to allow quick tune selection and help with building a playlist (ie via drag-n-drop)
  • Add HVSC BUGlist support to VSID
Support for this is available in src/hvsc, but there are very few actual entries in the BUGList.txt file. Maybe skip this one?
  • Support new HVSC SLDB format
With the next release of the HVSC (#71), the SLDB will support milliseconds for time stamps and the Songlengths.txt file will be removed, leaving only Songlengths.md5. This means some updating of the HVSC code (src/hvsc) and the UI's (Gtk3 only for now, there's no HVSC support in the SDL version of VSID).

Documentation Wall of Shame

The Gtk3 UI code is documented using Doxygen (as is the rest of VICE *cough*), but there are quite a few files not documented properly, so here's a little list of files needing updating (I've made doxygen skip novte/, that code is too weird, and I'll skip imported stuff like linenoise): (all files are in src/arch/gtk3, unless mentioned otherwise)

  • rs232-win32-dev.c
  • archdep.h
  • archdep_unix.c
  • archdep_unix.h
  • archdep_win32.c
  • archdep_win32.h
  • blockdev.c
  • coproc.h
  • dynlib-unix.c
  • fullscreen.c
  • joy-osx.h
  • joy-unix.h
  • joy-win32.h
  • kbd.c
  • kbd.h

And many more to come

SDL UI

BUGS

  • FFmpeg media recording behaves unexpected when entering the menu [3]
  • use different icons for the various emulators/executables
    • embed icons into windows .exe files
Menus
  • some menu items need status text to show that the action has been done.
    • Drive>Fliplist settings>Add current image to fliplist
    • Drive>Fliplist settings>Remove current image from fliplist
    • Drive>Fliplist settings>Attach next image in fliplist
    • Drive>Fliplist settings>Attach previous image in fliplist
  • at a lot of places "inactive" (as in "cant be selected") menu items are missing the "N/A" on the right
  • "pause" does not the green "tick" indicator when enabled
    • "advance frame" should be disabled when not in pause mode
    • entering the menu unpauses the emulation, this is required to trigger canvas refresh. unfortunately, due to how the UI is written, this can not be easily changed
      • also re-enabling pause mode when leaving the menu doesnt work with the current code

TODO

  • A better way of showing filenames (maybe using contraction) needs to be made
File Selector
  • add filtering in file requester
Virtual Keyboard
  • shift/cbm/ctrl should be "sticky" (right now shifted keys are entered using backspace/cancel - which is odd)
VSID
  • Implement a playlist for VSID
  • Add HVSC song length database (SLDB) support to VSID (both .txt and .md5 file format)
  • Add HVSC sid tune information list (STIL) support to VSID
  • Add HVSC BUGlist support to VSID

OSX

  • Sound starts to distort heavily after few minutes [4]
  • Sounds terrible unless sampling is lowered from default 44Khz to 22Khz [5]
  • Emulator in default config makes no sound unless the OutputMode is changed to Stereo. [6]

External Libraries

VICE uses a few external libraries of which either header files or complete sources are included in the tree:

  • opencbm (src/opencbm.h) (https://sourceforge.net/p/opencbm/)
    • should get moved to src/lib/..
  • P64 (src/lib/p64)
  • ffmpeg (src/lib/libffmpeg)
    • building with `--enable-shared-ffmpeg` will fail when not root. VICE's configure triggers a build and install of liblame which tries to install into /usr/local/lib.
    • building out-of-tree currently fails with:
In file included from ../../../vice/src/lib/libffmpeg/libavutil/avutil.h:289:0,
                 from ../../../vice/src/lib/libffmpeg/libavutil/samplefmt.h:24,
                 from ../../../vice/src/lib/libffmpeg/libavcodec/avcodec.h:31,
                 from ../../../vice/src/lib/libffmpeg/libavformat/avformat.h:255,
                 from ../../../vice/src/gfxoutputdrv/ffmpeglib.h:36,
                 from ../../../vice/src/gfxoutputdrv/ffmpegdrv.c:37:
../../../vice/src/lib/libffmpeg/libavutil/common.h:50:10: fatal error: libavutil/avconfig.h: No such file or directory
 #include "libavutil/avconfig.h"
          ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Makefile:507: recipe for target 'ffmpegdrv.o' failed


besides the above, other libraries are used which are currently linked dynamically and must be supplied as dlls for the windows port

  • SDL
  • zlib
  • hardsid

Rewrites

  • The "sc" rewrites. Migrate emulators to the cycle based CPU core (6510dtvcore.c, should be renamed), which allows:
    • cycle based hooks for complex hardware expansions (SCPU)
    • in-line graphics data change emulation (see testprogs/VICII/gfxfetch)
    • cycle exact Blitter/DMA vblank start and proper LinearA/B counter handling on x64dtv
    • cycle based drawing
  • ...and requires (at least):
    • rewrite video chip modules to use:
      • cycle based fetch/etc (VIC & VICII done, VICII-DTV in progress)
      • cycle based drawing (VICII done)
    • remove 1 clock write offsets (at least CIA/VIA already handled)
    • an insane amount of regression testing (preferably with new testprogs where needed)

New Features

This is the place for the VICE developers to put down ideas about the future development of VICE.

Some of these ideas might never be realized, and might look completely absurd, but they could be the inspiration for other ideas.

By putting these ideas down they will be known to any other developers that would like to pick up one of the ideas and implement it.

also look at Tracker: open Feature Requests

general

History Recording

Snapshots

Keyboard

Tape

Monitor

Sound System

  • sound sync needs a rewrite, its too complex and fails a lot

Video System

  • some kind of generic interface to handle video input is required to handle scanner/digitizer type of carts

Hardware emulation

SID

x64(sc)

  • internal (?)
    • c64/c128 1.44 MB disk drive support. ([7])
    • c64/c128 SCSI expansion support. ([8])
  • Cartridges
    • IDE64 improvements
      • IDE64 eth64 shortbus expansion support. ([9])
      • IDE64 duart shortbus expansion support. ([10])
    • Clockport improvements
      • Silversurfer (UART) support ([11])
      • IDE64 based eth64-II support ([12])
    • Community Information Locator Commodore 64/128 addon cartridge ([13])
    • RAM Floppy (REX 9680) support
    • Daisy Sound sampler audio input support. ([14])
    • PS64 speech cartridge support. ([15])
    • Voice Messenger speech cartridge support. ([16])
    • ramlink support. ([17] [18])
    • ramdrive support. ([19])
    • turbo master cartridge support (4Mhz 65C02). ([20] [21])
    • turbo process cartridge support (4Mhz 658156). ([22] [23])
    • flash-8 cartridge support (8Mhz 65816). ([24])
    • SCPU cartridge support (20Mhz 65816). (in progress, has lead to a new emulator called xscpu64) ([25] [26]) (https://sourceforge.net/tracker/?func=detail&aid=2030692&group_id=223021&atid=1057620)
    • The Final Chesscard (65c02) ([27])
    • German Btx cartridge (6803)
    • MasC=uerade Cartridge Converter support, this cart is originally intended to use c64 carts on the vic20, but in theory could also be used the other way around. ([28])
    • BI-80 cartridge support. ([29])
    • Buscard II IEEE488/printer-port cartridge support. ([30])
    • "Disk Mate" (Datel)
    • MAYA Software Eprom Cart
    • PCC-4/PCC-8 Eprom Cart (Jason Ranheim)
    • "Alien Flash"
      • VICEminus had this
    • Software of Sweden Megacart
    • DUBCRT
    • "MegaOne" - Easyflash compatible Flash cartridge, see here
  • Cartridges that wont be emulated:
    • SoftPROM cartridge ([31])
      • pointless, unless software specifically designed for this cart can be found. other than that its just an ordinary 8k game cart (with battery backed up ram instead of rom). Gpz 23:01, 30 October 2010 (UTC)
    • Net64 cartridge support. ([32])
      • this is exactly the same as "the final ethernet" (which is emulated) Gpz 23:27, 30 October 2010 (UTC)
    • 64NIC
      • again, same as TFE. also has an optional eprom, which is equivalent to using cart8
    • "GeoAction"
      • pointless, equivalent to Action Replay + GeoRAM/RamCart
    • "Flash Gordon"
      • pointless, external kernal with flash, prototype (not released)
  • Userport
    • CBM1660 (userport) modem300 support. ([33])
    • CBM1670 (userport) modem1200 support. ([34])
    • FB-RS232 (userport) support. ([35])
    • c64 p64 midi interface: ([36])
    • Scanntronik handyscanner (userport) support. ([37])
    • Video Byte II video digitizer (userport) support. ([38]) ([39])
    • Computera Eyes video digitizer (userport) support. ([40] [41])
    • Userport RocketDrive support. ([42])
    • CIA-IDE-HD support. ([43])
    • Aprotek universal rs232 adapter support. ([44])
    • Comet64 support. ([45])
    • L. Pantarottos adapter support. ([46])
  • Tape Port
  • Video output.
    • c64 LCD64 screen support. ([53])

x128

  • c128 plus60k support.
  • c128 plus256k support.
  • c128 256K memory expansion hack support.

xvic

xplus4

  • add support for "speedy" freezer cartridge

xpet

  • PET ROM-socket RTC support. ([57])
  • 8296 pet hardware ram lines connected to userport support.
  • 8296 RAMdisk 2008 support. ([58])
  • 8296 pet switchable 4 screens output support.
  • pet IEEE488 -> IDE/RS232 support. ([59])
  • High-Res
    • High-Res Technologies Graphics Board support. ([60], [61])
    • Data Becker CBM-8000 hi-res graphics support. ([62])
    • SuperSoft High Resolution Graphics Board support. ([63])
    • Eltec petGRAFIK support. ([64])
    • Delph Electronics 8000C support. ([65])
  • MTU K-1002-2 DAC sound system support. ([66])

xcbm2

  • cbm2 z80, better nec v20, support.
  • cbm2 8088 support. ([67])
  • B700 HiRes Graphics Board support. ([68])

Drives

Printers

Misc