English Amiga Board


Go Back   English Amiga Board > Other Projects > project.CD32 Conversion

 
 
Thread Tools
Old 08 November 2017, 20:20   #1041
Retro1234
Phone Homer
 
Retro1234's Avatar
 
Join Date: Jun 2006
Location: 5150
Posts: 5,773
Thanks for the Reply
Retro1234 is offline  
Old 08 November 2017, 23:20   #1042
jotd
This cat is no more
 
jotd's Avatar
 
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,170
Toni you could reproduce it with your CD32+floppy? but maybe pluggin the floppy overrides the CIA behaviour (SX32 overrides it: cool spot worked before I found the level 6 issue).

I want to test it on my terrible fire + compact flash. If the old version of cool spot doesn't work, then bingo too.
jotd is offline  
Old 12 November 2017, 09:52   #1043
Amigajay
Registered User
 
Join Date: Jan 2010
Location: >
Posts: 2,884
Quote:
Originally Posted by jotd View Post
@Amigajay: I checked and the interrupt is properly handled (and I'm pretty sure I tested GG on real HW and it worked, maybe a slave update issue got to check that).
Tried 1.2 with the same result so the slave update didnt change anything.
Amigajay is online now  
Old 12 November 2017, 12:28   #1044
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,506
Quote:
Originally Posted by jotd View Post
Toni you could reproduce it with your CD32+floppy? but maybe pluggin the floppy overrides the CIA behaviour (SX32 overrides it: cool spot worked before I found the level 6 issue).
I can test it with and without floppy. But I really want 100% confirmation it is level 6 interrupt -> different color0 writes in each interrupt handler required. I don't do assumptions!
Toni Wilen is offline  
Old 12 November 2017, 12:50   #1045
Amigajay
Registered User
 
Join Date: Jan 2010
Location: >
Posts: 2,884
I made a quick single game iso just to show the problem i uploaded to the zone, using MASKINT6 on the cd32load command line is needed to make the game run on real hardware but has no sfx or music, whilst on winuae it has sfx but no music.

Without MASKINT6 the game has sfx and music on winuae but doesnt load on real hardware.
Amigajay is online now  
Old 12 November 2017, 15:31   #1046
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,506
So it must be Akiko built-in CIA-B chip difference vs real CIA chips or some unconnected CIA line is hardwired to active state. Which would also explain why floppy adapter "fixes" it.

Does this game (accidentally) enable some other CIA interrupt source than timer (?) used for music/sfx?
Toni Wilen is offline  
Old 12 November 2017, 15:46   #1047
Galahad/FLT
Going nowhere
 
Galahad/FLT's Avatar
 
Join Date: Oct 2001
Location: United Kingdom
Age: 50
Posts: 8,986
Does Putty Squad have the exact same issue? Obviously I have the source code to it, and if it does, then it might be a bit easier to locate directly from the source code.
Galahad/FLT is offline  
Old 24 November 2017, 23:29   #1048
jotd
This cat is no more
 
jotd's Avatar
 
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,170
Yes, Putty Squad has the issue. Using MASKINT6 works, else, no way. But I'm sure GG was 1) fixed for this issue, and 2) ran on my CD32 before the drive broke
jotd is offline  
Old 24 November 2017, 23:30   #1049
Galahad/FLT
Going nowhere
 
Galahad/FLT's Avatar
 
Join Date: Oct 2001
Location: United Kingdom
Age: 50
Posts: 8,986
What does MASKINT6 do exactly? Replace an existing level6 or remove it?
Galahad/FLT is offline  
Old 25 November 2017, 10:39   #1050
jotd
This cat is no more
 
jotd's Avatar
 
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,170
since VBR is relocated, MASKINT6 doesn't redirect VBR-relocated level 6 interrupt to the zero page vector that the game installed (much easier to do than to track SR or INTENA for level 6 enable!)
jotd is offline  
Old 25 November 2017, 10:42   #1051
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,506
Where are the files/image that is confirmed having this issue? Or does all have it?
Toni Wilen is offline  
Old 25 November 2017, 10:46   #1052
Amigajay
Registered User
 
Join Date: Jan 2010
Location: >
Posts: 2,884
Quote:
Originally Posted by Toni Wilen View Post
Where are the files/image that is confirmed having this issue? Or does all have it?
I posted the iso in the zone, it’s got 47 days left
Amigajay is online now  
Old 31 December 2017, 18:32   #1053
jotd
This cat is no more
 
jotd's Avatar
 
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,170
ok, good news (and bad news): I could test

- cool spot (old slave)
- cool spot (new slave)
- global gladiators (new slave)

on my CD32 using the excellent Terrible Fire + CF

As opposed to CD32 SX1, the CIA B interrupt isn't overridden, so:

- cool spot (old): locks up with checkered screen
- cool spot (new): works (yay)
- global gladiators (new): locks up with black screen

So now I'm puzzled since I'm sure it ran. Or did I persuade myself that it did?

Good news is: I can use HRTMon & WHDLoad to debug that from my console, even if the CD drive is dead (also saves me the hassle to burn CDs to test)

so big thanks again to Supaduper who provided me the TF accelerator for free.

@Toni if you want me to perform some more tests, it's very easy for me: take the CF in Winuae, copy exes, put the CF (carefully) in the CD32, boot, test (and can even write to disk big chunks of data!). When my CD drive is fixed, I'll be able to run games from CD & even debug CD32load for the remaining non working games like Chaos Engine 2 AGA (which works from TF/CF with JST/Whdload with fastmem)
jotd is offline  
Old 03 January 2018, 23:20   #1054
jotd
This cat is no more
 
jotd's Avatar
 
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,170
Good news: there was another level 6 interrupt. Has been fixed & tested on my CD32 & TerribleFire. Now the game runs.

update sent to whdload page.
jotd is offline  
Old 03 January 2018, 23:50   #1055
Amigajay
Registered User
 
Join Date: Jan 2010
Location: >
Posts: 2,884
Quote:
Originally Posted by jotd View Post
Good news: there was another level 6 interrupt. Has been fixed & tested on my CD32 & TerribleFire. Now the game runs.

update sent to whdload page.
Great news and good job JOTD i will burn another disc of my megadrive disc and test over the weekend!

Another one ticked off!
Amigajay is online now  
Old 06 January 2018, 14:13   #1056
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,506
Quote:
Originally Posted by jotd View Post
Good news: there was another level 6 interrupt. Has been fixed & tested on my CD32 & TerribleFire. Now the game runs.

update sent to whdload page.
I think I have already asked but here it is again: exactly which CIA interrupt mask bit?
Toni Wilen is offline  
Old 06 January 2018, 15:33   #1057
jotd
This cat is no more
 
jotd's Avatar
 
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,170
Toni I'm not an expert at this. We discussed that earlier. Seems that CD32 (without SX32) triggers some level 6 interrupts from CIA-B. Your floppy adapter changes the behaviour, though.

that's how I fixed that on Cool Spot / GG:

Code:
; avoids crashes on CD32
mask_int_6
	move.w	#$2000,$DFF09C
	btst.b	#0,$BFDD00		; acknowledge CIA-B Timer A interrupt
	RTE
jotd is offline  
Old 06 January 2018, 15:45   #1058
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,506
Can you check what $bfdd00.b contains? (Only if bit 7 is set)

Also could you check how many times the interrupt triggers? (for example by writing to COLOR0 in interrupt handler). Is it only every few seconds or every frame or something else?

btw, just reading the register will clear all interrupts, btst #0 here looks quite weird (EDIT: and it is good idea to read $bfdd00 first because now you get two interrupts back to back each time)

Last edited by Toni Wilen; 06 January 2018 at 16:00.
Toni Wilen is offline  
Old 06 January 2018, 23:43   #1059
jotd
This cat is no more
 
jotd's Avatar
 
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,170
Ok Toni, I created the special slave, will boot my CD32 + RAM + HRTMon tomorrow and will report my findings. If you can add this CIA timer feature, that will be cool, although now with the TerribleFire I can do a lot of things directly on the CD32. That thing rocks!
jotd is offline  
Old 13 January 2018, 12:20   #1060
Retro1234
Phone Homer
 
Retro1234's Avatar
 
Join Date: Jun 2006
Location: 5150
Posts: 5,773
Would CD32load work from floppy/df0? I once had Mutantology + Mutation Gold CD that I think is based on RNC loader running from floppy.
Retro1234 is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 09:35.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.11250 seconds with 13 queries