'outp func'에 해당되는 글 1건

  1. 2021.08.24 Watcom C Library : outp, outpd, outpw, _outtext

 

 

Watcom C Library Reference : outp, outpd, outpw, _outtext

 

 

 

 

outp

 

Synopsis : #include <conio.h> 

              unsigned int outp( int port, int value );



Description : The outp function writes one byte, determined by value, to the 80x86 hardware port whose number is given by port.


A hardware port is used to communicate with a device. One or two bytes can be read and/or written from each port, depending upon the hardware. Consult the technical documentation for your computer to determine the port numbers for a device and the expected usage of each port for a device.

 

 

Returns : The value transmitted is returned.

 

 

See Also : inp, inpd, inpw, outpd, outpw

Example :

#include <conio.h>


void main( )

{
    /* turn off speaker */

    outp( 0x61, inp( 0x61 ) & 0xFC );

}

 

Classification : Intel
Systems : All

 

 

 

 

 

outpd

 

Synopsis : #include <conio.h> 

              unsigned long outpd( int port, unsigned long value );


Description : The outpd function writes a double-word (four bytes), determined by value, to the 80x86 hardware port whose number is given by port.


A hardware port is used to communicate with a device. One or two bytes can be read and/or written from each port, depending upon the hardware. Consult the technical documentation for your computer to determine the port numbers for a device and the expected usage of each port for a device.

 

 

Returns : The value transmitted is returned.

 

 

See Also : inp, inpd, inpw, outp, outpw

 


Example :

#include <conio.h> 

#define DEVICE 34


void main( )

{
    outpd( DEVICE, 0x12345678 );

}

 

Classification : Intel
Systems : DOS/32, Win/32, QNX/32, OS/2 2.x, NT

 

 

 

 

 

outpw

 

Synopsis : #include <conio.h> 

              unsigned int outpw( int port, unsigned int value );


Description : The outpw function writes a word (two bytes), determined by value, to the 80x86 hardware port whose number is given by port.


A hardware port is used to communicate with a device. One or two bytes can be read and/or written from each port, depending upon the hardware. Consult the technical documentation for your computer to determine the port numbers for a device and the expected usage of each port for a device.

 

 

Returns : The value transmitted is returned.

 

 

See Also : inp, inpd, inpw, outp, outpd

 


Example :

#include <conio.h> 

#define DEVICE 34


void main( )

{
    outpw( DEVICE, 0x1234 );

}

 

Classification : Intel
Systems : All

 

 

 

 

 

_outtext

 

Synopsis : #include <graph.h> 

              void _FAR _outtext( char _FAR *text );

 


Description : The _outtext function displays the character string indicated by the argument text. The string must be terminated by a null character ('\0'). When a line-feed character ('\n') is encountered in the string, the characters following will be displayed on the next row of the screen.


The text is displayed using the current text color (see the _settextcolor function), starting at the current text position (see the _settextposition function). The text position is updated to follow the end of the displayed text.


The graphics library can display text in three different ways.

1. The _outtext and _outmem functions can be used in any video mode. However, this variety of text can be displayed in only one size.
2. The _grtext function displays text as a sequence of line segments, and can be drawn in different sizes, with different orientations and alignments.
3. The _outgtext function displays text in the currently selected font. Both bit-mapped and vector fonts are supported; the size and type of text depends on the fonts that are available.

 


Returns : The _outtext function does not return a value.

 

 

See Also : _settextcolor, _settextposition, _settextwindow, _grtext, _outmem, _outgtext



Example :

#include <conio.h> 

#include <graph.h>


main( )

{
    _setvideomode( _TEXTC80 );

    _settextposition( 10, 30 );

    _outtext ( "WATCOM Graphics" );

    getch( );

 

    _setvideomode( DEFAULTMODE );

}

 

Classification : PC Graphics
Systems : DOS, QNX

 

 

 

 

 

 

 

 

This manual describes the WATCOM C library for DOS, Windows, and OS/2, It includes the Standard C Library (as defined in the ANSI C Standard).

 

WATCOM C Language Reference manual describes the ANSI C Programming language and extensions to it which are supported by WATCOM C/C++ (32bit)

 

 

 

728x90
반응형
Posted by 전화카드
,