Bconout
Write a Character
Bconout() Opcode = 3
T his fu nctio n s en d s a sin gle ch a ra cte r to on e o f th e o u tp u t d ev ices. It
d o es n 't retu rn u n til th e c h a rac te r is a c tu ally se n t. T o av oid sen d in g a ch a r
a cter to a d ev ice th at is n 't re ad y to rece iv e it, a n d th u s " h a n g in g " y o u r
p ro g ra m , y o u ca n first tes t th e sta tu s o f th e o u tp u t d ev ice w ith th e B cos-
t a t ( ) fu n ctio n.
C macro format
in t d ev n u m , ch a r;
B co 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 , - (sp )
m o v e.w # 3 , - (sp )
trap # 1 3
a d d q .l # 6 ,s p
Inputs
d ev n u m w o rd T h e d ev ice n u m b er of th e o u tp u t d ev ice
to w h ich th e c h ara cter is se n t:
0 = P R N : (P rin te r po rt)
1 = A U X : (R S -232 p ort)
2 = C O N : (C o n so le scree n )
3 = M ID I: (M ID I o u tp u t)
4 = IK D B: (in tellig en t k ey bo ard co n
troller)
Results
N o ne
See also
B c o s ta t(), B c o n in (), B c o n s ta t()
178