COMMODORE
COMAL
Structured programming
language
COMAL (COMmon Algorithmic Language) is a
computer language that combines the ease of
BASIC with the structure of PASCAL. Because
COMAL is easy to learn and powerful to use, it is
an ideal first computer language.
The major drawback with teaching or
learning BASIC as a first language is the
lack of program structure. Long
programs can become difficult to read.
For this reason, COMAL was developed.
fu m e c h s c fe»«« C » w y f>
for 9 «§©
bitoaFSFto&me s " d e c Z t & ix
d«c i «a l no i -fe i n a r« t-©4#c
;.*# ^ i o a r u t o d e t O l.-their
i # toi"f=§ th en ■
0.$S &
i f c el*
. e w d iif
e n d * # ■
en d for - b i t -
retu r n now tc oao t .««*«* .z
end #***»©: check**© w#
SAMPLE LISTING
COMAL provides the user with a wide
range of structured programming
commands. These include:
□ PRO C-to label a procedure within a
program
□ EXEC - to execute a named
procedure
□ REPEAT... UNTIL - to repeat a
section of code until a pre-defined
condition is met
□ WHILE ... DO ... END WHILE
and many more.
COMAL also provides multiple
condition-testing commands such as:
□ IF ... THEN... ENDIF
□ CASE...OF...WHE N...
OTHERWISE
to name but two.
The range of commands provided by
COMAL, and their simplicity of
operation, makes it an ideal first
language for the newcomer to
computing. Even the experienced
programmer will quickly discover how
easy it now is to write powerful,
structured programs.
COMAL available in August.
Together with the commands above,
COMAL also has a wide variety of
programming aids such as:
□ AUTO - for automatic program line
numbering
□ RENUM - to renumber program lines
□ DEL - to delete a range of
program lines
□ a command to LOAD a program from
diskette or cassette and RUN it
automatically
□ commands for integer division
and much, much more.
Product No. CML 6410
Specifications of software and hardware are correct
at time of going to press, but are subject to
alteration at any time.
commodore
COMPUTER
Commodore Information Centre, 675 Ajax Avenue, Slough, Berkshire SL14BG. Telephone: Slough (0753) 79292