rem: if( cards == 0 ) { KPrintF( "Failed to find PNP ISA cards\n" ); } else { ShowCards( res ); }
context: ISAPNP_ScanCards( REG( a6, struct ISAPNPBase* res ) ){  int read_port_value;  int cards = 0;   SendInitiationKey( res );  // Make all cards lose their CSN  SetPnPReg( PNPISA_REG_CONFIG_CONTROL,             PNPISA_CCF_RESET_CSN,             res );  for( read_port_value = 0x80;        read_port_value <= 0xff;        read_port_value += 0x10 )  {    cards = AddCards( read_port_value, res );    if( cards > 0 )    {      break;    }  }  if( cards == 0 )  {    KPrintF( "Failed to find PNP ISA cards\n" );  }  else  {    ShowCards( res );  }  // Reset all cards  SetPnPReg( PNPISA_REG_CONFIG_CONTROL,             PNPISA_CCF_RESET        |             PNPISA_CCF_WAIT_FOR_KEY |             PNPISA_CCF_RESET_CSN,             res );  return cards != 0;}