Kbrate
Kbrate()
Set Keyboard Repeat Rate
Opcode = 35
T he K b r a te () fu n ctio n is u se d to co n tro l th e rep ea t rate o f th e co n so le d e
vice key b oa rd .
C macro format
in t o ld va ls, d elay , rate ;
oldv als = K b ra te(d ela y , rate );
Machine language format
ra te , - (sp )
m o v e .w
m o v e .w
m o v e .w
trap
ad d q .l
Inputs
ra te
d e lay , - (sp )
# 3 5 , - ( s p )
# 1 4
# 6 ,s p
w o rd
d elay
Results
DO old vals
T h e am o u n t o f tim e th a t e la p ses b etw e en
ea ch rep etition of a key . T h is tim e is
m ea su re d in sy ste m clo ck ticks (1 /50 o f a
se co n d ). A v alu e of 0 -2 5 5 is u se d . Z ero
re p re sen ts th e m a xim u m d elay o f 2 56
tick s.
w o rd T he a m o u n t o f tim e y o u m u st initially
h old d o w n a k ey be fo re it starts to re
p ea t.
w o rd T h e p re v io u s rate an d d elay v alu es are p ack ed in to
a sing le 16 -b it w o rd .
Bits 0 - 7 co n tain th e rate v alu e
Bits 8 - 1 5 th e d elay v a lue
230