8085 weird problem

Thread Starter

prescott2006

Joined Nov 8, 2008
72
we were requested to interface 8085 with memory and led,then a routine need to be written to make the led light up one at a time with delay 1 second.we have simulate the program and it run perfectly but when we test on the circuit we built it doesn't work.after a lot of trial and error,finally we found that answer,the 8085 does not recognize DCX,it only recognize DCR,so we only change the DCX in our original program to DCR to perform delay.do you guy know why the 8085 behave like this?simply does not recognize the DCX instruction.our lecturer also say never seen this before.
 

Papabravo

Joined Feb 24, 2006
21,225
I don't remember a DCX instruction in the instruction set, but it is supposed to decrement a register pair. Maybe the assembler has an error or the chip is a counterfit. Check the opcodes
Rich (BB code):
|DCX B  |0B|-----| 6|Decrement BC            |BC=BC-1 |
|DCX D  |1B|-----| 6|Decrement DE            |DE=DE-1 |
|DCX H  |2B|-----| 6|Decrement HL            |HL=HL-1 |
|DCX SP |3B|-----| 6|Decrement Stack Pointer |SP=SP-1 |
 
Last edited:
Top