Professional Documents
Culture Documents
A. Data Movement
microprocessor fetches those instructions from the memory, then decodes it and
executes those instructions till STOP instruction is reached. Later, it sends the
result in binary to the output port. Between these processes, the register stores
Data movement instructions move data from one place, called the source
operand, to another place, called the destination operand. The following are
instructions that store and retrieve data from the LIFO (Last In First
Out) stack memory. The general forms of PUSH and POP instructions
Example:
memory in DS at
Example:
SP by 2.
SP by 2.
with
EA = TABLE + [BX].
LEA, LDS, and LES (load-effective address)
The LEA instruction is used to load a specified register with a 16- bit
Example:
[ES]<--[mem+2]
shown below:
LAHF and SAHF: The LAHF and SAHF instructions are seldom used
LAHF instruction copies the value of SF, ZF, AF, PF, CF, into
the AH register into the SF, ZF, AF, PF, and CF respectively. This
the direct I/O instructions and variable I/O instructions. Either of these
shown below:
DS: SI
ES: DI
not saved.
a) CSASB/ CSASB W: This instruction is similar to compare string; it
DS:SI.
REP: In most applications, the basis string operations must be repeated. Inserting a
and businesses.
a) Fetch
The first step the CPU carries out is to fetch some data and
called 'registers'.
This is where the Address and the Data buses are used.
b) Decode
The next step is for the CPU to make sense of the instruction
c) Execute
Microprocessor, as a main control unit inside the CPU, can direct the
and converts it into control signals, which are then given to the CPU for
and control signals and directs the execution of a program by the CPU.
signals for the execution in the CPU. It controls and directs the main
memory, arithmetic & logic unit (ALU), input and output devices, and
also responsible for the instructions that are sent to the CPU of a
contains register contents. The control unit converts the input into
control signals and then sent to the processor and directs the
above.
signals within the CPU, control signals to/from the bus, control
decoder.
other devices.
the processor.
store results.
let the computer to store information comprise from data to be used for
erased when power is switched off. All data and instructions are
stored in RAM.
drive, ...).
per computer.
the manufacturer.
mask.
needed.
control gates). This type is convenient when the user is not sure of
as the EAROM.
REFERENCES:
http://mptuter.blogspot.com/2013/07/data-movement-instructions.html
https://www.d.umn.edu/~gshute/mips/data-movement.xhtml#:~:text=Data%20movement
%20instructions%20move%20data,data%20from%20memory%20to%20registers.
https://www.tutorialspoint.com/microprocessor/
microprocessor_quick_guide.htm#:~:text=The%20microprocessor%20follows%20a
%20sequence,till%20STOP%20instruction%20is%20reached.
https://slideplayer.com/slide/12329604/
https://www.britannica.com/technology/data-processing
https://peda.net/kenya/ass/subjects2/computer-studies/form-3/data-processing
https://www.brainspire.com/blog/what-is-a-microprocessor-and-how-does-it-
work#:~:text=A%20microprocessor%20accepts%20binary%20data,instructions
%20stored%20in%20the%20memory.&text=The%20register%20array%20processes
%20the,temporary%20fast%20access%20memory%20locations.
https://www.elprocus.com/what-is-control-unit-components-its-design/#:~:text=The
%20main%20function%20of%20the,the%20memory%20of%20a%20computer.&text=It
%20is%20responsible%20for%20providing,a%20program%20by%20the%20CPU.
chrome-extension://oemmndcbldboiebfnladdacbdfmadadm/http://
www.science.smith.edu/~jcardell/Courses/EGR328/Readings/uProc%20Ovw.pdf
https://erg.abdn.ac.uk/users/gorry/eg2068/course/mem.html
https://www.tutorialspoint.com/basics_of_computers/
basics_of_computers_microprocessor_concepts.htm