Write A Program That Will Store The Contents Of An Accumulator And Flag Register At Locations 2000h And 2001h.?

1 Answer

Answer :

Answer :By making use of the Push & Pop instructions the program can be written as:
LXISP, 4000H - this step initiates the SP at 4000h.
PUSH PSW - the contents of the accumulator and flag are pushed into the stack.
POP B
MOV A, B
STA 2000H
MOV A, C
STA 2001H
HLT

Related questions

Description : Describe Briefly The Accumulator Register Of 8085.?

Last Answer : Answer :It is one of the most important 8 bit register of 8085 It is responsible for coordinating input and output to and from the microprocessor through it. The primary purpose of ... logical operations. This accumulator register is mainly used for arithmetic, logical, store and rotate operations.

Description : Explain Briefly The Flag Register In The 8085 Microprocessor.?

Last Answer : Answer :The flag register in 8085 is an 8-bit register which contains 5 bit positions. These five flags are of 1bit F/F and are known as zero, sign, carry, parity and auxiliary carry. ... addition and subtraction operations. The parity flag is used for results containing an even number of one's.

Description : If initial content of accumulator is 44 H, find out the new content of accumulator after execution of the instruction RR A

Last Answer : Contents of Acc will be 22H ( as RR A divides acc by 2)

Description : Do you ever flag comments and/or questions here?

Last Answer : I lost counts years ago. I just can’t stand spams.

Description : Australia Flag

Last Answer : Did you know that the Australian flag was a product of a design competition? In fact, this flag is a fusion of three different flags or major designs. In the year 1901, the new Commonwealth ... on February 14, 1954. It was Elizabeth II herself who personally gave her Royal Assent to this law.

Description : How To Make Easy Flag Cakes

Last Answer : Ingredients: 2 pints of strawberries 1 recipe of your favorite white or yellow cake (mix or from scratch, your choice) 1 1/3 C of blueberries 1 tub of whipped topping Directions: ... strawberry halves and blueberries on whipped topping to create a flag design. Refrigerate until ready to serve.

Description : How to Fold a Flag

Last Answer : How to Fold a Flag A flag is a national symbol and should be treated with respect. As such, there is a specific way that is observed when folding a flag. Give your flag the respect it deserves ... as embroidery on household items or clothing. Never use it as part of an athletic uniform or a costume.

Description : How to Do a Human Flag ?

Last Answer : How to Do a Human Flag The human flag stunt is very popular in physical activities like stunt running, parkour, and gymnastics. The seemingly simple act of grabbing a vertical pole while staying ... you can perfect the human flag stunt and move around the city in a whole new, cooler way.

Description : What Is A Stack Pointer Register, Describe Briefly.?

Last Answer : Answer :The Stack pointer is a sixteen bit register used to point at the stack. In read write memory the locations at which temporary data and return addresses are stored is known as the stack. ... to avoid program crashes a program should always be written at one end and initialized at the other.

Description : In 8085 Which Is Called As High Order / Low Order Register?

Last Answer : Answer :Flag is called as Low order register & Accumulator is called as High order Register.

Description : How to Register to Vote

Last Answer : How to Register to Vote If a single step can start one epic journey, then one vote in the elections can make a big difference in determining your country's future. Though most governments rely ... confirmation from your local election office. You should be able to get an update or confirmation soon.

Description : How to Register a Copyright with the Copyright Office

Last Answer : How to Register a Copyright with the Copyright Office A copyright will allow you protection under federal law from having your original work used without your permission. With a copyright in hand you ... that deposited work(s) are not usually returned Visit the copyright website for current fees.

Description : Shift Register

Last Answer : Shift Register:- Shift Register is a group of flipflops used to shift data from one side to other side or to convert serial data into parallel or vice versa. Shift registers are of following types  i) ... iii) Parallel in serial out(PISO) iv) Parallel in parallel out(PIPO)

Description :  What is the size of SP register in 8085 microprocessor? A) 16 bits B) 8 bits C) 64 bits D) 48 bits

Last Answer :  What is the size of SP register in 8085 microprocessor? A) 16 bits B) 8 bits C) 64 bits D) 48 bits

