CHAPTER 7

CALC COMMAND

The CALC command provides you with computation capabilities. These capabilities coupled with AEDIT-86 variables enable the following, for example: centering a phrase on a line, finding the size of an input file, or changing a letter from lowercase to uppercase or vice versa.

To execute the CALC command, press C; AEDIT-86 prompts-

----<HOME) to re-edit

CIS 1 c :

The last statement entered under CALC is displayed to the right of the colon.

7.1 Introduction

Either a numeric or a string statement is legal input to a CALC command. In general, the statement is either an assignment statement or merely an expression. A CALC expression is comparable to expressions in many other programming languages. It includes logical operators, relational operators, shift/rotate operators, and arithmetic operators. As usual, an expression may include parentheses. These, plus the prece- dence and associativity rules of the operators, completely define the evaluation order.

The operators act on the following elements: numeric constant (integers only), string constants, AEDIT-86 numeric local variables, N-variables, and S-variables.

Arithmetic using the CALC command is 32-bit signed arithmetic. No overflow detection is performed.

7.2 Syntax Diagrams for CALC Statement

This section presents the CALC input syntax in syntax diagram form. In these diagrams, every path you can follow in the direction of the arrow represents a syntactically correct construct of CALC input. Terminal symbols of the language, keywords, letter symbols, and punctuation symbols that are typed verbatim as CALC input are enclosed in circles or ovals. Nonterminal symbols (terms standing for language constructs that are defined in their own syntax diagrams) are enclosed in rectangles.

ILstatement:

[ t1...-_L.......nt---Jlv---r~--I,--_·X_pr,,_sion~~_.

7-1

Page 95
Image 95
Intel AEDIT-86 manual Chapter Calc Command, Syntax Diagrams for Calc Statement

AEDIT-86 specifications

The Intel AEDIT-86, also known as the Intel 8086, is a notable microprocessor that played a critical role in shaping the computing landscape. Released in 1978, it was Intel's first 16-bit microprocessor, setting the stage for the x86 architecture that continues to influence modern computing.

One of the main features of the AEDIT-86 is its 16-bit architecture, which allows it to process data in larger chunks compared to its 8-bit predecessors. This capability not only improves performance but also increases the amount of memory that can be addressed, allowing for a maximum of 1 MB of RAM. This was a significant advancement at the time, enabling more complex software and operating systems to run efficiently.

The AEDIT-86 is built on a 3-micron process technology, which was innovative for its time and contributed to its performance capabilities. The microprocessor operates at a clock speed of up to 5 MHz, which allowed it to execute more instructions per second than previous generations of processors. This speed, combined with its wide data bus (16 bits), enables the processor to handle a larger volume of information more quickly.

Intel incorporated several key technologies in the AEDIT-86, including segmentation. This feature divides the memory into different segments, making it easier for programs to access data and improving memory management. The AEDIT-86 also supports a minimum of four 64 KB segments, which enhances the organization and access of programs and data in memory.

Another significant aspect of the AEDIT-86 is its compatibility with the existing 8080 and 8085 instruction sets, which facilitated easier migration for developers and helped the processor gain traction in the market. This backward compatibility allowed existing software to be ported to the new platform with minimal modification.

Furthermore, the Intel AEDIT-86 introduced a powerful instruction set that includes both integer and string manipulation commands, paving the way for more versatile programming. The instruction set architecture (ISA) of the AEDIT-86 supports both high-level programming languages and low-level assembly language, offering flexibility for various applications.

In summary, the Intel AEDIT-86 is a groundbreaking microprocessor known for its 16-bit architecture, advanced segmentation technology, and compatibility with earlier instruction sets. Its introduction marked the beginning of the x86 architecture, which has influenced countless processors and computing systems that followed. The AEDIT-86's features and technologies were instrumental in the evolution of personal computing, laying the groundwork for future innovations in the industry.