2 ; Marco van den Heuvel, 2018-04-08
5 ; unsigned char detect_scpu (void);
7 ;/* Check for the presence of the SuperCPU cartridge.
9 ; * Possible return values:
10 ; * 0x00 : SuperCPU cartridge not present
11 ; * 0x01 : SuperCPU cartridge present
16 .include "accelerator.inc"
21 ; Make sure the current CPU is a 65816
23 .byte $E2,$01 ; NOP #$01 on 6510 and 65(S)C02, LDA $(01,S),Y on 65CE02 and 4510, SEP #$01 on 65816
24 bcc not_found ; carry will be set on 65816
26 ; 65816 has been detected, make sure it's the SuperCPU cartridge