6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Fri Nov 22, 2024 3:46 am

All times are UTC




Post new topic Reply to topic  [ 23 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: 65816 Test Suite
PostPosted: Thu Jul 11, 2024 2:42 pm 
Offline
User avatar

Joined: Mon Aug 30, 2021 11:52 am
Posts: 287
Location: South Africa
Mostly just to post this somewhere for myself so I don't lose it again; there is another suite of 65816 tests (amongst many others) over here:

https://github.com/SingleStepTests/ProcessorTests/tree/main/65816

Very useful for emulators that can arbitrarily set memory values and the program counter because it's just a bunch of JSON for the start state and the expected end state.


Top
 Profile  
Reply with quote  
 Post subject: Re: 65816 Test Suite
PostPosted: Thu Jul 11, 2024 7:43 pm 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8505
Location: Midwestern USA
BigEd wrote:
(Just writing this as a counter-point - your recommendations and strong recommendations are, of course, only yours. I wouldn't want your opinions to be taken as consensus.)

All recommendations are de facto opinions, Ed, whether offered individually or by a group.  It should be obvious to others reading this topic that my recommendation is an opinion, one based upon extensive experience in programming the 65C816.  I have never suggested that my recommendations are consensus.

_________________
x86?  We ain't got no x86.  We don't NEED no stinking x86!


Top
 Profile  
Reply with quote  
 Post subject: Re: 65816 Test Suite
PostPosted: Sat Jul 13, 2024 5:53 am 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10985
Location: England
AndrewP wrote:
…there is another suite of 65816 tests (amongst many others) over here:

https://github.com/SingleStepTests/ProcessorTests/tree/main/65816

Interesting find Andrew, thanks! (Single instructions, full bus activity, randomly generated, verified against hardware)


Top
 Profile  
Reply with quote  
 Post subject: Re: 65816 Test Suite
PostPosted: Sun Jul 14, 2024 3:47 pm 
Offline
User avatar

Joined: Fri Aug 30, 2002 9:02 pm
Posts: 1748
Location: Sacramento, CA
Well, I finally got my SBC-4 reconfigured and ran the full test suite and all tests passed, including the BCD math. This confirms the suite's tests are accurate.

If you haven't dug into the code, both binary and BCD math tests all the status bits - Carry, Zero, Negative, and Overflow. All are accurate in both modes, including math on invalid BCD numbers. Don't ask me how many hours I worked on that feature.

I am much more confident now that the 65816 Simulator is mostly working. I still have to work on getting the cycle counting verified, as I was focused on instruction accuracy. I'm sure there will be many exceptions to the basic cycle times listed in the datasheet.

Daryl

_________________
Please visit my website -> https://sbc.rictor.org/


Top
 Profile  
Reply with quote  
 Post subject: Re: 65816 Test Suite
PostPosted: Sun Jul 14, 2024 6:38 pm 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10985
Location: England
Splendid news, well done! I get the feeling this test suite will lead to a great leap forward in several ways.


Top
 Profile  
Reply with quote  
 Post subject: Re: 65816 Test Suite
PostPosted: Sat Jul 27, 2024 8:09 pm 
Offline
User avatar

Joined: Tue Feb 28, 2023 11:39 pm
Posts: 257
Location: Texas
Seems that there is no uart.asm in the zip file. I commented out the include and it assembled and ran without issue though.


Top
 Profile  
Reply with quote  
 Post subject: Re: 65816 Test Suite
PostPosted: Sat Jul 27, 2024 10:24 pm 
Offline
User avatar

Joined: Fri Aug 30, 2002 9:02 pm
Posts: 1748
Location: Sacramento, CA
Oops - uart.asm was for the sbc-4. The Kowalski version just uses the io.asm for terminal IO.

Good catch! I'll edit the post with the update.

thanks!
Daryl

_________________
Please visit my website -> https://sbc.rictor.org/


Top
 Profile  
Reply with quote  
 Post subject: Re: 65816 Test Suite
PostPosted: Sat Jul 27, 2024 10:37 pm 
Offline
User avatar

Joined: Fri Aug 30, 2002 9:02 pm
Posts: 1748
Location: Sacramento, CA
The zip file has been updated in the head post. It also includes a fix for a few 16-bit immediate values that were not declared with the !# operand specifier. This would have resulted in errors for the pending 1.4.0.3 version release coming very soon.

Daryl

_________________
Please visit my website -> https://sbc.rictor.org/


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

All times are UTC


Who is online

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