Next Previous Contents

3.38 cbm_k_chkin

Function

Designate a Logical File As the Current Input Channel

Header

cbm.h

Declaration

unsigned char __fastcall__ cbm_k_chkin (unsigned char FN);

Description

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.

Limits

  • The function is only available as fastcall function, so it may only be used in presence of a prototype.

Availability

cc65

See also

cbm_k_open, cbm_k_basin, cbm_k_getin

Example

None.


Next Previous Contents