[Prev] [Next] [Contents] [Commodore] [New] [Search] [Home]

B-34. Function Name: TALK

Purpose: Command a device on the serial bus to TALK
Call address: $FFB4 (hex) 65460 (decimal)
Communication registers: A
Preparatory routines: None
Error returns: See READST
Stack requirements: 8
Registers affected: A

Description: To use this routine the accumulator must first be loaded with a device number between 0 and 31. When called, this routine then ORs bit by bit to convert this device number to a talk address. Then this data is transmitted as a command on the serial bus.

How to Use:

  1. Load the accumulator with the device number.
  2. Call this routine.

EXAMPLE:

   ;COMMAND DEVICE #4 TO TALK
   LDA #4
   JSR TALK

B-35. Function Name: TKSA

Purpose: Send a secondary address to a device commanded to TALK
Call address: $FF96 (hex) 65430 (decimal)
Communication registers: A
Preparatory routines: TALK
Error returns: See READST
Stack requirements: 8
Registers affected: A

Description: This routine transmits a secondary address on the serial bus for a TALK device. This routine must be called with a number between 0 and 31 in the accumulator. The routine sends this number as a secondary address command over the serial bus. This routine can only be called after a call to the TALK routine. It will not work after a LISTEN.

How to Use:

  1. Use the TALK routine.
  2. Load the accumulator with the secondary address.
  3. Call this routine.

EXAMPLE:

   ;TELL DEVICE #4 TO TALK WITH COMMAND #7
   LDA #4
   JSR TALK
   LDA #7
   JSR TALKSA

[Prev] [Next] [Contents] [Commodore] [New] [Search] [Home]
This page has been created by Sami Rautiainen.
Read the small print. Last updated December 17, 2002.