Designate a Logical File As the Current Input Channel
unsigned char __fastcall__ cbm_k_chkin (unsigned char FN);
If you wish to get data from any device other than the keyboard, this function must be called after OPENing the device, before you can get a data byte with the cbm_k_basin or cbm_k_getin routine. When called, the routine will designate the logical file whose file number was supplied as the current file, its device as the current device, and its secondary address as the current secondary address. If the device on the channel is a serial device, which requires a TALK command and sometimes a secondary address, function will send them over the serial bus.
- The function is only available as fastcall function, so it may only be used in presence of a prototype.
- See also
cbm_k_open, cbm_k_basin, cbm_k_getin