Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums


Forums > C64 Coding > Problem with vice 2.4 on ubuntu 16.04 (and lubuntu)
2016-09-03 09:09
Firehawk

Registered: Aug 2011
Posts: 31
Problem with vice 2.4 on ubuntu 16.04 (and lubuntu)

I found that there is a problem with Vice 2.4 under ubuntu (aquired with sudo apt-get install vice), in particular using the krill loader (none of my previous multi-load demos worked either, and they were tested on real C64). My solution was to compile the 2.4 x64sc from source (instead of using the ubuntu build), and that worked perfectly (however the GUI is somewhat "different").
Anyone got a clue on how to build the x64sc from source with the proper user interface? Anyone else have had similar problems?
I did find that there was previously a problem with setting $dd00 with the loader (any workaround btw?), but I was under the impression that it was fixed (and it does work on real HW).
2016-09-03 09:14
chatGPZ

Registered: Dec 2001
Posts: 11386
1) get the svn version and forget 2.4 - its outdated and buggy
2) instructions are here
2016-09-03 20:44
Marq

Registered: Sep 2011
Posts: 50
Just tried "Frantic 3: Nightmare" with the vanilla VICE 2.4 that comes with Mint and it seems to work fine. I suppose you had True drive emulation on...?
2016-09-03 22:18
Firehawk

Registered: Aug 2011
Posts: 31
I found a problem with a lib_free of a temporary variable (main.c:241), apparently the code manages to overwrite the memory, thereby corrupting the next memory segment. If you set the malloc size (main.c:225) to a higher value (i.e. 250, since we do have a LOT of memory these days), the problem disapeared for me.
I also fixed (perhaps) a problem with ambigous notting in parallel-trap.c, but not sure if this is the intended functionality or not. Anyway the warning is quite obvious, so the Vice team should pick that up anyway.
2016-09-04 15:44
Compyx

Registered: Jan 2005
Posts: 631
Quoting Firehawk
I found a problem with a lib_free of a temporary variable (main.c:241), apparently the code manages to overwrite the memory, thereby corrupting the next memory segment. If you set the malloc size (main.c:225) to a higher value (i.e. 250, since we do have a LOT of memory these days), the problem disapeared for me.


Should be fixed in R31750

Quoting Firehawk
I also fixed (perhaps) a problem with ambigous notting in parallel-trap.c, but not sure if this is the intended functionality or not. Anyway the warning is quite obvious, so the Vice team should pick that up anyway.


Not sure what you mean with 'ambigious notting' or 'I fixed'? If you have a patch, feel free to submit it to the tracker: https://sourceforge.net/p/vice-emu/patches/
Preferably a simple diff of the file(s) you changed.
2016-09-04 16:26
chatGPZ

Registered: Dec 2001
Posts: 11386
also dont assume other people see the same warnings as you do - as that heavily depends on your global CFLAGS and also on your compiler version. i get no warnings at all when building vice, for example :)
2016-09-04 17:53
Firehawk

Registered: Aug 2011
Posts: 31
parallel-trap.c: line 101
"if (!p->isopen[channel] == 1)"
should perhaps be:
"if (!(p->isopen[channel] == 1))"
or
"if ((!p->isopen[channel]) == 1)"
?
2016-09-04 18:49
Claus_2015

Registered: Oct 2012
Posts: 53
Bah, not enough negations per line, this should be

if ((!p->isopen[channel]) != 0)
2016-09-04 19:25
Mirage

Registered: Jan 2003
Posts: 113
if ((!(p->isopen[channel]) != 0) ? !false : !true)
2016-09-04 19:27
Compyx

Registered: Jan 2005
Posts: 631
Quoting the Bible:

Kernighan and Richie, Book 2, verse 53 tells us that dereferencing (->) has higher precedence than negation (!). So the code is correct, although I would also add parenthesis to be sure.
2016-09-04 19:31
Firehawk

Registered: Aug 2011
Posts: 31
quoting anonymous source:
"do not write code that would confuse human beings".

:-)
 
... 1 post hidden. Click here to view all posts....
 
Previous - 1 | 2 - Next
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
Copyfault/Extend^tsn..
Walt/Bonzai
New Design/Excess
Mike
Linus/MSL
Bansai/BSILabs
Twilight/Excess/Arcade
Airwolf/F4CG
Fred/Channel 4
pcollins/Quantum
kbs/Pht/Lxt
Faayd/Quantum
Guests online: 121
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Mojo  (9.7)
4 Coma Light 13  (9.6)
5 Edge of Disgrace  (9.6)
6 What Is The Matrix 2  (9.6)
7 The Demo Coder  (9.6)
8 Uncensored  (9.6)
9 Comaland 100%  (9.6)
10 Wonderland XIV  (9.6)
Top onefile Demos
1 Layers  (9.6)
2 No Listen  (9.6)
3 Cubic Dream  (9.6)
4 Party Elk 2  (9.6)
5 Copper Booze  (9.6)
6 Dawnfall V1.1  (9.5)
7 Rainbow Connection  (9.5)
8 Onscreen 5k  (9.5)
9 Morph  (9.5)
10 Libertongo  (9.5)
Top Groups
1 Performers  (9.3)
2 Booze Design  (9.3)
3 Oxyron  (9.3)
4 Triad  (9.3)
5 Censor Design  (9.3)
Top Musicians
1 Rob Hubbard  (9.7)
2 Mutetus  (9.7)
3 Jeroen Tel  (9.7)
4 Linus  (9.6)
5 Stinsen  (9.6)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.069 sec.