Table of Contents        Previous topic       Next topic       

C COMPILER LIBRARY FUNCTIONS->Detailed Descriptions->putch()


#include <conio.h>
int putch(int ch);Write a character to console


ch    An integer representing the character to be written.


This function outputs the character to the console.  This function is implemention specific and will need to be created to suit your target system.  The version included in the library consists of the following code which will run on the SBC5206 and SBC5307 evaluation boards:

int putch(int n)
    // d0 and d1 register will be free
    _asm(" move.l #$13,d0");
    _asm(" move.l ({n},A6),d1");
    _asm(" trap #15");
    return n;

Return Value

The character written.