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.

DEBUG<br />

<strong>Syntax</strong><br />

debug [{modifi ers}data1,...,{modifi ers}dataN]<br />

• Data - is a variable, constant or expression of data that will display in the debug output<br />

window.<br />

• Modifi ers - supports most all output modifi ers. See the Output Modifi ers table below. For<br />

additional information regarding modifi ers see the Modifi er section of this manual.<br />

Supported<br />

• BA - Supported<br />

• BAN - Supported<br />

• BAP - Supported<br />

• BAP40 - Supported<br />

Output Modifi ers<br />

Name Description<br />

DEC Decimal<br />

SDEC Signed decimal<br />

HEX Hexadecimal<br />

SHEX Signed hexadecimal<br />

IHEX Indicated ($) hexadecimal<br />

ISHEX Signed and indicated ($) hexadecimal<br />

BIN Binary<br />

SBIN Signed binary<br />

IBIN Indicated (%) binary<br />

ISBIN Indicated (%) and signed binary<br />

REP Repeat character n times<br />

REAL Floating point number with decimal point<br />

STR Read specifi ed amount of characters from an array<br />

Commands<br />

Description<br />

The DEBUG command is a simplifi ed version of a SEROUT command. It works only to help debug<br />

a program. Once the DEBUG command is used the results will be printed to the debug window only<br />

when the target processor has been programmed using the Debug mode in <strong>Basic</strong> <strong>Micro</strong> <strong>Studio</strong>.<br />

95

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

Saved successfully!

Ooh no, something went wrong!