INSTRUCTION SET
INSTRUCTION SET 1
MOV A,B :- It is a very
common instruction to transfer data from accumulator(A) to register B .
MVIM A2H :- It
immediately move the data A2H in respected memory location .
LDAX B :- It is used to
load data to A from memory location whose address is stored in register B and C
.
STAX B :- This
instruction store data a to memory location whose address is contain in
register B and C .
LXIH 4000 :- This
instruction load register H with 40 and register L with 00 .
XCHG :- It exchanges the
data stored in pairs i,e, HL<=>DE .
XTHL :- This instruction
is used to exchange data in register H with location (SP-1) and data in
register L with location (SP) .
INR , DCR :- Increment
or decrement of data stored in a register or accumulator by 1 .
INX , DCX :- This
instruction increase or decrease the data stored in register respected pair by
1 .
RAL :- This instruction
is used to rotate the content of carry and accumulator towards left . Carry
occupies the LSB position of acc and MSB of acc goes towards left and occupies
carry .
RAR :- To shift the
content of carry and acc by one bit position towards right so that the LSB
enters into CY and the content of CY enters into MSB of acc .
RLC :- It is used to
store MSB of acc at CY and at LSB of acc while other bitsof acc shifted towards
left .
RRC :- Due to this
instruction LSB of acc stores at both CY and MSB of acc .
STC :- This instruction
set the content of carry to 1 .
CMC :- This instruction
complement the content of the carry .
CMA :- This instruction
is used to complement the content of acc .
CMPM :- This instruction
compare the content of memory with the content of acc .
DAA :- DAA means decimal
adjust in addition . This instruction convert the content of acc inti decimal
number after the binary addition of two numbers .
ADD B :- It is used for
addition of the content of register B with the content of acc and the result is
stored in acc .
ADC B :- It add the
content of acc with carry and register B and after addition the result is
stored in acc .
ADI :- For direct
addition of data with the content of acc this instruction is used .
DAD B :- For 16 bit
addition this instruction is used . The said instruction will add the content
of BC pair with the content of HL pair and the result is stored in HL register pair
.
SUB C :- It subtracts the content of register C from acc and the result is stored in acc .
SUI 30H :- This instruction is used for direct subtraction of 30H from the content of acc and the result is stored in acc .
SBI 30H :- This instruction subtracts the data 30H along with the content of CY from the acc .
No comments:
Post a Comment