Why
an Assembly Language is needed?
Programming in machine code, by supplying the
computer with the numbers of the operations it must perform, can be quite a
burden, because for every operation the corresponding number must be looked up
or remembered. Looking up all numbers takes a lot of time, and mis-remembering
a number may introduce computer bugs.
So Assembly Languages are evolved which contains
mnemonic instructions corresponding to the Machine codes using which the
program can be written easily.
Therefore a set of mnemonics was devised. Each
number was represented by an alphabetic code. So instead of entering the number
corresponding to addition to add two numbers one can enter "add".
Although mnemonics differ between different CPU designs
some are common, for instance: "sub" (subtract), "div"
(divide), "add" (add) and "mul" (multiply).
0 comments:
Post a Comment