[net.micro.apple] Putting a 65C02 cpu in an Apple II+

sjl@myrias.UUCP (Stuart Lomas) (01/30/86)

While visiting my local components dealer yesterday, I noticed a
Rockwell R65C02P1 microprocessor on the shelf. The data sheet says
that it is software and pinout compatible with the standard NMOS
6502, the only differences being lower power consumption and an
extended instruction set. Feeling brave, I plunked down my C$12.19,
bought the chip, and plugged it into my 5 year old Apple II+. It
seems to work - that is, Apple Pascal 2.1 runs just fine.

Now for some questions:

   - Has anyone else out there tried this? Any problems?

   - I assume that this is the same chip as is found in the Apple //c.
     However, the data sheet for my chip describes a whole series of
     instructions that do not appear in the //c reference manual,
     specifically:

	SMB[0-7] (Set Memory Bit 0-7, 8 opcodes)
	RMB[0-7] (Reset Memory Bit)
	BBS[0-7] (Branch on Bit Set)
	BBR[0-7] (Branch on Bit Reset)

     There may be some other inconsistencies - I didn't have both
     sheets to compare. A whole variety of other instructions (PHX,
     PHY, LDA (ind), BRA, etc) appear in both the data sheet and //c
     reference manual.

     So, do I have the same chip as the Apple //e?

   - Currently, I do all of my assembler programming using the Apple
     Pascal 2.1 assembler, which is nice because I can link assembler
     subroutines to my Pascal programs. Does anyone know of an assembler
     that runs under Pascal 2.1 and assembes the 65C02 opcodes and
     extended addressing modes?

notes@isucs1.UUCP (02/06/86)

/***** isucs1:net.micro.apple / myrias!sjl /  8:39 pm  Feb  4, 1986 */
>While visiting my local components dealer yesterday, I noticed a
>Rockwell R65C02P1 microprocessor on the shelf. The data sheet says
>that it is software and pinout compatible with the standard NMOS
>6502, the only differences being lower power consumption and an
>extended instruction set. Feeling brave, I plunked down my C$12.19,
>bought the chip, and plugged it into my 5 year old Apple II+. It
>seems to work - that is, Apple Pascal 2.1 runs just fine.
>
>Now for some questions:
>
   >- Has anyone else out there tried this? Any problems?
>
   >- I assume that this is the same chip as is found in the Apple //c.
     >However, the data sheet for my chip describes a whole series of
     >instructions that do not appear in the //c reference manual,
     >specifically:
>
	>SMB[0-7] (Set Memory Bit 0-7, 8 opcodes)
	>RMB[0-7] (Reset Memory Bit)
	>BBS[0-7] (Branch on Bit Set)
>	BBR[0-7] (Branch on Bit Reset)
>
>
     >There may be some other inconsistencies - I didn't have both
     >sheets to compare. A whole variety of other instructions (PHX,
     >PHY, LDA (ind), BRA, etc) appear in both the data sheet and //c
     >reference manual.
>
     >So, do I have the same chip as the Apple //e?
>
   >- Currently, I do all of my assembler programming using the Apple
    > Pascal 2.1 assembler, which is nice because I can link assembler
     >subroutines to my Pascal programs. Does anyone know of an assembler
     >that runs under Pascal 2.1 and assembes the 65C02 opcodes and
     >extended addressing modes?

The Apple //c and enhanced //e use the NCR version of the 65C022
which does not have all of the instructions that the Rockwell version
does.  I have heard of some compatability problems with the Rockwell chips
in Apple //'s, but that may be only with older versions of that chip.

The only assemblers that I know of that support the extended instructions
of the 65C02 are ORCA/M by the BitWorks, Merlin by Roger Wagner publishing,
Big Mac, by A.P.P.L.E. (the user group)  None of these run under Pascal...

I also assume that you mean Apple Pascal 1.2.... as far as I know the most
recent version of Apple Pascal is 1.3, which runs under ProDOS, perhaps this
version with the ProDOS version of ORCA/M (an _awesome_ assembler) would
solve your problem.

		   "I am not affiliated with anyone in particular so sue
		   me alone (if you can get blood out of a turnip) but
		   leave my UNIX site alone - disclaimer}"
		   
		   Lee Heins
		   /* ---------- */

gwyn@brl-smoke.ARPA (Doug Gwyn ) (02/10/86)

>The only assemblers that I know of that support the extended instructions
>of the 65C02 are ORCA/M by the BitWorks, Merlin by Roger Wagner publishing,
>Big Mac, by A.P.P.L.E. (the user group)  None of these run under Pascal...
>
>I also assume that you mean Apple Pascal 1.2.... as far as I know the most
>recent version of Apple Pascal is 1.3, which runs under ProDOS, perhaps this
>version with the ProDOS version of ORCA/M (an _awesome_ assembler) would
>solve your problem.

Manx's Aztec C65 for ProDOS includes an assembler that handles 65C02
instructions, although it is not as fancy as assemblers intended for
direct assembly-language programming.  (On the other hand, with C
available, one uses assembly language less often.)  I am glad to hear
that Apple Pascal now runs under ProDOS; three OSes for the Apple ][
was a bit excessive.

faubel@apollo.uucp (Ken Faubel) (02/10/86)

> I also assume that you mean Apple Pascal 1.2.... as far as I know the most
> recent version of Apple Pascal is 1.3, which runs under ProDOS, perhaps this
> version with the ProDOS version of ORCA/M (an _awesome_ assembler) would
> solve your problem.

Please explain what you mean about Apple Pascal 1.3 running under ProDOS.  I 
have Pascal 1.3 and although I have heard rumors suggesting that it is ProDOS
based, I do not beleive it to be so.  Pascal 1.3 is an upward compatable
version for 1.2 and 1.1 and it still uses the UCSD P-system environment.  
I would have liked to see Pascal 1.3 running under ProDOS so that I could
work in a more popular environment with access to lots of utilities.  If I am
missing something please let me know.
                              

By the way, there is a C compiler for the Pascal environment.  It is an implementation
of the 'Small C Compiler' and it is available from Thunder Software in Houston, TX.  It
compiles C code into assembly code and from there it can be assembled and run.  It has
the advantage that routines can be written and linked to Pascal programs.  (I think the 
C compiler is also available for Prodos).  Although this company is small they seem to 
have some interesting stuff like an Appleworks like editor for Pascal.
 
--
                                                                            

Ken Faubel              {yale,uw-beaver,decvax!wanginst}!apollo!faubel
Apollo Computer