Cconws
Cconws()
Write String to Screen
Opcode = 9 ($09)
A llow s y ou to p rin t a n en tire strin g o f c h ara cters to th e co n so le d ev ice
scree n at on ce.
C macro format
in t len g th ;
ch a r ^string ;
len g th = C c o n w s(strin g );
Machine language format
m ov e.l strin g , - (s p )
m o v e .w # 9 , - ( s p )
trap # 1
ad d q .l # 6 ,s p
Inputs
string
Results
DO len g th
See also
C c o n o u t( )
lo n g
A po in te r to a n u ll-term in ated strin g of
te xt ch ara cte rs to be p rin te d . C o n tro l
ch a rac te r an d esca p e se q u en ce s are in ter
p re ted as u su al.
w o rd T h e n u m b er of ch a ra cte rs th at w e re p rin ted .
248