6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Mon Apr 29, 2024 4:05 pm

All times are UTC




Post new topic Reply to topic  [ 82 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6  Next
Author Message
PostPosted: Fri Oct 06, 2017 9:50 am 
Offline

Joined: Sun Apr 10, 2011 8:29 am
Posts: 597
Location: Norway/Japan
Quote:
Early NMOS CPUs didn't, later NMOS & all subsequent versions did.

Early NMOS implemented ROR, it was just that it didn't work correctly :)
So they removed it from the datasheet and updated the data sheet with the fixed CPU next year.
[update - the earliest datasheet I have says that it 'will be available' in 1976.]
[addendum: http://www.pagetable.com/?p=406]


Top
 Profile  
Reply with quote  
PostPosted: Fri Oct 06, 2017 9:56 am 
Offline

Joined: Sat Jun 04, 2016 10:22 pm
Posts: 483
Location: Australia
Didn't work correctly? Now you have me curious. What did it do? I assume it trashed the accumulator, but did it do so in a consistent manner?


Top
 Profile  
Reply with quote  
PostPosted: Fri Oct 06, 2017 12:02 pm 
Offline

Joined: Thu Jul 27, 2017 7:48 pm
Posts: 68
leepivonka wrote:
Did you implement the ROR instructions?


I did and those opcodes were the first ones I double checked (since there are often executed during the routines in question).

Axel.


Top
 Profile  
Reply with quote  
PostPosted: Fri Oct 06, 2017 12:07 pm 
Offline

Joined: Sun Apr 10, 2011 8:29 am
Posts: 597
Location: Norway/Japan
DerTrueForce wrote:
Didn't work correctly? Now you have me curious. What did it do? I assume it trashed the accumulator, but did it do so in a consistent manner?

It's mentioned on that page I linked to:
Quote:
So ROR on early 6502s does three things wrong:

It shifts left, instead of right (behaves like ASL)
It shifts a zero in, instead of C (behaves like ASL)
It doesn't update C (as if it wasn't a rotate instruction)


Top
 Profile  
Reply with quote  
PostPosted: Fri Oct 06, 2017 12:10 pm 
Offline

Joined: Thu Jul 27, 2017 7:48 pm
Posts: 68
Tor wrote:
So ROR on early 6502s does three things wrong:


It should be named as LOL instead :-)


Top
 Profile  
Reply with quote  
PostPosted: Fri Oct 06, 2017 4:23 pm 
Offline

Joined: Fri Apr 15, 2016 1:03 am
Posts: 136
Maybe try Klaus's nice 6502 CPU test: https://github.com/Klaus2m5/6502_65C02_functional_tests


Top
 Profile  
Reply with quote  
PostPosted: Sun Oct 08, 2017 3:45 am 
Offline
User avatar

Joined: Sun Oct 18, 2015 11:02 pm
Posts: 428
Location: Toronto, ON
Ax2013 wrote:
Status update: (the image says everything I think...)
Attachment:
calc_error.JPG
Wow ... very impressive to have this much working - congratulations! Using Klaus' test suite from here seems like a good idea.

_________________
C74-6502 Website: https://c74project.com


Top
 Profile  
Reply with quote  
PostPosted: Sun Oct 08, 2017 5:02 am 
Offline

Joined: Thu Jul 27, 2017 7:48 pm
Posts: 68
leepivonka wrote:
Maybe try Klaus's nice 6502 CPU test: https://github.com/Klaus2m5/6502_65C02_functional_tests

Thank you. Didn't know about this and ran out of ideas.

Axel.


Top
 Profile  
Reply with quote  
PostPosted: Sun Oct 08, 2017 2:16 pm 
Offline
User avatar

Joined: Fri Dec 11, 2009 3:50 pm
Posts: 3349
Location: Ontario, Canada
yes, congratulations, Ax2013! Do you have an up-to-date photo you can share?

-- Jeff

_________________
In 1988 my 65C02 got six new registers and 44 new full-speed instructions!
https://laughtonelectronics.com/Arcana/ ... mmary.html


Top
 Profile  
Reply with quote  
PostPosted: Mon Oct 09, 2017 5:25 pm 
Offline

Joined: Thu Jul 27, 2017 7:48 pm
Posts: 68
Dr Jefyll wrote:
Do you have an up-to-date photo you can share?


Well, sure. However it hasn't changed much since the last photo.
Attachment:
TTL_Proto2.JPG
TTL_Proto2.JPG [ 698.47 KiB | Viewed 1381 times ]


Bottom right ROM/RAM, RS232 on breadboard and top right clock.

Axel.


Top
 Profile  
Reply with quote  
PostPosted: Tue Oct 10, 2017 7:39 pm 
Offline

Joined: Thu Jul 27, 2017 7:48 pm
Posts: 68
I spent hours in searching for the error. Focused on the microcode, but there wasn't errors. After "single step" debugging I found out that the clock design is so strict that I cannot mix HCT and LS chips. Need to redesign clock circuit (if I continue this project at all). The current setup won't work very fast either. Couple of not gates are not enough between phases.
But anyway... the first milestone reached:
Attachment:
Milestone_1.JPG
Milestone_1.JPG [ 18.71 KiB | Viewed 1353 times ]


Axel.


Top
 Profile  
Reply with quote  
PostPosted: Thu Oct 12, 2017 8:50 pm 
Offline

Joined: Thu Jul 27, 2017 7:48 pm
Posts: 68
Made some tweaking in clock circuit. Max clock: 1.5MHz stable. Using 1MHz oscillator should be safe.
Attachment:
TTL_1mhz.JPG
TTL_1mhz.JPG [ 22 KiB | Viewed 1326 times ]


Axel.

BTW: it has been "a while" since I wrote few lines in Basic... :-)


Top
 Profile  
Reply with quote  
PostPosted: Fri Oct 13, 2017 6:31 am 
Offline
User avatar

Joined: Fri Nov 09, 2012 5:54 pm
Posts: 1392
Congratulations: finding and fixing that sort of error ain't easy.

I remember to have had problems with the clock generation in my first TTL CPU (M01), too.
When making a complete redesign (M02), I had aimed for two PCBs with a less dense layout instead of sticking with a single PCB.


Top
 Profile  
Reply with quote  
PostPosted: Thu Oct 26, 2017 8:10 pm 
Offline

Joined: Thu Jul 27, 2017 7:48 pm
Posts: 68
http://retro64.altervista.org/blog/home ... 7792968750

Ran these tests for fun. I expected much lower results due to MS Basic 1.0, microcode not fully optimized and slow shift right implementation.
TTL CPU @1MHz.

Benchmark 1
1,5 sec

Benchmark 2
9 sec

Benchmark 3
18 sec

Benchmark 4
20 sec

Benchmark 5
22 sec

Benchmark 6
33 sec

Benchmark 7
49 sec

Benchmark 8
1 min 52 sec

Axel.

disclaimer: this is very unscientific


Top
 Profile  
Reply with quote  
PostPosted: Mon Oct 30, 2017 7:14 pm 
Offline

Joined: Thu Jul 27, 2017 7:48 pm
Posts: 68
The final release of the schematic. I haven't drawn it publishing in mind but the story matters... (I hope).
Right now I'm waiting for RS232 PCB. That completes the prototype.
Attachment:
IMG_2737.JPG
IMG_2737.JPG [ 451.35 KiB | Viewed 1233 times ]


Axel.


Attachments:
AComputer_protoA.pdf [586.64 KiB]
Downloaded 96 times
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 82 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6  Next

All times are UTC


Who is online

Users browsing this forum: Sean and 37 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: