04.03.2013 Views

Basic Micro Studio Syntax Manual

Basic Micro Studio Syntax Manual

Basic Micro Studio Syntax Manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Commands<br />

Example<br />

The following example will send and receive data from the debug window. The processor must be<br />

programmed using the debug function of <strong>Basic</strong> <strong>Micro</strong> <strong>Studio</strong>.<br />

value var long<br />

fvalue var fl oat<br />

debug [“Enter the starting integer value:”]<br />

debugin [dec value]<br />

debug [“Enter the starting real value:”]<br />

debugin [real fvalue]<br />

main<br />

value = value + 1<br />

fvalue = fvalue + 0.1<br />

;output to Debug window using the DEC,HEX,BIN and REAL modifi ers<br />

debug [“Dec Value=”,dec value,” “]<br />

debug [“Hex Value=”,hex value,” “]<br />

debug [“Bin Value=”,bin value,” “]<br />

debug [“Real Value=”,real fvalue,13]<br />

goto main<br />

98

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

Saved successfully!

Ooh no, something went wrong!