Start Discovering Solved Questions and Your Course Assignments
TextBooks Included
Active Tutors
Asked Questions
Answered Questions
case 2 agtbsuppose xx 05h stored in a and yy 02h stored in b then carry flag will reset by cmp instruction since agt b
case 1 bgta suppose xx 01h stored in a and yy 03h stored in bthen carry flag will set by cmp instruction since bgta in this
program description in the above program any two numbers can be stored in register a and b by replacing xx and yycontents of
program analysis we have to find the greater of two given number we can store the given numbers in two different registers
for parity flag jpe jump on parity even and jpo jump or parity odd instruction jpe transfer the execution of the
for sign flag jp jump on plus jump on minus instructions jp transfer the execution of the program to the specified
for zero flag jz jump on zero and jnz jump on no zero instruction jz transfer the execution of the program to the
for carry flag jc jump on carry and jnc jump on no carry instructions jc transfer the execution of the program to the
conditional jumps the most important part of programming is its decision making capability which is normally provided by
unconditional jump jmp unconditional jump instruction this instruction is used to transfer the execution to the specified
jump instruction there are two types of jump instruction unconditional jump conditional
branch operations normally the program executes in a sequence the contents of the program counter register are incremented by one
rrc rotate accumulator right instruction this instruction also rotates the contents of the accumulator toward right by one
rar rotate accumulator right through carry instruction this instruction rotates the contents of the accumulator towards right by
rlc rotate accumulator left instruction this instruction also rotates the contents of the accumulator towards left by one bit the d0
ral rotate accumulator left through carry instruction this instruction rotates the content of the accumulator towards left by one bit the
cpi compare immediate instruction the 8 bit data specified in the instruction is compared with the contents of the
compare with memory the contents of the memory of the memory location pointed by hl register pair are compared with the
compare with register the contents of the register are compared with the contents of the accumulator here register may
cmp compare instruction this instruction is used to compare the contents of register or memory with accumulator the contents of the
cma complement accumulator instructioncomplement the contents of the accumulator i e the accumulator al once are converted
masking as we know the masj is used to cover some part of our face which we want to hide and to show other part
ani and immediate with accumulator instruction 8 bit data specified in the instruction is logically and with the contents
logically and the contents of memorycontents of memory location whose address is specified by hl register pair are logically and with the
logically and the contents of register contents of register are logically and with the accumulator bit wise the result of the and