6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Fri Nov 22, 2024 8:56 pm

All times are UTC




Post new topic Reply to topic  [ 19 posts ]  Go to page Previous  1, 2
Author Message
 Post subject:
PostPosted: Sun Jun 28, 2009 1:33 pm 
Online
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10986
Location: England
I'm an interested party, but due to lack of time and skill I don't think I could be a meaningful contributor - sorry.

I had a quick look at the sources for VICE2.1, and I see a lot of attention to cycle-accurate detail. Even arranging to ignore that is going to take some effort. The file src/drive/drivecpu.c does a #include of src/6510core.c - I think the solution will touch one or both of those two, and can perhaps be limited to touching those two files.

Sorry
Ed

ps. source links are to the viceplus project, since merged back into vice, but which has linkable sources.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Jun 29, 2009 7:50 am 
Offline

Joined: Tue Jul 05, 2005 7:08 pm
Posts: 1043
Location: near Heidelberg, Germany
As one of the (older, ex-) authors of vice...

BigEd wrote:
The file src/drive/drivecpu.c does a #include of src/6510core.c - I think the solution will touch one or both of those two, and can perhaps be limited to touching those two files.


The file 6510core.c is not only included in the drivecpu.c, but also in the maincpu.c files. It (6510core.c) is the definition of a cycle-exact 6502 - the actual code is generated in the *cpu.c files - as VICE emulates a number of CPUs in its different binaries: C64 main cpu, C128 main 6510 CPU, PET main cpu, VIC20 main cpu, CBM II main cpu, and as you mentioned in the drive emulation (IIRC one cpu file for the 15x1 and one cpu file for the PET dual drives, but I could be mistaken here)

The *cpu.c files add the computer-specific stuff around the 6502 core.

So if you change 6510core.c, you most probably need to modify all the others in VICE.

I'd rather put the 65816 core in a separate file, with a different main cpu file, and keep the working code untouched, except for the switch "use SuperCPU" which would jump into the new (65816) main cpu code.

André


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Jun 29, 2009 7:55 am 
Online
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10986
Location: England
Oops - thanks for the extra detail and the guidance. My quick scan of the code was inadequate!

Cheers
Ed


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sun Aug 09, 2009 12:41 am 
Offline

Joined: Sat Jan 04, 2003 10:03 pm
Posts: 1706
fachat wrote:
As one of the (older, ex-) authors of vice...

. . .

André


THIS IS ALL YOUR FAULT! ALL YOUR FAULT! ;)

Thanks for the feedback. My initial reading of the code also was inadequate.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 19 posts ]  Go to page Previous  1, 2

All times are UTC


Who is online

Users browsing this forum: No registered users and 16 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: