6502 can be faster than 68k :-)
- GARTHWILSON
- Forum Moderator
- Posts: 8775
- Joined: 30 Aug 2002
- Location: Southern California
- Contact:
Re: 6502 can be faster than 68k :-)
Aslak3 wrote:
First, shouldn't this be in he Hardware sub-forum? 
Quote:
Secondly, isn't this like comparing a bus (yes one with wheels!) with a sports car? Both will get you where you want to go, but both have pros and cons. Saying something is "faster" tells you nearly nothing.
Quote:
Thirdly, and not trying to start a flame war here; this is a well intended question that I'd like to hear the answer for... I'm curious why the 6502 has endured but (say) the 6809 has not? I have only written code on the 6809 (except for a bit of Z80 back in the day), but I think I would really struggle without 16bit index registers and the (relatively sophisticated) addressing modes. Not to mention the 16bit (dual) stack pointers and relocatable direct page. For the programmer at least it seems clear which one is more pleasant to work with?
Quote:
I do use MOS peripheral ICs in my 8bit computer though, and consider them to be nice parts. Eg. the 6522 trounces the 6821 in every meaningful way.
http://WilsonMinesCo.com/ lots of 6502 resources
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?
Re: 6502 can be faster than 68k :-)
BigEd wrote:
I think it's often imprinting - The first CPU you get to know well is the one you fixate on. Probably the C64 and the Beeb, the Apple II and the PET have a lot to do with it. Captured in our teens or 20's, we're still here in our ... middle years.
(And the Atari, the NES, ...)
(And the Atari, the NES, ...)
8 bit fun and games: https://www.aslak.net/
- barrym95838
- Posts: 2056
- Joined: 30 Jun 2013
- Location: Sacramento, CA, USA
Re: 6502 can be faster than 68k :-)
Aslak3 wrote:
... I'm curious why the 6502 has endured but (say) the 6809 has not? I have only written code on the 6809 (except for a bit of Z80 back in the day), but I think I would really struggle without 16bit index registers and the (relatively sophisticated) addressing modes. Not to mention the 16bit (dual) stack pointers and relocatable direct page. For the programmer at least it seems clear which one is more pleasant to work with? ...
Mike
- BigDumbDinosaur
- Posts: 9428
- Joined: 28 May 2009
- Location: Midwestern USA (JB Pritzker’s dystopia)
- Contact:
Re: 6502 can be faster than 68k :-)
Aslak3 wrote:
...I think I would really struggle without 16bit index registers and the (relatively sophisticated) addressing modes. Not to mention the 16bit (dual) stack pointers and relocatable direct page.
You should consider the 65C816, as it essentially offers everything that was offered by the 6809, plus much higher speeds, much better interrupt performance and the familiarity of the 6502 instruction set. The one thing missing from your wishlist is dual stack pointers, which I mostly see as a liability, not an asset.
Quote:
For the programmer at least it seems clear which one is more pleasant to work with?
x86? We ain't got no x86. We don't NEED no stinking x86!
Re: 6502 can be faster than 68k :-)
Aslak3 wrote:
BigEd wrote:
I think it's often imprinting - The first CPU you get to know well is the one you fixate on. Probably the C64 and the Beeb, the Apple II and the PET have a lot to do with it. Captured in our teens or 20's, we're still here in our ... middle years.
(And the Atari, the NES, ...)
(And the Atari, the NES, ...)
Re: 6502 can be faster than 68k :-)
Perhaps somewhat of topic but somewhat relevant... Does anyone know of any applications that use WDC's products in any way, shape or form? The fact that they're still alive and kicking seems to indicate they're still actively producing them. Either that or they have a LOT of stock to get rid off. If anyone has recently bought one and can share the date-code, that'd be interesting...
Yvo
Yvo
- GARTHWILSON
- Forum Moderator
- Posts: 8775
- Joined: 30 Aug 2002
- Location: Southern California
- Contact:
Re: 6502 can be faster than 68k :-)
yzoer, WDC's main business is licensing IP, not selling hardware. They apparently keep the hardware to help clients and prospective clients to experiment and see the possibilities and start development before having to spend a lot of money developing custom ICs that have the 65c02 at their heart. These clients however are producing such ICs at a rate of hundreds of millions per year though, with clock rates of over 200MHz in at least one case. You probably have some 65c02's you didn't know about, because they're hidden in your car (under the hood, in the dashboard, etc.), in common consumer electronics like cameras and microwave ovens, and they're in medical equipment.
http://WilsonMinesCo.com/ lots of 6502 resources
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?
Re: 6502 can be faster than 68k :-)
Ah, that makes sense then
Thanks for clearing that up. What's interesting though is that Mouser recently started selling them and had them in stock as a 'new' item.
Yvo
Yvo
- GARTHWILSON
- Forum Moderator
- Posts: 8775
- Joined: 30 Aug 2002
- Location: Southern California
- Contact:
Re: 6502 can be faster than 68k :-)
...new for Mouser, in the sense that Mouser did not previously carry them. But yes, the chips are also new, not new old stock (NOS meaning never used but having collected dust for many years). I don't know how often WDC does another run of them (which they do with an outside foundry), but it's probably every couple of years if not more often. IOW, they're not ones left over from the 1990's!
http://WilsonMinesCo.com/ lots of 6502 resources
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?
Re: 6502 can be faster than 68k :-)
Aslak3 wrote:
I'm curious why the 6502 has endured but (say) the 6809 has not?
...
In short, why has the 6502 lasted?
...
In short, why has the 6502 lasted?
History of why Woz picked the 6502: http://apple2history.org/history/ah02/
Re: 6502 can be faster than 68k :-)
Justin wrote:
Aslak3 wrote:
BigEd wrote:
I think it's often imprinting - The first CPU you get to know well is the one you fixate on. Probably the C64 and the Beeb, the Apple II and the PET have a lot to do with it. Captured in our teens or 20's, we're still here in our ... middle years.
(And the Atari, the NES, ...)
(And the Atari, the NES, ...)
- BigDumbDinosaur
- Posts: 9428
- Joined: 28 May 2009
- Location: Midwestern USA (JB Pritzker’s dystopia)
- Contact:
Re: 6502 can be faster than 68k :-)
datajerk wrote:
MOS was aggressive on price, e.g. they made a cheaper 6502 (6507) for Atari.
x86? We ain't got no x86. We don't NEED no stinking x86!
Re: 6502 can be faster than 68k :-)
The 6502 might be faster than the 68K at some things, but executing the Dhrystone benchmark is not one of them 
Looking at the table at http://www.netlib.org/performance/html/ ... .col0.html, the slowest 68K (Mac) got 0.4 MIPS from 7.8Mhz (0.051 MIPS/MHz). Apple and C-64 ranked dead last with 0.02 MIPS from 1Mhz (0.020 MIPS/Mhz).
Looking at the code for the benchmark, it is doing a lot of 16-bit math and pointer operations. On cc65, that generates quite a bit of code, I would imagine it's the same story for these older C compilers. It might be interesting to write an assembler program that does the same thing to compare results (though that's clearly cheating).
Looking at the table at http://www.netlib.org/performance/html/ ... .col0.html, the slowest 68K (Mac) got 0.4 MIPS from 7.8Mhz (0.051 MIPS/MHz). Apple and C-64 ranked dead last with 0.02 MIPS from 1Mhz (0.020 MIPS/Mhz).
Looking at the code for the benchmark, it is doing a lot of 16-bit math and pointer operations. On cc65, that generates quite a bit of code, I would imagine it's the same story for these older C compilers. It might be interesting to write an assembler program that does the same thing to compare results (though that's clearly cheating).
-
White Flame
- Posts: 704
- Joined: 24 Jul 2012
Re: 6502 can be faster than 68k :-)
It's not cheating if it's put head-to-head against hand written 68k assembly code.
- GARTHWILSON
- Forum Moderator
- Posts: 8775
- Joined: 30 Aug 2002
- Location: Southern California
- Contact:
Re: 6502 can be faster than 68k :-)
Justin wrote:
The 6502 might be faster than the 68K at some things, but executing the Dhrystone benchmark is not one of them 
Looking at the table at http://www.netlib.org/performance/html/ ... .col0.html, the slowest 68K (Mac) got 0.4 MIPS from 7.8Mhz (0.051 MIPS/MHz). Apple and C-64 ranked dead last with 0.02 MIPS from 1Mhz (0.020 MIPS/Mhz).
Looking at the table at http://www.netlib.org/performance/html/ ... .col0.html, the slowest 68K (Mac) got 0.4 MIPS from 7.8Mhz (0.051 MIPS/MHz). Apple and C-64 ranked dead last with 0.02 MIPS from 1Mhz (0.020 MIPS/Mhz).
Quote:
Looking at the code for the benchmark, it is doing a lot of 16-bit math and pointer operations.
These numbers are still dinky compared to the upper 2/3 of that page. Again though, a benchmark that tests abilities you don't need isn't very helpful. I've brought eight commercial embedded systems to market (mostly for private aircraft) and finished other commercial ones that didn't make it to market, and none of them made much use of any functions beyond 8 bits.
http://WilsonMinesCo.com/ lots of 6502 resources
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?