Gaurav Wande1
Gaurav Wande1
⚫ procedures.
⚫ functions.
⚫ Allows the subroutine to be called in more than one place within the program.
The main disadvantages of using the Assembler subroutines are that they require the programmer
to call the Assembler subroutines using user-exits, and they only provide the primary arithmetic
operations: add, subtract, multiply, divide, compare and precision.
are extensions to the x86 instruction set architecture for microprocessors from Intel and AMD. The
purpose of these instruction sets is to improve the speed of bit manipulation. All the instructions in
these sets are non- SIMD and operate only on general-purpose registers.
ADVANTAGES OF BIT MANIPULATION INSTRUCTIONS:-
⚫ A big advantage of bit manipulation is that it can help to iterate over all the subsets of an N-
element set. As we all know there are 2 N possible subsets of any given set with N elements. What
if we represent each element in a subset with a bit.
⚫ Memory efficiency: Bit manipulation enables memory efficiency by allowing several values to be
stored in a single byte or word.
⚫ Reduced code readability: Bit manipulation can sometimes make code more readable, but it can
also make it more challenging to read and comprehend, especially for developers who are
unfamiliar with the use of bitwise operators.
⚫ OR AL, BL
Low-level programming languages such as assembly language are a necessary bridge between the
underlying hardware of a computer and the higher-level programming languages—such as Python or
JavaScript—in which modern software programs are written.
-An assembly language is a type of programming language that translates high-level languages into
machine language.
-It is a necessary bridge between software programs and their underlying hardware platforms.
-Assembly language relies on language syntax, labels, operators, and directives to convert code into
usable machine instruction.
-Assembly language may pass through single-pass or multi-pass assemblers, each with specific uses
and benefits.
-Today, assemble languages are rarely written directly, although they are still used in some niche
applications such as when performance requirements are particularly high.