09.06.2013 Views

Intel XENIX 286 Programmers Guide (86) - Tenox.tc

Intel XENIX 286 Programmers Guide (86) - Tenox.tc

Intel XENIX 286 Programmers Guide (86) - Tenox.tc

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

adb: Program Debugger <strong>XENIX</strong> Programming<br />

Using <strong>XENIX</strong> Commands<br />

You can execute <strong>XENIX</strong> commands without leaving adb by using the adb escape<br />

command !. The escape command has the form<br />

command<br />

where command is the <strong>XENIX</strong> command you wish to execute. The command must have<br />

any required arguments. adb passes this command to the system shell, which executes<br />

it. When finished, the shell returns control to adb.<br />

For example, to display the date, type<br />

! date<br />

The system displays the date at your terminal and returns control to adb.<br />

Computing Numbers and Displaying Text<br />

You can perform arithmetic calculations while in adb by using the = command. The<br />

command directs adb to display the value of an expression in a given format.<br />

The command is often used to convert numbers in one base to another, to double-check<br />

the arithmetic performed by a program, and to display complex addresses in simpler<br />

form. For example, the command<br />

Ox2a = d<br />

displays the hexadecimal number Ox2a as the decimal nu mber 42, but<br />

Ox2a = c<br />

displays it as the ASCII character "*"· Expressions in a com mand may have any<br />

combination of symbols and operators. For example, the command<br />

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

Saved successfully!

Ooh no, something went wrong!