Is PUSH A Instruction Valid in 8085?

  • Thread starter Thread starter reddvoid
  • Start date Start date
  • Tags Tags
    Instruction Push
Click For Summary

Discussion Overview

The discussion centers around the validity of the PUSH A instruction in the 8085 microprocessor. Participants explore the nature of the PUSH instruction, its relation to register pairs, and the historical context of the 8085 architecture.

Discussion Character

  • Debate/contested
  • Technical explanation
  • Historical

Main Points Raised

  • One participant questions the validity of the PUSH A instruction, noting that PUSH and POP typically operate on register pairs, which do not include the accumulator (A) in the 8085.
  • Another participant suggests using PUSH PSW instead, explaining that it pushes both the accumulator and the flags, and provides historical context about the 8085's relevance.
  • A participant confirms that PUSH PSW is the correct mnemonic for the operation that includes the accumulator, while noting that different assemblers may recognize different mnemonics.
  • Some participants mention that the actual opcode for this operation is F5, and that the distinction between PUSH PSW and PUSH A lies in the assembler's recognition rather than the hardware itself.
  • One participant expresses uncertainty about the instruction's validity and mentions needing to consult their 8085 reference material.
  • Another participant recalls that their assembly language manual from 1977 uses only the mnemonic PUSH PSW, reinforcing the idea that PUSH A is not recognized in that context.

Areas of Agreement / Disagreement

There is no consensus on the validity of the PUSH A instruction. Some participants assert that it is not recognized, while others suggest that it may be valid depending on the assembler used.

Contextual Notes

Participants reference different assemblers and manuals, indicating that the recognition of mnemonics may vary. There is also mention of the historical context of the 8085 and its instruction set, which may influence interpretations.

Who May Find This Useful

This discussion may be useful for students preparing for exams on microprocessor architecture, particularly those studying the 8085, as well as individuals interested in the historical aspects of assembly language programming.

reddvoid
Messages
118
Reaction score
1
Is PUSH A Instruction Valid in 8085
I get this doubt because PUSH and POP always acts on register pairs but only register pairs available in 8085 are BC DE HL there is no register to pair with A so ?
 
Engineering news on Phys.org
If you want to push the accumulator you do a PUSH PSW. This pushes the 8-bit accumulator and 8-bits worth of flags. (PSW stands for processor state word).

I'm showing my age on this one. Why in the world are you interested in 8085?

Not complaining, I would enjoy reminiscing about this old gem.
 
thanks the_emi_guy :biggrin:
this damn entrance test, they have mentioned this 1980's 8085 in their test syllabus
I think its because 8085 is pretty basic and if you master it others can be understood easily :)

So, PUSH A is invalid instruction in 8085?
 
The actual instruction (opcode) is an F5. PUSH PSW (or PUSH A) are mnemonics that an assembler would recognize and translate into the cooresponding opcode.

The Intel ICE assemblers that I used (many years ago) recognized only the mnemonic PUSH PSW.
 
For example, the Zilog Z80 processor's assembler used the mnemonic PUSH AF for this same instruction (F5).

(Z80 would execute 8080/8085 machine code).
 
I'd have to look at my 8085 book. But push a is valid on the Intel 8085 chip. If you google 8085 instruction set there is several pdf books containing the instruction set.
 
Just double checked. My 8080/8085 Assembly language Programming Manual (1977) uses the mnemonic PUSH PSW. There is no PUSH A in there.

But the point is PUSH PSW, PUSH A, or PUSH AF are all the same instruction as far as the actual 8085 chip is concerned. The only difference is in what the assembler you are using to assemble your code recognizes.

All the 8085 chip itself will see is an F5 returned from memory at the program counter address during the M1 (instruction fetch) cycle.
 
Last edited:
Lol yeah I just dug out my copy from storage you are correct. Been years for myself as well
 
reddvoid said:
thanks the_emi_guy :biggrin:
this damn entrance test, they have mentioned this 1980's 8085 in their test syllabus

BTW 1970s!
 

Similar threads

  • · Replies 0 ·
Replies
0
Views
1K
  • · Replies 7 ·
Replies
7
Views
4K
  • · Replies 13 ·
Replies
13
Views
2K
  • · Replies 20 ·
Replies
20
Views
4K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 4 ·
Replies
4
Views
4K
Replies
1
Views
1K
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
14
Views
3K