In secondary storage data is stored in files (e.g. information in a database, folders with your electronic mail, word processing documents you want to keep electronic copies of, etc.)
The bus is used to transfer data between the CPU, I/O devices, secondary storage devices, and memory.
JSR DECOUT
instead of 0100111010000000
)
write(x)
to print out the value of x
Fortran
DO 99, X=5,10,1 PRINT X 99 CONTINUE |
Pascal
for x := 5 to 10 do begin write(x); end; |
C
for (x=5; x<=10; x=x+1) { printf("%d", x); } |
C++
for (x=5; x<=10; x=x+1) { printf("%d", x); } |
MC68000 assembly language
MOVE.L #4,D2 LOOP: MOVE.L D2,D0 ADDI.W #6,D0 JSR DECOUT DBRA D2,LOOP |
MC68000 executable
00100000101111000000000000000100 0010000000000010 00000110010000000000000000000110 0100111010000000 01010001110010101111111111110100 |