home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Education
/
collectionofeducationcarat1997.iso
/
COMPUSCI
/
WHATBOXV.ZIP
/
12
< prev
next >
Wrap
Text File
|
1992-06-21
|
1KB
|
58 lines
mode4
O10
R2 0 638 333
O11
R6 3 634 330
O10
R10 6 630 327
O11
text/30 35 1 0 0
Bytes can also be used to
represent instructions. You could
invent a code in which each of the
256 possible combinations of bits
is a different instruction to the
computer. For instance, if 34 means
put a red dot in the middle of the
screen, and if 176 means move that
dot to the left... You get the idea,
that's programming. Of course there
are more than 256 things you could
have the computer do. Combinations
of many bytes, each representing a
simple instruction, can be used to
build a complex instruction.
Programmers don't actually have
to remember the numbers assigned to
bytes. Their programming languages
~
text/350 35
themselves assign English-like
words to the instructions
contained in the bytes. Here
is a sample from a programmer's
file. This example is actually
running right now. It's a
part of What's In That Box:
~
O10
text/350 154 1 0 0
begin
cleardevice;
assign(outfile,'goto');
readfile;
u := readkey;
menu;
end; {procedure goto}
~
O12
text/339 262 1 0 0
(This pops up the goto screen.)
~
O14
R354 149 575 247
mode4
mode4
O10
L327 21 327 268