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

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Mon Aug 29, 2022 8:47 pm 
Offline

Joined: Sat Nov 11, 2017 1:08 pm
Posts: 33
I've created a 6502 /65C02/65C12 instruction timing checking test suite.

It first of all targeted BBC micro and Master machines ( which have been checked against real hardware). I've extended it to support C64 , but this hasn't yet been checked against real hardware. It passes in VICE , but not in MAME so one of them is in error.

It should be reasonably easy to add other targets. It requires some sort of "putc" function and a timer e.g. 6522 VIA timer.

Hopefully people will find it useful.

https://github.com/dp111/6502Timing


Top
 Profile  
Reply with quote  
PostPosted: Sun Sep 04, 2022 5:21 pm 
Offline

Joined: Sat Nov 11, 2017 1:08 pm
Posts: 33
I've added vectors to the beginning of the code to make it easier to port the test to another system. Now you just need to patch the vectors with putchar, start timer and read timer, instead of building the code.


Top
 Profile  
Reply with quote  
PostPosted: Sun Sep 04, 2022 6:13 pm 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10793
Location: England
Thanks Dominic!

As this tester has shown up issues in (almost?) all Acorn emulators, it feels like it's worth running against emulators of other machines. (Although, I think some of the problems have been in modelling clock-stretching or RDY usage, and in the precise timing of each memory access - some systems might be simple enough that they don't need to be accurate at this level.)


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

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