Newsgroups: comp.sys.apple2.programmer Path: news.weeg.uiowa.edu!news.uiowa.edu!hobbes.physics.uiowa.edu!math.ohio-state.edu!news.cyberstore.ca!nntp.cs.ubc.ca!unixg.ubc.ca!acs.ucalgary.ca!sbdocker From: sbdocker@acs.ucalgary.ca (Sean Brendan Dockery) Subject: Re: ProDOS and an Apple ][+ Message-ID: Date: Wed, 1 Dec 1993 01:53:17 GMT References: <2ddo68$45c@altitude.HIP.CAM.ORG> Organization: Griffin Software Development Lines: 27 In article <2ddo68$45c@altitude.HIP.CAM.ORG> vandry@CAM.ORG (Phillip Vandry) writes: | The new ProDOS refuses to run on your computer because it assumes | that, like all pluses, it has a 6502. I'm quite surprised yours has | a 65C02. Actually, I don't believe that to be true. I'm fairly susre that it is possible to identify a 65C02 CPU over a 6502 by the following code: SED LDX #$99 INX BEQ :65C02 ;65C02 correctly sets Z flag in .P BNE :6502 ;the 6502 does not I believe that ProDOS 8 2.0.x uses this to identify the CPU. I reserve the right to be mistaken, though. :-) | -Phil -- Sean Dockery dockery@griffin.cuc.ab.ca sbdocker@acs.ucalgary.ca Path: news.weeg.uiowa.edu!news.uiowa.edu!hobbes.physics.uiowa.edu!math.ohio-state.edu!howland.reston.ans.net!cs.utexas.edu!uunet!munnari.oz.au!metro!news.ci.com.au!news.cs.uow.edu.au!news.cs.uow.edu.au!not-for-mail From: david@wraith.cs.uow.edu.au (David E A Wilson) Newsgroups: comp.sys.apple2.programmer Subject: Re: ProDOS and an Apple ][+ Date: 2 Dec 1993 12:07:34 +1100 Organization: University of Wollongong, NSW, Australia. Lines: 23 Message-ID: <2djf4m$cgc@wraith.cs.uow.edu.au> References: <2ddo68$45c@altitude.HIP.CAM.ORG> NNTP-Posting-Host: wraith.cs.uow.edu.au sbdocker@acs.ucalgary.ca (Sean Brendan Dockery) writes: >In article <2ddo68$45c@altitude.HIP.CAM.ORG> vandry@CAM.ORG (Phillip >Vandry) writes: >| The new ProDOS refuses to run on your computer because it assumes >| that, like all pluses, it has a 6502. I'm quite surprised yours has >| a 65C02. >I'm fairly susre that it is possible to identify a 65C02 CPU over a >6502 by the following code: > SED > LDX #$99 > INX > BEQ :65C02 ;65C02 correctly sets Z flag in .P > BNE :6502 ;the 6502 does not Close. The SED instruction only affects ADC & SBC instructions. The code is actually: 2084 sed 2085 lda #0x99 2087 clc 2088 adc #0x01 208a cld 208b bmi 0x20be ; A = 00 but N=1 => 6502