Description : Write the ladder program for 24 hour clock.

Last Answer : Ladder Program for 24 hour clock:

Description : Can you recommend a safe and free ad blocker program?

Last Answer : Which browser?

Description : Windows program to record IR signals and rebroadcast them?

Last Answer : Try searching on the term IR repeater.

Description : I need a program to automatically build in minecraft.

Last Answer : A teenager?

Description : Automate multiple program installation?

Last Answer : You can write a script in Auto Hotkey that launches the installer and clicks on a certain position relative to the window. I’m not sure if VB script can handle macros.

Description : Program to make high quality gifs?

Last Answer : answer:GIMP is a free image editing program much like Photoshop that can be used to create .gifs. There are some tutorials here and a quick Google search should give you plenty more if those aren't ... when you save the file. Usually, upon saving, a prompt will come up with compression options, etc.

Description : I need a program to edit MKV files.

Last Answer : Tere are plenty of open source converters to put it in various formats. MKV to AVI, MP4, FLV, WMV, DivX, MPEG What did you use that didn’t work? What do you want to play it on? DVD, ipod, etc, etc? Get me a copy and I can convert any non corrupt file.

Description : I need a program to turn pictures into GIF's?

Last Answer : answer:You can search online for automatic .gif makers. If you’re looking for something you can personalize and edit, Gimp has relatively simple animation capabilities, and it’s free.

Description : Whats The Best Free 3D Animation Program

Last Answer : try visual python. Its for extreme begginers

Description : What Is Program Counter?

Last Answer : Answer :Program counter holds the address of either the first byte of the next instruction to be fetched for execution or the address of the next byte of a multi byte instruction, which has ... one as the instruction bytes get fetched. Also Program register keeps the address of the next instruction.

Description : How To Make A Recycling Program

Last Answer : Begin with the Bottom Line Avoiding disposal fees should be one of the primary goals of a recycling program. The more materials you reduce, reuse and recycle, the less waste you dispose. The less waste ... : REDUCE the waste you produce REUSE as much as you can RECYCLE the rest and BUY RECYCLED.

Description : In 8085, whenever a signal is received at TRAP terminal, its program execution is transferred to a subroutine on address A) 0000 H B) 002C H C) 0024 H D) 0004 H

Last Answer : In 8085, whenever a signal is received at TRAP terminal, its program execution is transferred to a subroutine on address 0024 H

Description : The stack pointer in the 8085 microprocessor is a: a) 16 bit register that points to stack memory locations b) 16 bit accumulator c) Memory location in the stack d) None of The Above

Last Answer : a) 16 bit register that points to stack memory locations

Description : Don’t people who retire trade their work routine for a non-work routine?

Last Answer : answer:Depends on the person. And one can't be always climbing mountains and travelling to distant lands. People crave a little structure in their lives, so they like to wander down to the coffee ... getting the same half caf skinny extra large caramel macchiato and a maple scone with two butters.

Description : Simple way to add a GUI to batch script, or similar?

Last Answer : I think you might want to use http://www.horstmuc.de/ui.htm. Enjoy.

Description : Shut down all network computers via batch script?

Last Answer : answer:I recently did this because we had an issue with our Generator not cutting over. Once the UPS runs out, hard loss of power will affect hard drives, system boards, cache batteries, ... or maliciously executed. PM me if you need more info. Both are free. WMIC commands SysInternals psshutdown

Description : Has one of your local tv stations made it big time with a local show?

Last Answer : answer:People Are Talking was a local Philly afternoon show hosted by Maury Povitch (a long time before he and Connie married.) It was so successful that he went national. The new host was ... watching it altogether as it just got more superficial, trashy and tabloidy with each passing week. Ugh.

Description : How can I make a menu for my boot CD?

Last Answer : GRUB.

Description : Are there any good ways to run programs straight off of my flash drive?

Last Answer : Portable Apps

Description : Dreamweaver Crashes Every time I Run it?

Last Answer : Use your install disk. When you insert it it should allow you to do a repair, either that or start over from scratch.

