|
Post by jj0 on Jan 17, 2021 16:28:49 GMT
I've compiled VICE (2.4 - from the official repository) and the necessary libraries for use on the Mini/Maxi/VIC-20. You can run it as fake firmware upgrade. The fake firmware upgrade supports the VIC-20, C64, C128 and Plus/4 models. To use this, download this 7z archive and extract it to a USB drive that you know works for your Mini/Maxi/VIC-20. As the kernal/basic/chargen ROM's for the various models are not in the Public Domain you have to provide these yourself and put them in the appropriate directory on the USB drive. E.g. for the C64 this would be the vice/vice/C64 directory.Then go to the System Information menu and it will show a firmware upgrade. Select 'Apply' and then press and hold: - No other buttons for the C64 - Left menu button for VIC-20 - Left middle menu button for C128 - Right middle button for Plus/4 And then press the fire button. Wait a second and then release the menu button you pressed. If all goes well the selected emulator should appear. On the Maxi/VIC-20 the emulator should appear in the correct 4:3 resolution and the Maxi/VIC-20 keyboard should work. On the Mini unfortunately the resolution of the emulators is not quite right, the C64, C128, Plus/4 appear a bit stretched horizontally and the VIC-20 even more so, with some of the left side of the screen being outside the visible area. An attached USB keyboard should work as well but some keys might be different from their label. Both PAL and NTSC Mini are supported but they both default to PAL resolution as I assume these days most TV's can manage that. For both the Mini and the Maxi the joystick should work OK for all emulators, with the following button mappings: - Left Fire anfd Right Fire: Fire - Left Triangle Snapshot&Quickload snapshot.vsf - Right Triangle: Snapshot&Quicksave snapshot.vsf - Left menu button: Speed settings&Warp mode - Left middle menu button: Quit emulator - Right middle menu button: Swap joystick ports - Right menu button: Vice menuAs this is all standard vice the settings are controlled by the various configuration files for which documentation can be found on the web and in the vice/vice/doc directory on the USB drive. I've included the anykey keyboard test programs for C64/C128/Plus/4 for those that want to experiment with better keyboard mapping on the Mini. Anybody that wants to experiment with better resolution settings for the Mini (or Maxi/VIC-20) can do that from UART using the included test_vice.sh (or by editing the run_vice.sh of course): test_vice <THE64 model> <Vice binary> <XRES> <YRES> <Mini HDMI mode> Mini HDMI Modes are: 0 480i 1 576i 2 480p 3 576p 4 720p 50Hz 5 720p 60Hz 6 1080i 50 Hz 7 1080i 60 Hz 8 1080p 24 Hz 9 1080p 50 Hz 10 1080p 60 Hz 26 1360x768 60 Hz 27 1280x1024 60 Hz Note that XRES and YRES do not need to be the same as the HDMI mode. If you get weird results, e.g. two screens it can help to ensure in the vice menu that you are using the custom resolution and also switching back and forth to fullscreen might help. I've also included other model binaries in the bin directory, these are not mapped to any buttons but you can edit the self-explanatory (I hope) run_vice.sh if you want to try these. Enjoy and let me know of any issues and improvements. Thanks to spannernick for testing and suggestions.
|
|
|
Post by kugelblitz on Jan 17, 2021 16:42:06 GMT
Wow. Just wow. Sir, you deserve at least a cup of coffee for this!
Which version of Vice is this based on?
|
|
|
Post by jj0 on Jan 17, 2021 17:41:42 GMT
Wow. Just wow. Sir, you deserve at least a cup of coffee for this! Which version of Vice is this based on? Thanks! It's v2.4 (now added to the first post), chosen for compatibility with (most) THE64 and PCUAE snapshots. I did briefly try v3.5 but that ran at ~7fps 🤣
|
|
|
Post by vic2020ian on Jan 17, 2021 20:03:57 GMT
ABSOLUTELY FANTASTIC - Thank you.
NOTE - ******** you have to add Kernal files in the correct directories to get it to work. *********
Congratulations on a job really really well done.
I just had a blast on my C64 Mini on Star Defence on the Vic20.
Two small requests:
1. please can you enable PET as an option to replace C128 if necessary?
2. Can I buy you and Nick some beers?
Thank you very much. I now have my post Covid travel Vic20.....
......Just need to RetroBrite the hell out of it until it is white :-)
|
|
|
Post by sjakie43 on Jan 17, 2021 21:47:22 GMT
Thank you so much ! Checked it out and it's awesome to have 4 Commodore Computers on THEVIC20 , WOW
Regards Sjakie43
|
|
|
Post by jj0 on Jan 17, 2021 21:58:47 GMT
ABSOLUTELY FANTASTIC - Thank you. NOTE - ******** you have to add Kernal files in the correct directories to get it to work. ********* As pointed out in the first point Thanks!On request #1, replace the files in the vice directory with these: vice-the64-xpet-mod.7z (6.58 KB) and the x128 is replaced with a 80x25 SuperPet. On request #2, sure! When we all meet at the post-Covid THE64 modding party
|
|
|
Post by gurce on Jan 18, 2021 3:34:47 GMT
Wow, incredible work man! :-) Looking forward to trying this out, and yes, you deserve several cups of coffee for this effort! :-)
|
|
|
Post by spannernick on Jan 18, 2021 11:55:30 GMT
I wanted this done ages ago, I even try to do it myself but couldn't so asked jj0 if he could do it for me... Thanks Jeroen your a star.. I have it running in PCUAE but want a menu to come up and then you press 1 to 8 of what emulator you want to load, have idea how to do that, well it will look like a menu on the c64 emulator, I am going to use a menu I made on the C64 years ago and the capture it as a fb image and load in it the framebuffer then make shortcut keys for each emulator so it will look like your pressing a key in the menu to load a emulator when your not.
|
|
|
Post by spannernick on Jan 18, 2021 12:45:53 GMT
I thought I post this here, cause j forgot to add the readme for VICE 2.4 that has to be included with it, it will be included with the PCUAE version.
VICE 2.4 Nov 2012
_______________ | || || | || ||____________________________ | || || || || || | || || || | || ______|| | || || || |----|| || | || || || | || ------|| | ||____||_________||__________|| \ // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ \ // \________// Versatile Commodore 8-bit Emulator
----------------------------------------------------------------------------
This is version 2.4 of VICE, the multi-platform C64, C128, VIC20, PET, PLUS4 and CBM-II emulator. This version can be compiled for MSDOS, Win32, RiscOS, OS/2, BeOS, QNX 4.x, QNX 6.x, AmigaOS, GP2X, Dingoo, Syllable, SkyOS and for most Unix systems provided with the X Window System version 11, R5 or later.
The following programs are included:
- x64, a C64 emulator;
- x64sc, a C64 emulator focused on accuracy;
- x64dtv, a C64 Direct-to-TV (DTV) emulator;
- x128, a C128 emulator;
- xvic, a VIC20 emulator;
- xpet, a PET emulator;
- xplus4, a PLUS4 emulator;
- xcbm2, a CBM-6x0/7x0 emulator;
- xcbm5x0, a CBM-5x0 emulator;
- vsid, a SID player;
- c1541, a stand-alone disk image maintenance utility;
- petcat, a CBM BASIC de-tokenizer;
- cartconv, a C64/C128 cartridge conversion program.
Moreover, the following documents are provided in both source and binary distributions:
- README, this file;
- COPYING, the GNU General Public License under which VICE is distributed -- *please read it before using the program*;
- INSTALL, installation instructions;
- doc/html/plain/NEWS, list of user-visible changes between this and older versions of VICE;
- doc/html/plain/BUGS, a list of the most important known bugs of this release (please read it before reporting bugs);
- doc/html/plain/TODO, a list of what we would like to do next (this is no promise!);
- FEEDBACK, something you should read before sending mail to any of the authors;
The following documents are provided in the source distribution:
- doc/vice.texi, the complete documentation;
- doc/html/plain/64doc.txt, documentation about the C64 internals;
- doc/html/plain/PETdoc.txt, documentation about the PET internals;
- doc/html/plain/cbm_basic_tokens.txt, a list of the CBM BASIC tokens, as supported by the petcat utility;
- doc/html/plain/serial.txt, description of the IEC serial bus used on the C64, VIC20 and C128;
- doc/html/plain/drive_info.txt, information about the CBM disk drives;
- doc/Readme.dos, MS-DOS specific documentation;
- doc/Readme.beos, BeOS specific documentation;
- doc/Win32-Howto.txt, how to compile the Win32 port.
- doc/NLS-Howto.txt, some documentation about Unix NLS support;
- doc/MSDOS-Howto.txt, how to compile the MSDOS port.
- doc/MSDOS-Ethernet-Howto.txt, how to compile the MSDOS port with ethernet support.
- doc/iec-bus.txt, overview of the VICE IEC bus emulation;
For the latest news, have a look at the VICE home page:
http://vice-emu.sourceforge.net/
New versions are made available quite often, so please stay tuned.
Have fun!
Copyright notice ----------------
VICE, the Versatile Commodore Emulator
Copyright C 1998-2012 Dag Lem Copyright C 1999-2012 Andreas Matthies Copyright C 1999-2012 Martin Pottendorfer Copyright C 2005-2012 Marco van den Heuvel Copyright C 2006-2012 Christian Vogelgsang Copyright C 2007-2012 Fabrizio Gennari Copyright C 2007-2012 Daniel Kahlin Copyright C 2008-2012 Antti S. Lankila Copyright C 2009-2012 Groepaz Copyright C 2009-2012 Ingo Korb Copyright C 2009-2012 Errol Smith Copyright C 2010-2012 Olaf Seibert Copyright C 2011-2012 Marcus Sutton Copyright C 2011-2012 Ulrich Schulz Copyright C 2011-2012 Stefan Haubenthal Copyright C 2011-2012 Thomas Giesel Copyright C 2011-2012 Kajtar Zsolt Copyright C 2012 Benjamin Rosseaux
Copyright C 2000-2012 Spiro Trikaliotis Copyright C 2007-2011 Hannu Nuotio Copyright C 1998-2010 Andreas Boose Copyright C 1998-2010 Tibor Biczo Copyright C 2007-2010 M. Kiesel Copyright C 1999-2007 Andreas Dehmel Copyright C 2003-2005 David Hansel Copyright C 2000-2004 Markus Brenner
Copyright C 1999-2004 Thomas Bretz Copyright C 1997-2001 Daniel Sladic Copyright C 1996-2001 André Fachat Copyright C 1996-1999 Ettore Perazzoli Copyright C 1993-1994, 1997-1999 Teemu Rantanen Copyright C 1993-1996 Jouko Valta Copyright C 1993-1994 Jarkko Sonninen
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
The ROM files in the `C128', `C64', `CBM-II', `DRIVES', `PET', `PLUS4' `PRINTER' and `VIC20' directories are Copyright C by Commodore Business Machines.
The ROM files in the `C64DTV` directory are Copyright C by Commodore Business Machines, as well as Mammoth Toys, a division of nsi ltd., Digital Concepts DC studios inc., Ironstone Partners ltd., and Toy:Lobster company ltd.
|
|
|
Post by groepaz on Jan 18, 2021 17:32:12 GMT
in configure enable x64 (this is what THE64 uses too) and enable fastsid - you should get the same performance as with 2.4 (assuming you are using the SDL port) (would you also link the sources please...
|
|
|
Post by jj0 on Jan 18, 2021 19:44:19 GMT
in configure enable x64 (this is what THE64 uses too) and enable fastsid - you should get the same performance as with 2.4 (assuming you are using the SDL port) (would you also link the sources please... Thanks, I'll try that. I've added a link to the source in the first post and also in the updated download.
|
|
|
Post by groepaz on Jan 18, 2021 20:14:24 GMT
OK cool! Some more things you should try: set resampling mode to "fast" (the default changed), disable all CRT emulation and scaling ("true aspect ratio" should be off). perhaps disable resid in the configure step alltogether. dont enable cpu history (should be disabled by default though). I have tried a recent VICE on raspi3b and it runs okish, so it should do the same on the64
|
|
|
Post by jj0 on Jan 18, 2021 20:33:46 GMT
OK cool! Some more things you should try: set resampling mode to "fast" (the default changed), disable all CRT emulation and scaling ("true aspect ratio" should be off). perhaps disable resid in the configure step alltogether. dont enable cpu history (should be disabled by default though). I have tried a recent VICE on raspi3b and it runs okish, so it should do the same on the64 Thanks - I recompiled v3.5: ./configure PREFIX=/usr --prefix=/usr --enable-sdlui --enable-fullscreen --disable-gnomeui --disable-rs232 --disable-midi --disable-lame --disable-nls --disable-dingoo --disable-dingux --disable-ffmpeg --disable-quicktime --disable-ethernet --disable-ipv6 --disable-parsid --disable-bundle --disable-editline --disable-wiz --disable-static-lame --disable-hidmgr --disable-hidutils --with-alsa --without-pulse --without-oss --without-png --without-picasso96 --without-cocoa --without-x --no-create --no-recursion --enable-x64 --disable-pdf-docs --without-resid -without-resid-fp --with-fastsid It runs but complains about: ' Warning - sync is far too late, resetting sync'. Pressing the menu screen gives me a black screen. But I should be able to edit the vicerc file to set the resampling,CRT and scaling options.
|
|
|
Post by groepaz on Jan 18, 2021 21:33:33 GMT
or just use the respective commandline options
if you have sdl2, also try --enable-sdl2ui ... you may also need GL support (unless you disable it in SDL and make it use software rendering). iirc you can also set the backend on the commandline.
|
|
|
Post by sjakie43 on Jan 19, 2021 10:06:11 GMT
Is there a way to set stereo sid for the C64? cannot find it
Also when i select the virtual keyboard i cannot get in the Vice menu when done with the virtual keyboard.
When i go for the PET there's something wrong with the sound, it's garbled when the emu starts.
After this happened even the Plus4 emu has the same sound problem.
Is it just me ?
|
|
|
Post by vic2020ian on Jan 19, 2021 14:20:15 GMT
Is there a way to set stereo sid for the C64? cannot find it
Also when i select the virtual keyboard i cannot get in the Vice menu when done with the virtual keyboard.
When i go for the PET there's something wrong with the sound, it's garbled when the emu starts.
After this happened even the Plus4 emu has the same sound problem.
Is it just me ?
Try the menu button and reset the machine, worked for me.
|
|
|
Post by sjakie43 on Jan 19, 2021 16:54:01 GMT
Is there a way to set stereo sid for the C64? cannot find it
Also when i select the virtual keyboard i cannot get in the Vice menu when done with the virtual keyboard.
When i go for the PET there's something wrong with the sound, it's garbled when the emu starts.
After this happened even the Plus4 emu has the same sound problem.
Is it just me ?
The C64 and VIC20 work ok as far as i can see but the Plus4 and PET gives me some strange sound bug that even goes on when hard resetting the Plus or PET
|
|
|
Post by vic2020ian on Jan 19, 2021 17:35:46 GMT
When you reset are you using the Vice menu or going back to Carousel?
I am now getting the same problem.
Sometimes it clears on the PET after pressing left menu button for a bit (Turbo?)
Plus/4 has no noise issue so far for me.
|
|
|
Post by vic2020ian on Jan 19, 2021 17:47:32 GMT
Try going to sound menu and selecting Flexible and Adjusting and going back to the emulator. Seems to clear it for me.
|
|
|
Post by vic2020ian on Jan 19, 2021 18:20:30 GMT
I wanted this done ages ago, I even try to do it myself but couldn't so asked jj0 if he could do it for me... Thanks Jeroen your a star.. I have it running in PCUAE but want a menu to come up and then you press 1 to 8 of what emulator you want to load, have idea how to do that, well it will look like a menu on the c64 emulator, I am going to use a menu I made on the C64 years ago and the capture it as a fb image and load in it the framebuffer then make shortcut keys for each emulator so it will look like your pressing a key in the menu to load a emulator when your not. Sounds great, I look forward to trying out the all in one solution to Carousels and Vice.
|
|
|
Post by sjakie43 on Jan 19, 2021 18:46:33 GMT
When you reset are you using the Vice menu or going back to Carousel? I am now getting the same problem. Sometimes it clears on the PET after pressing left menu button for a bit (Turbo?) Plus/4 has no noise issue so far for me.
I tried both but the sounds follow me into the carousel
Maybe i copied the wrong files from winvice from my pc?
What files exactly do i need to copy? (for the plus4 and PET)
|
|
|
Post by sjakie43 on Jan 19, 2021 19:06:42 GMT
On the Plus4 i had to enable SID cart settings, no sound problems atm. Same thing with the PET, enabled SID cart settings, no sound problems atm.
I did not had to change to flexible in the sound settings.
So all looks OK now
Only thing is how to get Stereo sids to work.
I tried Stereosidplayer 10.3 but no stereo sound offcourse($DE00), when i forgot to change the fastload to NO the C64 emulator froze, no way out to the menu.
Stereo sids are my main objective atm
|
|
|
Post by jj0 on Jan 19, 2021 19:09:30 GMT
Is there a way to set stereo sid for the C64? cannot find it
What about model settings, SID settings, Extra Sids?
|
|
|
Post by sjakie43 on Jan 19, 2021 19:25:06 GMT
ahh found it, its not with sound setting but machine settings ,model settings , silly me,added one extra SID in the settings ($DE00)
Changed the SID to flexible and upped the buffer to 200msec, almost no clipping now
Maybe some fiddling necess ,ahhhh Axel-F Stereo !
Sounds really nice on my Bang and Olufsen CRT TV (70cm diag)
|
|
|
Post by gurumediator on Jan 20, 2021 18:28:59 GMT
Hi and thanks for making this excellent update! I'm actually having trouble getting it to work, I've extracted the files on a USB stick (along with putting the ROM files in the vice directory), can detect the firmware update, but no matter what combination of buttons I press I can't the new firmware to start, just boots as normal. Any help would be appreciated for this newbie.
Not sure what I'm doing wrong.
|
|
|
Post by vic2020ian on Jan 20, 2021 19:52:14 GMT
Hi and thanks for making this excellent update! I'm actually having trouble getting it to work, I've extracted the files on a USB stick (along with putting the ROM files in the vice directory), can detect the firmware update, but no matter what combination of buttons I press I can't the new firmware to start, just boots as normal. Any help would be appreciated for this newbie. Not sure what I'm doing wrong. NOTE - ******** you have to add Kernal files in the correct directories to get it to work. *********
|
|
|
Post by jj0 on Jan 20, 2021 20:06:52 GMT
Hi and thanks for making this excellent update! I'm actually having trouble getting it to work, I've extracted the files on a USB stick (along with putting the ROM files in the vice directory), can detect the firmware update, but no matter what combination of buttons I press I can't the new firmware to start, just boots as normal. Any help would be appreciated for this newbie. Not sure what I'm doing wrong. Which directory are you putting the kernal, basic and chargen ROM's in? They should be in the vice subdirectory that is in the vice directory, and there in the machine's directory. vice ├── bin ├── Games ├── lib └── vice ├── C128 <--- C128 kernal etc ├── C64 <--- C64 kernal etc ├── C64DTV <--- etc, etc ├── CBM-II ├── common ├── doc ├── DRIVES ├── fonts ├── logos ├── PET ├── PLUS4 ├── PRINTER ├── SCPU64 └── VIC20 Can you show directory listing of the root of your USB drive + subdirectories (So e.g. a 'tree' command in Linux or 'dir /s' in DOS/Windows)?
|
|
|
Post by gurumediator on Jan 20, 2021 20:14:58 GMT
Here's my directory on the USB.
Directory of G:\
01/01/1980 00:00 <DIR> .THEC64SAVE 01/01/1980 00:00 174,848 THEC64-drive8.d64 18/06/2020 08:12 <DIR> THEC64 06/11/2020 09:31 <DIR> Misc 06/11/2020 09:46 <DIR> IkariWar 09/12/2020 13:15 <DIR> T-KTM2LDEUC 18/01/2021 19:30 <DIR> vice 13/01/2021 10:41 339 start.sh 08/02/2020 17:02 124 theC64-9_9_90.bin 3 File(s) 175,311 bytes 6 Dir(s) 1,935,171,584 bytes free
Also I've only included the kernal, basic and chargen ROM's in the C64 directory. Do I need to do this for all models/machines?
|
|
|
Post by gurumediator on Jan 20, 2021 20:49:58 GMT
EDIT: I've got it working now! Thanks for taking the time to reply Seems I placed an incorrect ROM in the C64 directory.. One thing I've noticed is the silky smooth scrolling suffers from the occasional tearing, missed frames. Don't suppose it can be fixed?
|
|
|
Post by jj0 on Jan 21, 2021 7:36:21 GMT
EDIT: I've got it working now! Thanks for taking the time to reply Seems I placed an incorrect ROM in the C64 directory.. One thing I've noticed is the silky smooth scrolling suffers from the occasional tearing, missed frames. Don't suppose it can be fixed? Well done, so what machine where you trying to force the C64 to be? ;-) Regarding tearing etc, I've no idea how to fix it. I don't understand the Mini/Maxi's graphics driver/modes very well nor how the various VICE emulators use them. So there's no optimisation like what RGL did for the Carousel version of the emulators.
|
|