Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
 Welcome to our latest new user megasoftargentina ! (Registered 2024-04-16) 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).
 
... 1 post hidden. Click here to view all posts....
 
2016-09-03 20:44
Marq

Registered: Sep 2011
Posts: 47
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: 11090
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".

:-)
2016-09-04 19:39
Compyx

Registered: Jan 2005
Posts: 631
Fuck, it's not correct at all. Who wrote this?

K&R are still gods though, phew.
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
Flex/Artline Designs
Martin Piper
Guests online: 132
Top Demos
1 Next Level  (9.8)
2 Mojo  (9.7)
3 Coma Light 13  (9.7)
4 Edge of Disgrace  (9.6)
5 Comaland 100%  (9.6)
6 No Bounds  (9.6)
7 Uncensored  (9.6)
8 Wonderland XIV  (9.6)
9 The Ghost  (9.6)
10 Bromance  (9.6)
Top onefile Demos
1 It's More Fun to Com..  (9.9)
2 Party Elk 2  (9.7)
3 Cubic Dream  (9.6)
4 Copper Booze  (9.5)
5 Rainbow Connection  (9.5)
6 TRSAC, Gabber & Pebe..  (9.5)
7 Onscreen 5k  (9.5)
8 Dawnfall V1.1  (9.5)
9 Quadrants  (9.5)
10 Daah, Those Acid Pil..  (9.5)
Top Groups
1 Oxyron  (9.3)
2 Nostalgia  (9.3)
3 Booze Design  (9.3)
4 Censor Design  (9.3)
5 Crest  (9.3)
Top Original Suppliers
1 Derbyshire Ram  (9.5)
2 Black Beard  (9.4)
3 hedning  (9.2)
4 Baracuda  (9.1)
5 Irata  (8.5)

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