6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Sun Nov 24, 2024 3:00 pm

All times are UTC




Post new topic Reply to topic  [ 23 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: Fri Oct 03, 2014 2:46 am 
Offline
User avatar

Joined: Thu Apr 24, 2014 10:23 pm
Posts: 13
Hi all,

I'm finishing up the editing for Roger Wagner's "Assembly Lines: The Complete Book." I'm up to chapter 33, which comes from Softalk, June 1983. In that article, Roger is discussing the new instructions available on the 65C02 chip.

The article talks about the new "indexed absolute indirect" addressing modes. For example, JMP ($1234,X), which does "pre-indexing" by adding X to $1234, then dereferencing that pointer to find the actual jump address. That's all fine, but then the article states that this addressing mode is now available on ADC, AND, CMP, EOR, LDA, ORA, SBC, and STA.

I think that this is just a mistake, because all of the information that I can find states that for the 65C02, JMP is the only instruction that can use this new addressing mode.

My questions are - just to be sure, is this indeed true that JMP ($1234,X) is the only case for this mode? And, is it possible that there was a "prototype" or some "early-release" documentation that suggested that the new mode would be available for the other instructions? I don't want to hack out that part of the article, only to find out that I was completely wrong...

Thanks in advance for the help!

-Chris
p.s. I've attached a PDF of the article


Attachments:
File comment: Assembly Lines 33 from Softalk June 1983 - please do not redistribute
AssemblyLines33.pdf [1.08 MiB]
Downloaded 111 times
Top
 Profile  
Reply with quote  
PostPosted: Fri Oct 03, 2014 3:06 am 
Offline
User avatar

Joined: Fri Aug 30, 2002 1:09 am
Posts: 8546
Location: Southern California
gorthmog wrote:
My questions are - just to be sure, is this indeed true that JMP ($1234,X) is the only case for this mode?

Yes, JMP is the only one. The 65CE02 and 65816 adds JSR(abs,X).

Quote:
And, is it possible that there was a "prototype" or some "early-release" documentation that suggested that the new mode would be available for the other instructions?

I doubt it, but your line here is why I checked the 'CE02 which did make it into production but not very many were made.

_________________
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?


Top
 Profile  
Reply with quote  
PostPosted: Fri Oct 03, 2014 3:37 am 
Offline
User avatar

Joined: Sun Jun 30, 2013 10:26 pm
Posts: 1950
Location: Sacramento, CA, USA
In addition to the alleged ADC ($1234,X) nonsense, the third paragraph of the .pdf article states:
Quote:
The 6502 was apparently first designed by Commodore Business Machines, and, as of the present, 70% of its use is by Apple, Atari, and Commodore.

I have no problem accepting the second half of the sentence (in Summer of '83 context), but the first half of the sentence seems completely contrary to the histories that I've read. I was in third grade when it was introduced, but knew nothing about it until I saw an Apple II plotting some "high-res" graphics at a science fair several years later, so I have to rely on the histories provided by others, and this particular one seems a bit shaky.

Mike


Top
 Profile  
Reply with quote  
PostPosted: Fri Oct 03, 2014 4:05 am 
Offline
User avatar

Joined: Thu Apr 24, 2014 10:23 pm
Posts: 13
Thanks Garth and Mike. I think I'll just assume that it was a mis-reading of the JMP addressing mode, and I'll just correct the article.

Regarding the "design" of the 65C02, Roger is partially correct. According to the information that I've been able to find, the 6502 was originally designed by MOS Technology (after the engineers split from Motorola). But then, MOS Technology was indeed bought by Commodore in 1976. It sounds kind of sad - the engineers left Motorola because they weren't allowed to develop a low-cost chip. Then, after Commodore bought MOS, the R&D budget was again cut, and they ended up having to leave again. One wonders what might have happened if Commodore had developed the 65C02 under their company...

Anyway, in my edited version of the article, I've made some slight corrections to the history, to include mention of MOS.

Thanks again for the feedback!

-Chris


Top
 Profile  
Reply with quote  
PostPosted: Fri Oct 03, 2014 4:17 am 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8514
Location: Midwestern USA
gorthmog wrote:
The article talks about the new "indexed absolute indirect" addressing modes. For example, JMP ($1234,X), which does "pre-indexing" by adding X to $1234, then dereferencing that pointer to find the actual jump address. That's all fine, but then the article states that this addressing mode is now available on ADC, AND, CMP, EOR, LDA, ORA, SBC, and STA.

As Garth noted, only JMP has an indexed absolute indirect addressing mode. The other instructions do have a zero page indirect mode, e.g., LDA ($12), with the 65C02. Of course, LDA ($12,X) exists as it did in the NMOS 65xx family.

I'm sure you are aware that there are variances between different manufacturers' 65C02s. The definitive version is the W65C02S, which is current production.

Quote:
According to the information that I've been able to find, the 6502 was originally designed by MOS Technology (after the engineers split from Motorola). But then, MOS Technology was indeed bought by Commodore in 1976. It sounds kind of sad - the engineers left Motorola because they weren't allowed to develop a low-cost chip. Then, after Commodore bought MOS, the R&D budget was again cut, and they ended up having to leave again. One wonders what might have happened if Commodore had developed the 65C02 under their company...

That pretty much describes how it went. Jack Tramiel was a notorious tightwad who was allergic to spending money on product improvements. Although his business model pushed Commodore into the $1 billion sales range with the C-64, he created a corporate mentality that didn't want to stay ahead of the curve. By the time Irving Gould comprehended what was happening to Commodore and gave Tramiel the boot, the seeds for the company's failure had already been planted.

As for the 65C02, that was Bill Mensch's baby. He designed it from the ground up and got Apple to use it in both the ][e and ][c. History then repeated itself when the Apple ][gs went into production with the Mensch-designed 65C816. Like the 65C02, the '816 was second-sourced, but again, only the W65C816S remains in production.

Incidentally, there are other historical errors. For example:

    As sometimes happens with these things, though, some of the key persons involved with the 6502 went to work at a new company, Western Design Center. This company, then, is the original source of the new 65C02 chip. But the story doesn’t end there. Western Design Center has sold the design to at least three independent manufacturers, Rockwell International, GTE, and NCR. These companies took the initial 65C02 design, corrected initial design errors, and added their own enhancements.

In reality:

  1. The "key person" who left MOS Technology and "went to work...at...Western Design Center" was Bill Mensch, Jr., the founder of Western Design Center.

  2. WDC didn't "sell" the design, they licensed it. There's a big difference between selling and licensing.

  3. Rockwell, GTE and NCR didn't fix any design errors. As for whether their changes were "enhancements," that is a matter of debate.

Some of the instructions that the original author indirectly attributes to Rockwell were part of the Mensch design before Rockwell got involved.

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


Last edited by BigDumbDinosaur on Fri Oct 03, 2014 6:47 am, edited 2 times in total.

Top
 Profile  
Reply with quote  
PostPosted: Fri Oct 03, 2014 4:20 am 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8514
Location: Midwestern USA
barrym95838 wrote:
In addition to the alleged ADC ($1234,X) nonsense, the third paragraph of the .pdf article states:
Quote:
The 6502 was apparently first designed by Commodore Business Machines...

That of course is false. The release of the 6502 predated Commodore's involvement with and eventual purchase of MOS Technology.

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


Top
 Profile  
Reply with quote  
PostPosted: Fri Oct 03, 2014 5:14 am 
Offline
User avatar

Joined: Thu Apr 24, 2014 10:23 pm
Posts: 13
Thanks BigDumbDinosaur (?). I've added your corrections to the chapter, including the wording change from "sell" to "license". Good catch!
-Chris


Top
 Profile  
Reply with quote  
PostPosted: Fri Oct 03, 2014 6:46 am 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8514
Location: Midwestern USA
gorthmog wrote:
Thanks BigDumbDinosaur (?). I've added your corrections to the chapter, including the wording change from "sell" to "license". Good catch!
-Chris

A significant difference between the genuine WDC 65C02 (W65C02S) and the product shipped by Rockwell et al is the inclusion of two machine instructions in the former that along with conversion to a static core, made the WDC part suitable for use in implanted medical devices. There are also some electrical differences that make the WDC part more adaptable to a variety of applications. As well, the WDC part is capable of running at far higher speeds. Anyone who is interested in scratch-building a 65C02 device should resist the temptation to use a non-WDC MPU.

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


Top
 Profile  
Reply with quote  
PostPosted: Sat Oct 04, 2014 1:30 am 
Offline
User avatar

Joined: Fri Dec 11, 2009 3:50 pm
Posts: 3367
Location: Ontario, Canada
barrym95838 wrote:
In addition to the alleged ADC ($1234,X) nonsense, the third paragraph of the .pdf article states:
Quote:
The 6502 was apparently first designed by Commodore Business Machines, and, as of the present, 70% of its use is by Apple, Atari, and Commodore.

I have no problem accepting the second half of the sentence (in Summer of '83 context), but the first half of the sentence seems completely contrary to the histories that I've read.
Indeed. It almost seems the word apparently is a tacet admission by the author that the matter hasn't been researched. :? OTOH the book is about assembly language, not history. And it's a draft we're seeing -- that's why it's still being edited!


BigDumbDinosaur wrote:
Anyone who is interested in scratch-building a 65C02 device should resist the temptation to use a non-WDC MPU.
I think we've been over this already. You're very zealous in your endorsement of WDC MPUs, BDD! Certainly they're fine products -- but not the best choice for everyone, as you seem to agree early in this thread (excerpts below).

I wrote:
WDC is the only company that's currently manufacturing a 6502 made in CMOS. Nevertheless, Rockwell and other 65C02 chips are still very widely available and reasonably priced. IMO the WDC product is a good choice if you're an advanced user who can benefit from 14 MHz operation and unique WDC features such as the VP and BE pins.

Otherwise, you will do better with an alternative product -- mainly because the older, slower chips are actually more forgiving in terms of less-than-perfect construction techniques (such as breadboards).
BigDumbDinosaur wrote:
What Jeff is alluding to is the very rapid rise and fall times of the WDC 65C02's outputs (and the 65C816). Even at low Ø2 rates, the effect of a sub-nanosecond state change time can cause severe ringing and other maladies. So, Jeff's advice is to be considered if you are unsure about how well you can construct your project.

cheers
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: Sat Oct 04, 2014 4:03 am 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8514
Location: Midwestern USA
Dr Jefyll wrote:
I think we've been over this already. You're very zealous in your endorsement of WDC MPUs, BDD!

That's because I own stock in the company! :lol: Just kidding.

It's not a case of being zealous, but rather one of encouraging the use of the "definitive" version of the 65C02, since that is the only one that is in production. My comment about resisting the temptation to use the non-WDC parts, which are all NOS or pulls of sometimes-dubious origin, doesn't say one should not use them. :)

To be sure, the very rapid switching speeds of the genuine 65C02 can give the unwary experimenter trouble. However, the same can be said for the WDC peripheral silicon, whose MPU interface (data bus, chip selects, etc.) has to be at least as fast as the MPU itself if operation is to be achieved at the rated clock speeds. That in itself shouldn't stop one from using WDC parts, unless trying to build a circuit on breadboard with long, curvy wires. In fact, getting a computer running with WDC parts should be viewed as a design challenge and learning experience. :lol:

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


Top
 Profile  
Reply with quote  
PostPosted: Mon Oct 13, 2014 8:07 am 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10986
Location: England
Hi BDD
I think you may be indeed be a little over-zealous here. Let's at least mention Chuck Peddle as well as Bill Mensch. And perhaps we can agree that WDC's 65C02 is the surviving 6502 variant - I wouldn't go so far as to call it definitive, as it was neither the first 6502 variant or the first CMOS variant. History may be written by the winners, but we needn't give all the glory to Bill. He's built a successful business but was not the prime mover.

Cheers
Ed


Top
 Profile  
Reply with quote  
PostPosted: Tue Oct 14, 2014 5:05 am 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8514
Location: Midwestern USA
BigEd wrote:
And perhaps we can agree that WDC's 65C02 is the surviving 6502 variant - I wouldn't go so far as to call it definitive, as it was neither the first 6502 variant or the first CMOS variant. History may be written by the winners, but we needn't give all the glory to Bill. He's built a successful business but was not the prime mover.

Mensch designed the 65C02, so that would make his creation definitive for the CMOS line.

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


Top
 Profile  
Reply with quote  
PostPosted: Tue Oct 14, 2014 5:38 am 
Offline

Joined: Wed May 20, 2009 1:06 pm
Posts: 491
BigDumbDinosaur wrote:
BigEd wrote:
And perhaps we can agree that WDC's 65C02 is the surviving 6502 variant - I wouldn't go so far as to call it definitive, as it was neither the first 6502 variant or the first CMOS variant. History may be written by the winners, but we needn't give all the glory to Bill. He's built a successful business but was not the prime mover.

Mensch designed the 65C02, so that would make his creation definitive for the CMOS line.


Quote:
The 6502 was designed by many of the same engineers that had designed the Motorola 6800 microprocessor family.[2] Motorola started the microprocessor project in 1971 with Tom Bennett as the main architect. The chip layout began in late 1972, the first 6800 chips were fabricated in February 1974 and full family was officially released in November 1974.


http://en.wikipedia.org/wiki/MOS_Technology_6502

Quote:
When the 6501 was announced, Motorola launched a lawsuit almost immediately. Although the 6501 instruction set was not compatible with the 6800, it could nevertheless be plugged into existing motherboard designs because it had the same functional pin arrangement and IC package footprint. That was enough to allow Motorola to sue. Sales of the 6501 basically stopped, and the lawsuit would drag on for many years before MOS was eventually forced to pay $200,000 USD in fines.


http://en.wikipedia.org/wiki/MOS_Technology

I got my first computer in 1983 which was a Commodore 64 so I only know of the MOS Technology era and I wish I knew more of the Motorola era which would answer a lot of questions about these chips. The lack of knowledge may mean that Motorola has a lot more understanding of these chips than I know.

History is often told by its survivors so that is why the Wikipedia pages are so important but the fact is that I only know of one producer left for the 6502 line.

I don't know of any other computer company other than MOS Technology that started so many computer companies:

Quote:
The most famous member of the 650x series was the 6502, developed in 1976, which was priced at 15 percent of the cost of an Intel 8080, and was subsequently used in many commercial products, including the Apple II, Commodore VIC-20, Nintendo Entertainment System, Atari 8-bit computers, Oric computers and BBC Micro from Acorn Computers.

The 6502 microprocessor design was also modified to support other computers while maintaining backwards compatibility. The 6507 was the CPU of the Atari 2600. The 6510 was used in the Commodore 64.

Peddle left the company in 1980 together with CBM financer Chris Fish to found Sirius Systems Technology. There, Peddle designed the Victor 9000 personal computer/workstation.


http://en.wikipedia.org/wiki/Chuck_Peddle

Quote:
Soon after the 6502's introduction, MOS Technology was purchased outright by Commodore International, who continued to sell the microprocessor and licenses to other manufacturers. In the early days of the 6502, it was second-sourced by Rockwell and Synertek, and later licensed to other companies.


http://en.wikipedia.org/wiki/MOS_Technology_6502

So yes, Motorola basically invented it but no one popularized it and started so many computer companies than Chuck Peddle and it was the outsourcing by Rockwell, Synertek, etc that got it into other devices.

Western Design Center got it into other computers / devices.

The importance today is, "What are you doing with it now?" Unless it is being used, it is almost useless.


Top
 Profile  
Reply with quote  
PostPosted: Tue Oct 14, 2014 6:16 am 
Offline
User avatar

Joined: Fri Aug 30, 2002 1:09 am
Posts: 8546
Location: Southern California
From the interview with Bill Mensch, in video at http://silicongenesis.stanford.edu/stan ... mensch.htm, and transcribed at http://silicongenesis.stanford.edu/tran ... mensch.htm, starting about 55 or 60% of the way down the page:
Quote:
WM: That's right. Left with a group and this is the group. That group right there is the group and this is Will Mathis, this is myself, this is Rod Orgle, Ray Hirt, Chuck Peddle, Harry Bock, and Mike James, and this is Sid. She wasn't from Motorola, and this is Terry Holt. So all of these people except for Sid, who worked at Motorola by the way, or has worked, she bought my car from me after she moved to Arizona, but anyhow, we left Motorola individually but we worked on the 6502. And then, Motorola sued us, right here. Right there, now the date on the Electronics News is November 3, 1975. November 3, 1975, this right here, this picture is in August 25, 1975. We left Motorola in August and the start date at MOS Technology was August 19, 1974. Now if anyone is familiar with the design times in those days, our official start date was one week before this picture was taken. And the Westcon - the Westcon show is where we unveiled the 6502 and this ad right here is the ad that was placed and it even says - what does it say here? Try either product at Westcon booth 1010 in September and this advertisement was in Electronic Engineering Times September 8, 1975

RW: Now so did you take intellectual property with you?

WM: No, we have a new design is what it was. It was a brand new design.

RW: Key question. Okay, all right.

WM: Yeah, the difference - let me explain that. Let's get on record on saying that. Motorola, when I designed the process control monitor at Motorola, I did something unusual. For the first time an engine - the - I think all the process control monitors may have been designed by the process engineers. This is the first time that a circuit designer designed the process control monitor. And what I did when I designed that is I designed not only the enhancement mode process but also depletion mode process. If you look at the 8080, the original 8080, 4004 that started the microprocessor business at Intel, 4004, the 4040, the 8080, the 6800, was the first five volt only microprocessor and Motorola has a patent on that. Five-volt only microprocessor. That's the claim. Intel's was plus 12, minus 12 and five volts. The depletion load would allow us to design much easier, single power supplied microprocessors, but Motorola didn't want to use that technology. They did not want to use it and they wouldn't even process my depletion load mask for months after I had it. When we left in August of 1975, I started there in June, actually, June 14, 1971 is when I started. I left approximately August of, well it was in August of 1975. So I worked there what, three, that's four, four years. No I'm sorry, '74, August 19 of 1974.

RW: So you guys all went to do GI?

WM: No, MOS Technology in Valley Forge Corporate Center in Norristown. So this chip - the 6502 is in here. This chip was depletion load designed. Motorola didn't have any depletion load design. If you look at the architecture of the 6502, gosh, I guess I have that picture here someplace. This 65 - this is a original 6502 NMOS microprocessor. It's totally different instruction set. The only thing that was compatible is the pin out. All of the instructions were different. The way we did the instruction decode was different. All of the registers are different. Most of the addressing modes are different. So Motorola had no claim on this except for some basic patents, and those basic patents are even called out in this thing here that has to do with charged MOS Technology with patent infringement and unfair competition. And their complaints were focused on patents dealing with methods and apparatuses describing germanium and silicon wafers and breaking of wafers into dikes. It doesn't have to do with microprocessors because they didn't have a claim on it.

_________________
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?


Top
 Profile  
Reply with quote  
PostPosted: Tue Oct 14, 2014 8:34 am 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10986
Location: England
(Just to note that BDD has been an active editor on Wikipedia, which is of course a splendid thing, but it does mean that BDD and Wikipedia are slightly more likely to be in agreement!)


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

All times are UTC


Who is online

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