2 ; 2018-04-20, Marco van den Heuvel
3 ; 2018-04-26, Greg King
6 ; unsigned char detect_c128 (void);
8 ;/* Check for the presence of a C128 in C64 mode.
10 ; * Possible return values:
11 ; * 0x00 : C128 in C64 mode not present
12 ; * 0x01 : C128 in C64 mode present
17 .include "accelerator.inc"
23 ; Make sure the CPU is an 8502.
24 .byte $3A ; NOP on 8502, DEA on 65(S)C(E)02, 4510, and 65816
27 ; Make sure a C128 VIC-IIe is present.
31 txa ; return zero when not VIC-IIe