Cesil
Encyclopedia
Cesil, or Computer Education in Schools Instruction Language, was a programming language
Programming language
A programming language is an artificial language designed to communicate instructions to a machine, particularly a computer. Programming languages can be used to create programs that control the behavior of a machine and/or to express algorithms precisely....

 designed to introduce pupils in British schools to Assembler
Assembly language
An assembly language is a low-level programming language for computers, microprocessors, microcontrollers, and other programmable devices. It implements a symbolic representation of the machine codes and other constants needed to program a given CPU architecture...

. It is rather difficult to define it as high or low level. It has a total of fourteen instructions:
  • Load value - place the immediate value or the contents of the variable
    Variable (programming)
    In computer programming, a variable is a symbolic name given to some known or unknown quantity or information, for the purpose of allowing the name to be used independently of the information it represents...

     named in the accumulator
    Accumulator (computing)
    In a computer's central processing unit , an accumulator is a register in which intermediate arithmetic and logic results are stored. Without a register like an accumulator, it would be necessary to write the result of each calculation to main memory, perhaps only to be read right back again for...

    .
  • Store variable - place the contents of the accumulator in the variable.
  • Jump label - transfer control to location labelled.
  • Jineg label - transfer control to location labelled if the accumulator contains a negative value.
  • Jizero label - transfer control to location labelled if the accumulator contains zero.
  • Print literal - output the following string, delimited by single quotes.
  • Line - output a carriage return
    Carriage return
    Carriage return, often shortened to return, refers to a control character or mechanism used to start a new line of text.Originally, the term "carriage return" referred to a mechanism or lever on a typewriter...

  • In - allow user to input a numerical value from the console.
  • Out - Output the contents of the accumulator as a decimal integer, signed if negative.
  • Add value - add the variable or immediate integer value to the accumulator.
  • Subtract value - subtract the variable or immediate integer from the accumulator.
  • Multiply value - place the product of the accumulator and the variable or immediate integer in the accumulator.
  • Divide value - place the contents of the accumulator divided by the value in the accumulator.
  • Halt - return control to console.
The source of this article is wikipedia, the free encyclopedia.  The text of this article is licensed under the GFDL.
 
x
OK