Description : Does Yahoo M has a function that show when my friend was online the last time?

Last Answer : Not that I’ve ever come across. Even if it did, if the person has been running as invisible it wouldn’t log the last date anyway.

Description : The act of writing new data into register (1) is possible only when the register is an accumulator (2) is possible only when the register is an accumulator or instruction register (3) erases the previous contents of the register (4) is non-destructive to existing contents

Last Answer :  is possible only when the register is an accumulator or instruction register

Description : In an 8085 microprocessor, the instruction CMP B has been executed while the contentsof accumulator is less than that of register B. As a result carry flag and zero flag will berespectively (A) set, reset (B) reset, set (C) reset, reset (D) set, set

Last Answer : (A) set, reset

Description : The contents of Register (BL) and Register (AL) of 8085 microprocessor are 49H and 3AH respectively. The contents of AL, the status of carry flag (CF) and sign flag (SF) after executing 'SUB AL, BL' assembly language instruction, are ( ... ; CF=0; SF=0 (3) AL=F1H; CF=1; SF=1 (4) AL=1FH; CF=1; SF=1

Last Answer : Answer: 3

Description : Which is used to store critical pieces of data during subroutines and interrupts: a. Stack b. Queue c. Accumulator d. Data register

Last Answer : a. Stack

Description : The load instruction is mostly used to designate a transfer from memory to a processor register known as_________ A. Accumulator B. Instruction Register C. Program counter D. Memory address Register

Last Answer : A. Accumulator

Description : Various machine level components are: a. Address register > Program counter c Data register d. Accumulator register e. Memory of 2K,16 bits/word RAM f. Multiplexers g. Allof these

Last Answer : g. Allof these

Description : The instruction fetch operation is initiated by loading the contents of program counter into the and sends _ request to memory: a. Memory register and read b. Memory register and write c. Data register and read d. Address register and read

Last Answer : d. Address register and read

Description : The contents of accumulator before CMA instruction is A5H. Its content after instructionexecution isa) A5H b) 5AH

Last Answer : b) 5AH

Description : If the contents of an accumulator are Ex-ORed with itself and placed in the accumulator itself, then  A) Carry flag will be set B) The accumulator contains all 1’s C) The zero flag is set D) The accumulator contents are shifted left by one bit

Last Answer : If the contents of an accumulator are Ex-ORed with itself and placed in the accumulator itself, then The zero flag is set 

Description : In an 8085 microprocessor, the contents of the Accumulator, after the following instructions are executed will become   XRA A   MVI B, F0 H   SUB B  (A) 01 H (B) 0F H (C) F0 H (D) 10 H

Last Answer : In an 8085 microprocessor, the contents of the Accumulator, after the following instructions are executed will become   XRA A   MVI B, F0 H   SUB B  (A) 01 H (B) 0F H (C) F0 H (D) 10 H

Description : In an 8085 microprocessor, the contents of accumulator, after the following instructions are executed will become   XRA A   MVI B F0H   SUB B   (a) 01 H (b) 0F H (c) F0 H (d) 10 H

Last Answer : In an 8085 microprocessor, the contents of accumulator, after the following instructions are executed will become   XRA A   MVI B F0H   SUB B   (a) 01 H (b) 0F H (c) F0 H (d) 10 H

Description : Which of the following registers is loaded with the contents of the memory location pointed by the PC? A) Memory address registers B) Memory data registers C) Instruction register D) Program counter

Last Answer : Answer : C

Description : The instruction read from memory is then placed in the ___and contents of program counter is __ so that it contains the address of_ __ instruction in the program. a. Program counter, ... incremented and previous c. Instruction register, incremented and next d. Address register, decremented and next

Last Answer : c. Instruction register, incremented and next

Description : Which of the following registers is loaded with the contents of the memory location pointed by the PC? a. Memory address registers b. Memory data registers c. Instruction register d. Program counter

Last Answer : Instruction register

Description : Which of the following registers is loaded with the contents of the memory location pointed by the PC? a. Memory address register b. Memory data register c. Instruction registers d. Program counter

Last Answer : c. Instruction registers