answersLogoWhite

0

To clear only Accumulator & not the Flag Register, you can use:

1) ANI 00 H

2) MVI A, 00 H

To clear both Accumulator as well as Flag Register, use:

LXI H, 0000 H

PUSH H

POP A.

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

When ANI F instruction is used in microprocessor?

The ANI F instruction causes the assembler to look in the symbol table for the symbol F, and to build an instruction that ANDs immediate that value with the accumulator. If you meant to say ANI 0FH, that means to clear the high 4 order bits of the accumulator and to retain the low 4 order bits.


Four Ways to clear accumulator of 8085?

The four ways to clear the accumulator in the 8085 are...XRA AMVI A,0SUB ALDA {address of a zero}Answered By:KUNAL SINHARead more: What_are_the_4_ways_to_clear_the_accumulator_in_8085_microprocessors


Is there any possible justification for an instruction with two opcodes?

An instruction only has one opcode. There may be two opcode bytes, or there may be different fields in the assembly code of the instruction, but the bit pattern of an instruction will always generate the same results. There are some results that can be generated with two different opcodes. SUB A and XRA A, for instance, both clear the accumulator, but they are two different opcodes for two different instructions.


What is xra in 8085 microprocesssors?

Exclusive OR with Accumulator. The results are then placed in the accumulator.


What are the 4 ways to clear the accumulator in 8085 microprocessors?

I think its SUB or SUI (subtract contents from accumulator) You could just do, mvi a, 00h


What contains instruction for filling up the areas of a template?

A template typically contains placeholders or guidelines that provide instructions on where to input specific content such as text, images, or data. These areas are often labeled or formatted in a way that makes it clear what type of information should be included. Users can follow these instructions to customize the template with their own content.


Discuss Definiteness in algorithm?

eAch iNstrUctiOn mUst bE cleAr aNd aMbiguOus .


What are the advantages of threads?

Just knowing what a thread does should already make it quite clear what its advantages are. In programming, multithreading means the capability of running multiple threads, or instruction sequences, at the same time. A thread is simply a sequence of instructions, but the language is designed in such as way that other threads can work at the same time.


What is the definition of instruct?

Instruction has three meanings: 1. An instruction is something that someone tells you to do. 2. If someone gives you instruction in a subject or skill, they teach it to you. 3. Instructions are clear and detailed information on how to do something.


What is the definition of instructions?

Instruction has three meanings: 1. An instruction is something that someone tells you to do. 2. If someone gives you instruction in a subject or skill, they teach it to you. 3. Instructions are clear and detailed information on how to do something.


Assembly language pgm to find sum of n numbers?

C100 LXI H C200 21 ; Load the HL register pair immediately C101 00 ; C102 C2 ; C103 MOV B M 46 ; Move the memory content (Total number of data) in to B register C104 MVI C 00 0E ; Initialize the C register with 00 H C 105 00 ; C106 SUB A 97 ; Clear the ac cumulator C107 INX H 23 ; Increment the HL register pair (to get the next input data) C108 MOV A M 7E ; Move the memory content in to accumulator C109 DCR B 05 ; Decrement the B register c o n tent C10A INX H 23 ; Increment the HL register pair C10B ADD M 86 ; Add the memory content to accumulator C10C JNC C110 D2 ; Jump if carry = 0, to C110 H C10D 10 ; C10E C1 ; C10F INR C 0C ; Increment the C register content C110 DCR B 05 ; Decrement the B register content C111 JNZ C10A C2 ; Jump if no zero to C10A H C112 0A ; C113 C1 ; C114 STA C300 32 ; Store the accumulator content (sum) at C300 H C115 00 ; C116 C3 ; C117 MOV A C 79 ; Move the C register content to accumulator C118 STA C301 32 ; Store the accumulator content ( carry ) at C300 H C119 01 ; C11A C3 ; C11B HL T 76 ; Halt the exection


How do I install replacement cartridges?

There's an instruction paper or a manual in every box when you purchase a new cartridge. It gives clear instruction on how to install your new cartridges.