13.07.2015 Views

Turbo Basic

Turbo Basic

Turbo Basic

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

WAlT statementFunctionSyntaxRemarksExampleWAIT waits for the indicated hardware status condition.WAIT port, n [,m]port is an integer expression (in the range 0 to 65,535) specifying ahardware input port. nand m are integer expressions in the range 0to 255.WAIT halts program execution until the specified port presentsthe specified bit pattern. The byte read from the port is ExclusiveORed with m and ANDed with n. If the resulting value is zero, theprocess repeats. If nonzero. <strong>Turbo</strong> <strong>Basic</strong> proceeds with the nextstatement.If m is omitted, WAIT uses a 0 for its value.wait &H60,1PRINT "hi"END<strong>Turbo</strong> <strong>Basic</strong> Reference Directory 373

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!