The control unit executes instructions from top to bottom. For each instruction it does the following:
FETCH is the big time hog. Getting data from instruction is
considered part of the FETCH and is especially slow. Storing data is also
slow. A/L operations are quick.
The getting and storing of data is referred to as the "Von Neumann
Bottleneck".
Basic Format Of ML instruction
BIG Endian | Little Endian |
500 501 502 503 | 500 501 502 503 |
AB CD 12 34 | 34 12 CD AB |
68K | 80x86 |
SPARC | DEC ALPHA |
IBM/370 | DEC VAX |
RS/6000 | |
natural order? | 00000005 stored at addr x in 4 bytes is 0005 stored at addr x in 2 bytes is 05 stored at addr x in 1 byte. |
LSB of | 34 | |
MSB of | ABCD1234 is | AB |
LSW of | 1234 | |
MSW of | ABCD |
In MAS use EVEN directive before any .W or .L storage allocation (or
do .l them .w then .b . This is for people who like to shoot themselves
in foot)
In SPARC .align 2/4/8