Lines Matching +full:dc +full:- +full:valid

1 .\"	$OpenBSD: dc,v 1.2 2003/09/22 19:08:27 otto Exp $
3 .\" Copyright (C) Caldera International Inc. 2001-2002.
35 .EH 'USD:5-%''DC \- An Interactive Desk Calculator'
36 .OH 'DC \- An Interactive Desk Calculator''USD:5-%'
38 .\" ....TM 75-1271-8 39199 39199-11
41 DC \- An Interactive Desk Calculator
42 .AU "MH 2C-524" 3878
52 time-sharing system to do arbitrary-precision
54 It has provision for manipulating scaled fixed-point numbers and
69 Editor's note: the description of the implementation details of DC in this
70 paper is only valid for the original version of DC.
71 The current version of DC uses a different approach.
77 time-sharing system
80 Ordinarily DC operates on decimal integers, but one may
85 programs written in the familiar style of higher-level
87 interpreted by DC.
92 Numbers that are typed into DC are put on a push-down
103 Here we describe the DC commands that are intended
109 Blanks and new-line characters are ignored except within numbers
117 A number is an unbroken string of the digits 0-9
118 and the capital letters A\-F which are treated as digits
119 with values 10\-15 respectively.
124 + \- * % ^
130 (\fB\-\fP),
157 Any character, even blank or new-line, is a valid register name.
204 executes it as a string of DC commands.
247 Control returns to DC when the
299 The string is stored with the low-order digit at the
304 that all digits are in the range 0\-99 and that
311 The high order digit of a negative number is always \-1
312 and all other digits are in the range 0\-99.
313 The digit preceding the high order \-1 digit is never a 99.
314 The representation of \-157 is 43,98,\-1.
321 Because the largest valid digit is 99 and the byte can
344 Associated with each string in the allocator is a four-word header containing pointers
347 Communication between the allocator and DC
361 Left-over strings are put on the free list.
375 on the size and number of strings in DC.
380 forward-spacing, and backspacing strings.
388 information-containing portion of a string and a call
389 to read beyond that point returns an end-of-string indication.
438 replacing the high-order configuration 99,\-1 by the digit \-1.
439 In any case, digits which are not in the range 0\-99 must
483 The result is used as the first (high-order) digit of the
534 correspond to the positions of the one-bits in the binary
547 The hexadecimal digits A\-F correspond to the numbers 10\-15 regardless of input base.
579 Bases of 8 and 16 can be used for decimal-octal or decimal-hexadecimal
609 Internal Registers \- Programming DC
615 The \fBx\fP command assumes the top of the stack is an string of DC commands
619 For example, to print the numbers 0-9,
625 Push-Down Registers and Arrays
629 They involve push-down registers and arrays.
630 In addition to the stack that commands work on, DC can be thought
637 The commands \fBs\fP and \fBl\fP also work on registers but not as push-down
682 The reason for a stack-type arithmetic design was
683 to permit all DC commands from addition to subroutine execution
743 BC \- An Arbitrary Precision Desk-Calculator Language.
750 Comm. ACM \fB8\fP, pp. 623-625 (Oct. 1965).