trying to figure what this old QB3.5 code snippet was up to. Specifically the OUT p%, 11, which is obviously doing something to the chosen serial port. What is at that address and what does stuffing 11 there do. Also a good link for this kind of old hardware info free online would be greatly appreciated. Thanks and cheers.
Code:
INPUT "Port number ( 1 or 2 ) "; Port$ IF VAL(Port$) = 2 THEN p% = &H2FB ELSE p% = &H3FB OPEN "Com" + Port$ + ":9600,N,8,1,CS0,DS0" FOR RANDOM AS #9 OUT p%, 11 t! = TIMER: WHILE TIMER - t! < .2: WEND ' delay for .2 second PRINT #9, ""; ' Send set-up characters PRINT #9, "tw";
Comment