[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: System identification from Applesoft?
gids.rs wrote:
> On Tuesday, February 12, 2013 7:48:14 PM UTC-6, Jayson Smith wrote:
>> Hi,
>>
>>
>>
>> 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
>
>
>
> Here is a chart of ID bytes
>
> $FBB3 $FBC0 $FBBF
> System 64435 64448 64447
>
> Apple II $38 (56) $60 (96) $2F (47)
> Apple II+ $EA (234) $EA (234 $EA (234)
> Apple IIe $06 $EA $C1 (193)
> Apple IIe+ $06 $E0 $00
> Apple IIc $06 $00 $FF (255)
> Apple IIc+ $06 $00 $00
> Apple IIGS $06 $E0 (224) $00
>
>
>
> Rob
>
As the //e enhanced (IIe+) and IIgs share same signature, a further
filtering code is needed
;Y register = 2 upon entry...
LDA $FC5C ;value $EB in IIGS ROM
CMP #$EB
BNE :2 Exit with IIe+ ID
LDY #8 Else IIGS
CLC
XCE Enter native 16its mode
PHP
REP $30 Set 16bits for X,Y and Acc, mem
JSR $FE1F Call ID routine
STY NEWY
PLP
XCE Restore emulation mode
LDY #12
LDA NEWY+1
BNE :2 Exit with Y=12 if newer than //gs machine code
LDA NEWY
ORA #8 Exit with Y between 8 and 11 according to //gs ROM level
:2 RTS