[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: System identification from Applesoft?



> Are there any peeks, calls, etc. you can use to definitively identify what 
> type of Apple is being used from Applesoft? In particular, I'm looking for a 
> way to identify a GS from a non-GS.
> 
> Thanks.
> Jayson


The only reason you really would need to do this is if you are programming specifically for a IIGS machine due to the 16 bit use of opcodes.  Otherwise, the IIGS is just basically an enhanced IIe which makes it compatible with any software you write for previous Apple II's.

You would not want to program software on an older Apple II to isolate the IIGS, when it is quite capable of running that software.

Which also means, you would more than likely be programming in Machine Language or using an assembler.

You then would not need to isolate the ID bytes.  A simple routine such as this is all that is needed.

 SEC
 JSR $FE1F
 BCC IIGS
 RTS        ; not a IIGS so exit

IIGS        ; is a IIGS so continue on with program