1. Registers
- The 8085 has six general purpose registers to store 8 bit data; these are identifies as B, C, D, E, H, L.
- They can be combined as register pairs - BC, DE and HL to perform some 16-bit operations.
- The programmer can use these registers to store or copy data into the registers by using data copy instructions.
2. Accumulator
- The accumulator is an 8-bit register that is a part of arithmetic/logic unit(ALU).
- This register is used to store 8-bit data and to perform arithmetic and logical operations.
- The result of an operation is stored in the accumulator.
- The accumulator is also identified as register A.
3. Flags
Bit positions of various flags in the flag register of 8085 |
- 8085 has five flag registers:-
- Sign Flag (S): Sets or Resets based on the result stored in the accumulator.
If the result stored is positive, the flag resets else if the result stored is negative the flag is set.
- Zero Flag (Z): Sets or Resets based on the result stored in the accumulator.
If the result stored is zero the flag is set else it is reset.
- Auxiliary Carry Flag(AC) : This flag is set if there is a carry from low nibble(lowest 4 bits) to high nibble(upper 4 bits) or a borrow from high nibble to low nibble, in the low order 8-bit portion of an addition or subtraction operation.
- Parity Flag (P): This flag is set if there is even parity else it resets.
- Carry Flag (CY): This flag is set if there is a carry bit else it resets.
4. Program Counter (PC)
- This 16-bit register deals with sequencing the execution of instructions this register is a memory pointer.
- Memory locations have 16 bit addresses and that is why this is a 16 bit register.
- The function of the PC is to point to the memory address from which the next byte is to be fetched.
- When a byte(machine code) is being fetched, the program counter is incremented by one to point to the next memory location.
5. Stack Pointer (SP)
- The stack pointer is also a 16-bit register used as a memory pointer.
- It points to a memory location in R/W memory called stack.
- The beggining of the stack is defined by loading 16-bit address in the stack pointer.
Finally got the desired answer.
ReplyDeleteThank you so much !!!
Happy to help! :)
DeleteIt is so helpful ☺ thank you ๐
Deletethanks a lot!
DeleteVery helpful material for me
DeleteThanku so much
Thanks
DeleteThanks for the help needfull and meaning full answer
Delete๐
Lot of thnx
ReplyDeleteTnx
ReplyDeleteIt is too much helpful
ReplyDeleteThank you
ReplyDeleteThanks...
ReplyDeletethanks
ReplyDeleteIt's my pleasure ๐
Deletehii
DeleteThanks
ReplyDeleteGgicysHf hg
ReplyDeletethanks a lot
ReplyDeleteDescribed briefly๐
ReplyDeleteThanks
ReplyDeletethank you, very helpful
ReplyDeleteStack pointer ia not understandable sir...plz explain it in simple way like explained above topics.
ReplyDeleteit is used to do operation on the top of the structured data(stack), example:- suppose you are opening your whatsapp app so it is a structured data and then the top of the chat means the latest chat done by you, when you click on that the address of that instruction(command) will be stored in SP(stac pointer).
DeleteJa de
ReplyDeleteja be
ReplyDeleteNeat and precise
ReplyDeleteDiagram bi draw karna hai kya
ReplyDeleteKarle draw kya jata hai
ReplyDeleteok
ReplyDeleteThank you a lot
ReplyDeleteThankss
ReplyDeletestill helpful
ReplyDeletethanks
ReplyDeleteTHANKS BRUH, I REALLY HELPED , LOOKING FOR A PRECISE ANSWER. AND IT CAN'T BE MORE PRECISE THAN THIS
ReplyDeleteThanks Master £
ReplyDeletenice
ReplyDeleteSystem
ReplyDeletemaaza aaya
ReplyDeleteVery nice explanation
ReplyDeleteThanks a lot
Thankyou so much
ReplyDeleteThnx
ReplyDeleteSunnyjutt02@gmail.com
ReplyDeleteHelpful
ReplyDelete