SS>How do I get PowerBasic to set Register AL, AH and BL?
SS>The help only says something about AX,BX,CX etc...
'
'ษอออออออออออออออออออออออออออออออออออออออออออออออออออออออออออออออออออออออป
'บ SUB :kbd.speed 10-19-1992 บ
'ฬอออออออออออออออออออออออออออออออออออออออออออออออออออออออออออออออออออออออน
'บ ACTION: Change the speed of the keyboard rate and delay. บ
'บ บ
'บ TO PASS: บ
'บ mrate% ===> rate per second: 1 to 32 บ
'บ mdelay% ===> delay between keys: 0 fast บ
'บ บ
'บ RETURN: Nothing บ
'บ บ
'ศอออออออออออออออออออออออออออออออออออออออออออออออออออออออออออออออออออออออผ
sub kbd.speed(mrate%, mdelay%)
reg 1, &h0305
reg 2, (mdelay% * 256) + mrate%
call interrupt &h16
end sub
Yo can use two sistems:
reg 1, &h0305
to put 03h in AH and 05h in AL or
reg 2, (mdelay% * 256) + mrate%
multiply the number by 256 to put this value in AH, BH, CH, etc and
the add AL, BL, etc...
Deu. Bye.
Esteve Valenti
* Wave Rider 1.20 [NR] *
... UNREGISTERED EVALUATION COPY
--- Wave Rider v1.20
(757:101/24)
---------------
* Origin: Clot BBS 34-3-2324070 (A 14K4) / 34-3-2654579 (A 28K8)
|