Intel XENIX 286 Programmers Guide (86) - Tenox.tc
Intel XENIX 286 Programmers Guide (86) - Tenox.tc Intel XENIX 286 Programmers Guide (86) - Tenox.tc
XENIX Programming adb: Program Debugger Note that the unary * operator treats the given address as a pointer. An expression using this operator resolves to the value pointed to by that pointer. For example, the expression *Ox1234 is equal to the value at the address Ox1234, whereas Ox1 234 is just equal to Ox1234. Choosing Data Formats A format is a letter or character that defines how data is to be displayed. The following are the most commonly used formats: Letter Format o 1 word in octal d 1 word in decimal D 2 words in decimal x 1 word in hexadecimal X 2 words in hexadecimal u 1 word as an unsigned integer f 2 words in floating point F 4 words in floating point c 1 byte as a character s a null terminated character string i machine instruction b 1 byte in octal a the current symbolic address A the current absolute address n a newline r a blank space t a horizontal tab A format may be used by itself or combined with other formats to present a combination of data in different forms. The d, o, x, and u formats may be used to display int type variables and D and X to display long variables or 32-bit values. The f and F formats may be used to display single- and double-precision floating-point numbers. The c format displays char type variables and s is for arrays of char that end with a null character (null terminated strings). 6-9
adb: Program Debugger XENIX Programming The i format displays machine instructions in 8086/286 mnemonics. The b format displays individual bytes and is useful for display data associated with instructions or the high or low bytes of registers. The a, r, and n formats are usually combined with other formats to make the display more readable. For example, the format ia causes the current address to be displayed after each instruction. You may precede each format with a count of the number of times you wish it to be repeated. For example, the format 4c displays four ASCII characters. You can combine format requests to provide elaborate displays. For example, the command
- Page 55 and 56: make: Program Maintainer XENIX Prog
- Page 57 and 58: make: Program Maintainer XENIX Prog
- Page 59 and 60: make: Program Maintainer XENIX Prog
- Page 61 and 62: make: Program Maintainer XENIX Prog
- Page 63 and 64: make: Program Maintainer XENIX Prog
- Page 65 and 66: make: Program Maintainer print: $(F
- Page 67 and 68: SCCS: Source Code Control System XE
- Page 69 and 70: SCCS: Source Code Control System XE
- Page 71 and 72: SCCS: Source Code Control System XE
- Page 73 and 74: SCCS: Source Code Control System XE
- Page 75 and 76: SCCS: Source Code Control System XE
- Page 77 and 78: SCCS: Source Code Control System XE
- Page 79 and 80: SCCS: Source Code Control System XE
- Page 81 and 82: SCCS: Source Code Control System XE
- Page 83 and 84: SCCS: Source Code Control System XE
- Page 85 and 86: SCCS: Source Code Control System XE
- Page 87 and 88: SCCS: Source Code Control System XE
- Page 89 and 90: SCCS: Source Code Control System XE
- Page 91 and 92: SCCS: Source Code Control System XE
- Page 93 and 94: SCCS: Source Code Control System XE
- Page 95 and 96: SCCS: Source Code Control System XE
- Page 98 and 99: CHAPTER 6 adb: PROGRAM DEBUGGER adb
- Page 100 and 101: XENIX Programming adb: Program Debu
- Page 102 and 103: XENIX Programming adb: Program Debu
- Page 104 and 105: XENIX Programming adb: Program Debu
- Page 108 and 109: XENIX Programming adb: Program Debu
- Page 110 and 111: XENIX Programming adb: Program Debu
- Page 112 and 113: XENIX Programming adb: Program Debu
- Page 114 and 115: XENIX Programming adb: Program Debu
- Page 116 and 117: XENIX Programming int fcnt,gcnt,hcn
- Page 118 and 119: XENIX Programming adb: Program Debu
- Page 120 and 121: XENIX Programming adb: Program Debu
- Page 122 and 123: XENIX Programming adb: Program Debu
- Page 124 and 125: XENIX Programming adb: Program Debu
- Page 126 and 127: XENIX Programming adb: Program Debu
- Page 128: XENIX Programming adb: Program Debu
- Page 131 and 132: as: A sse m bier XENIX Programming
- Page 133 and 134: as: Assembler XENIX Programming The
- Page 135 and 136: as: Assembler XENIX Programming Key
- Page 137 and 138: as: Assembler The combination rules
- Page 139 and 140: as: Assembler XENIX Programming Ins
- Page 141 and 142: as: Assembler Initial Value Directi
- Page 143 and 144: as: Assembler XENIX Programming int
- Page 145 and 146: as: A sse m bier sub subb test test
- Page 147 and 148: as: Assembler XENIX Programming lnt
- Page 149 and 150: as: Assembler XENIX Programming lnt
- Page 151 and 152: as: Assembler XENIX Programming Imm
- Page 153 and 154: as: A sse m bier XENIX Programming
<strong>XENIX</strong> Programming adb: Program Debugger<br />
Note that the unary * operator treats the given address as a pointer. An expression<br />
using this operator resolves to the value pointed to by that pointer. For example, the<br />
expression<br />
*Ox1234<br />
is equal to the value at the address Ox1234, whereas<br />
Ox1 234<br />
is just equal to Ox1234.<br />
Choosing Data Formats<br />
A format is a letter or character that defines how data is to be displayed. The following<br />
are the most commonly used formats:<br />
Letter Format<br />
o 1 word in octal<br />
d 1 word in decimal<br />
D 2 words in decimal<br />
x 1 word in hexadecimal<br />
X 2 words in hexadecimal<br />
u 1 word as an unsigned integer<br />
f 2 words in floating point<br />
F 4 words in floating point<br />
c 1 byte as a character<br />
s a null terminated character string<br />
i machine instruction<br />
b 1 byte in octal<br />
a the current symbolic address<br />
A the current absolute address<br />
n a newline<br />
r a blank space<br />
t a horizontal tab<br />
A format may be used by itself or combined with other formats to present a<br />
combination of data in different forms.<br />
The d, o, x, and u formats may be used to display int type variables and D and X to<br />
display long variables or 32-bit values. The f and F formats may be used to display<br />
single- and double-precision floating-point numbers. The c format displays char type<br />
variables and s is for arrays of char that end with a null character (null terminated<br />
strings).<br />
6-9