6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Sat Apr 27, 2024 11:14 pm

All times are UTC




Post new topic Reply to topic  [ 50 posts ]  Go to page Previous  1, 2, 3, 4
Author Message
 Post subject: Re: 8521 dissection
PostPosted: Fri Jan 06, 2023 10:15 pm 
Offline

Joined: Sat Feb 26, 2022 2:43 pm
Posts: 5
Now we can compare with https://ist.uwaterloo.ca/~schepers/MJK/cia6526.html and see of the theories were correct :-)
Thanks!


Top
 Profile  
Reply with quote  
 Post subject: Re: 8521 dissection
PostPosted: Sun Jan 08, 2023 9:34 pm 
Offline

Joined: Fri Jan 25, 2019 2:29 pm
Posts: 191
Location: Madrid, Spain
rhialto wrote:
Now we can compare with https://ist.uwaterloo.ca/~schepers/MJK/cia6526.html and see of the theories were correct :-)
Thanks!


From what I've learnt with the 74HCT6526 project, and now that I've managed to make a cycle exact replica of them, Wolfgang model is spot on, at least, regarding the timers.


Top
 Profile  
Reply with quote  
 Post subject: Re: 8521 dissection
PostPosted: Thu Feb 15, 2024 6:48 pm 
Offline

Joined: Sat Feb 26, 2022 2:43 pm
Posts: 5
ttlworks wrote:
When the hour counter reaches 12, PM toggles.
Note, that the ML output carry doesn't go into the equation,
so writing decimal 12 into the hours if the hours already were not 12 this will toggle PM.
;...
PM flag:

We have sort of a comparator which checks if HH=1 and if HL=$2.
The rising edge of the comparator output toggles the PM flag.
Again, note that the MH output carry doesn't go into this.

The PM flag toggles when TOD reaches 12:00:00, that yes.

But a side effect is that when writing "HH=1 and HL=$2" to the TOD_HR register,
and the TOD_HR register previously was not "HH=1 and HL=$2", this toggles the PM flag.
In this case, you would have to write with the PM Bit _inverted_ into the TOD_HR register
to compensate for this.


This strongly implies (but reading carefully, it doesn't literally say it) that writing $12 to the Hours register when it already contains that value will *not* toggle PM.

But it seems that that is not the case. Even writing $12 when it was $12 already toggles PM, according to tests that have been reported to the VICE team: https://sourceforge.net/p/vice-emu/bugs/1988/

Was this how the above explanation was meant, or is this unexpected? If the latter, could this work out differently on different CIA models perhaps?


Top
 Profile  
Reply with quote  
 Post subject: Re: 8521 dissection
PostPosted: Fri Feb 16, 2024 12:03 pm 
Offline
User avatar

Joined: Fri Nov 09, 2012 5:54 pm
Posts: 1392
rhialto, sorry to say this:

It's been more than a year, meanwhile we dissected some other chips,
and since December 2023 the chip dissections are put on hold.

Me and Frank usually only had the capacity for dissecting the latest revision of a chip,
we simply can't cover all revision of a chip.

Also, 8521 "is supposed to be" "sort of a drop in replacement" for the 6526,
but we never found the time to take a closer look at the 6526.

PM flag is quite difficult stuff, and digging into it again would take me some time.


Top
 Profile  
Reply with quote  
 Post subject: Re: 8521 dissection
PostPosted: Fri Feb 16, 2024 1:18 pm 
Offline

Joined: Thu Jul 20, 2017 9:58 am
Posts: 91
rhialto wrote:
Was this how the above explanation was meant, or is this unexpected? If the latter, could this work out differently on different CIA models perhaps?


Maybe we will take a look at that as soon as the 6526 has been vectorized and dissected. But this may take some time... if not years until this happens. (If it will ever happen at all!) :)


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 27 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: