Arithmetic Commands
10-43
byte 4E
16
to address 08
16
byte FA
16
to address 09
16
byte FF
16
to address 0A
16
byte FE
16
to address 0B
16
S5030001FB
indicates that only one S1-record, S2-record, or S3-record was sent.
S9030008F4
indicates that the start address is 00000008
16
.
10.10 Arithmetic Commands
The commands in this group allow for basic arithmetic functions to be performed
at the command line.
10.10.1 add
add
number1 number2
adds two integers in hexadecimal, binary, octal, or decimal
(default).
The default numeric base is decimal. Specify hexadecimal by typing “:16” at the
end of the value, octal by typing “:8” or binary by typing “:2.” The result of the
operation is displayed in hex, decimal, octal, and binary.
DEFINITION
int Add(unsigned long Arg1,
unsigned long Arg2)
10.10.2 div
div
number1 number2
divides two integers in hexadecimal, binary, octal, or deci-
mal (default).
number1
is divided by
number2
. The command also checks the oper-
ation to avoid dividing by zero.
The default numeric base is decimal. Specify hex by typing “:16” at the end of the
value, octal by typing “:8” or binary by typing “:2.” The result of the operation is
displayed in hex, decimal, octal, and binary.
DEFINITION
int Div(unsigned long Arg1,
unsigned long Arg2)
Содержание BajaPPC-750
Страница 2: ...BajaPPC 750 PowerPC Based Single Board Computer User s Manual May 2002...
Страница 4: ...BajaPPC 750 PowerPC Based Single Board Computer User s Manual May 2002...
Страница 7: ......
Страница 16: ...0002M621 15 ix Register Map 9 1 Counter Timer Status CTSR 9 2 Register Map 9 2 Counter Timer Mode CTMR 9 4...
Страница 19: ...xii BajaPPC 750 Contents...
Страница 57: ...3 12 BajaPPC 750 Central Processing Unit May 2002...
Страница 77: ...5 12 BajaPPC 750 PMC PCI Interface May 2002...
Страница 111: ...6 34 BajaPPC 750 VMEbus Interface May 2002...
Страница 135: ...8 18 BajaPPC 750 Serial and Parallel I O May 2002...
Страница 207: ...10 68 BajaPPC 750 Monitor May 2002...