mirror of
https://github.com/V2RetroComputing/analog-utilities.git
synced 2024-11-23 15:31:34 +00:00
Auto selection of card based on detection
This commit is contained in:
parent
0432d5eba1
commit
896c3a046c
@ -335,6 +335,13 @@ int prompt_slot(char *progname) {
|
||||
int c;
|
||||
int done=0;
|
||||
|
||||
// Attempt to find the lowest numbered V2 Analog Card
|
||||
for(c = 7; c > 0; c--) {
|
||||
if(!memcmp("V2A", (uint8_t *)(0xC0F8 + (c << 8)), 3)) {
|
||||
cardslot = c;
|
||||
}
|
||||
}
|
||||
|
||||
backdrop(progname);
|
||||
|
||||
window(" Slot Number? ", 38, 7, 1);
|
||||
|
Loading…
Reference in New Issue
Block a user