2 ; Marco van den Heuvel, 2018-04-25
5 ; unsigned char detect_chameleon (void);
7 ;/* Check for the presence of the Chameleon cartridge.
9 ; * Possible return values:
10 ; * 0x00 : Chameleon cartridge not present
11 ; * 0x01 : Chameleon cartridge present
14 .export _detect_chameleon
16 .include "accelerator.inc"
22 ; Make sure the CPU is a 6510
23 .byte $1A ; NOP on 6510, INA on 65(S)C(E)02, 4510 and 65816
27 lda #CHAMELEON_ENABLE_REGS