Professional Documents
Culture Documents
• Deals with functional behavior of CPU and it’s the only language that is capable
computer systems of understanding.
• Design Implementation for the
various parts of computer
Low Level Language
Computer Organization
• Deals with structural relationship
It is a programming language that provides no
• Operational attributes are linked
abstraction from the hardware, and it is
together and contribute to realize the represented in 0 or 1 forms, which are the
machine instructions.
architectural specification.
Low level is closer to the machine for it to
understand. It is easier for the machine to
Hierarchy of Application Programs translate 0’s and 1’s.
Machine-level language
Hardware
Machine language, or machine code, is a low-
level language comprised of binary digits (ones
and zeros). As we know that computers can
understand only machine instructions, which are
Other way to look at it: in binary digits, i.e., 0 and 1, so the instructions
given to the computer can be only in binary codes
C,C++,Pascal
Machine Language
A machine-level language is not portable as
each computer has its machine instructions, so if
Hardware we write a program in one computer will no
longer be valid in another computer.
Assembly Language
The assembly language contains some human-
readable commands such as mov, add, sub, etc.
The assembly language code is not portable
because the data is stored in computer registers,
and the computer has to know the different sets of
registers.
Why Learn Assembly Language?
Assembly language has some abstraction from
the hardware while machine language has zero Accessibility to system hardware
abstraction. - Assembly Language is useful for
Compilers translate high-level programs to implementing system software
machine code either directly or indirectly via an - Also useful for small embedded
assembler. system applications
Data Presentation
Binary Numbers
- Digits are 1 and 0 where 1 = true and 0 =
false
- MSB – Most significant bit Hexadecimal Integers
- LSB – least significant bit Binary values are represented in hexadecimal/
Bit numbering:
Converting Hexadecimal to Decimal Hexadecimal Addition
Multiply each digit by its corresponding power of Divide the sum of two digits by the number of
16 bases 16.
The quotient becomes the carry value
The remainder is the sum digit
d= hexadecimal digit
Binary Subtraction
Signed bit
Hexadecimal Subtraction
Carry and Overflow Control Characters
Examples:
Printable Hexadecimal
Character Storage