-
-
Notifications
You must be signed in to change notification settings - Fork 85
/
cesil.scroll
57 lines (48 loc) · 2.17 KB
/
cesil.scroll
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
import ../code/conceptPage.scroll
id cesil
name Cesil
appeared 1974
tags pl
centralPackageRepositoryCount 0
country United Kingdom
originCommunity International Computers Limited
leachim6 CESIL
filepath c/CESIL.cesil
fileExtensions cesil
example
PRINT "Hello World"
HALT
%
*
printToken PRINT
stringToken "
hasPrintDebugging true
hasStrings true
"Hello world"
wikipedia https://en.wikipedia.org/wiki/Cesil
example
LOAD 0
LOOP STORE TOTAL
IN
JINEG DONE
ADD TOTAL
JUMP LOOP
DONE PRINT "The total is: "
LOAD TOTAL
OUT
LINE
HALT
%
1
2
3
-1
[Output of above program running...]
The total is: 6
related assembly-language
summary Cesil, or Computer Education in Schools Instruction Language, was a programming language designed to introduce pupils in British schools to Assembly language. It is a low level language containing a total of fourteen instructions: Load value - place the immediate value or the contents of the variable named in the accumulator. 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 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.
created 2016
backlinksCount 3
pageId 2834686
revisionCount 1
dailyPageViews 3