Atari ST series Technical Reference Manual page 186

Hide thumbs Also See for ST series:
Table of Contents

Advertisement

Bconout()
T h is f u n c t i o n s e n d s a s in g le c h a r a c t e r t o o n e o f t h e o u t p u t d e v i c e s . I t
d o e s n 't r e t u r n u n til t h e c h a r a c t e r is a c t u a l l y s e n t . T o a v o i d s e n d i n g a c h a r ­
a c t e r to a d e v i c e t h a t i s n 't r e a d y t o r e c e i v e i t , a n d t h u s " h a n g i n g " y o u r
p r o g r a m , y o u c a n f ir s t t e s t t h e s t a t u s o f t h e o u t p u t d e v i c e w i th t h e B c o s -
t a t ( ) f u n c t i o n .
C macro format
in t d e v n u m , c h a r ;
B c o n o u t ( d e v n u m ,c h a r ) ;
Machine language format
m o v e . w
# c h a r , - ( s p )
m o v e . w
# d e v n u m , - ( s p )
m o v e . w
# 3 , - (s p )
tr a p
# 1 3
a d d q .l
# 6 , s p
Inputs
d e v n u m
w o r d
Results
N o n e
See also
B c o s t a t ( ) , B c o n i n ( ) , B c o n s t a t ( )
178
Bconout
Write a Character
T h e d e v i c e n u m b e r o f th e o u t p u t d e v i c e
t o w h i c h t h e c h a r a c t e r is s e n t :
0 =
P R N : ( P r i n t e r p o r t )
1 =
A U X : ( R S - 2 3 2 p o r t )
2 =
C O N : ( C o n s o l e s c r e e n )
3 =
M I D I: (M ID I o u t p u t )
4 =
I K D B : ( i n te l lig e n t k e y b o a r d c o n ­
tr o ll e r )
Opcode = 3

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents