Questions tagged [8085]

The Intel 8085 is an 8-bit CPU from the 1970's. Use this tag for queries regarding assembly code written for 8085.

The Intel 8085 processor was introduced in the late 1970's as an improved version of the then popular 8080 CPU.

It was soon succeed by the 16-bit 8086, the first x86 processor.

113 questions
0
votes
1 answer

How to write clean and efficient Intel 8085 ASM programs?

I am writing a program in the 8085 assembly language to prove both the Demorgan's laws using any two arbitrary values, I am having to use many push-pop operations in the stack and also a lot of register operations. Writing the whole program as the…
0
votes
0 answers

How many machine cycles does the HLT instruction require on the intel 8085?

I have referred the Intel 8085 manual, it says that the HLT instruction requires 1 machine cycle and 5 or more T states, but my textbook and some internet sources say that it requires 2 machines cycles and the number of T states can vary depending…
0
votes
0 answers

How should I change the code using the 8085 microprocessor to execute and read what is in quotes?

I am trying to write a code in an assembly programming language using 8085 microprocessor. The code should change all uppercase characters into lowercase taking into account that the text is written in ASCII code. My simulator does not read what is…
0
votes
1 answer

How to put label with 8085 microprocessor in assembly language?

I have a code that should convert uppercase letters to lowercase using 8085 microprocessor (the GNUSim8085 simulator). However, the code is not readable, and immediately throws an error in row "lowercase:", that "the line of code must be given a…
Liuzili
  • 15
  • 6
0
votes
1 answer

How were programs written in 8085 assembly dumped into memory

How were programs that were written in assembly loaded into memory of 8085 processors? Did the processor come with a bootloader with which you could load information into memory? If so, what did the program look like? In my 8085 simulator I press…
0
votes
1 answer

'Label' in assembly language - opcode

I am currently learning to program in the 8085 microprocessor. Take a look at the program below: LXI H, 2050 MOV B, M INX H MOV C, M MVI A 00H TOP: ADD B DCR C JNZ TOP INX H MOV M, A HLT This program multiplies two 8-bit numbers in the 8085…
Arya
  • 54
  • 8
0
votes
0 answers

Why does CMP L and CMP M instructions in Microprocessor 8085 have same opcode BD?

CMP L compares Accumulator(A) contents with L register. CMP M compares Accumulator(A) contents with 8-bit data stored in the memory location as stored in H-L register pair. That's two different operations totally so why is there the same opcode BD…
stranGer
  • 1
  • 1
0
votes
2 answers

Why is MOV M,M invalid while MOV A,A is valid in 8085 microprocessor

Please explain how is this possible?
Sanskriti
  • 27
  • 3
0
votes
1 answer

Program in 8085 Microprocessor

There are N bytes stored from m/m location 2500H. The value of N is stored in 2400H.How can I write an 8085 program to interchange (irrespective of the bit value) the bit Di with Dj for all bytes. The values of i=4 and j=0
0
votes
1 answer

How different is ASM85 from ASM86?

I have to learn ASM85 for class, but my professor's lecture notes are pretty bad (not a native speaker), so I'm wondering if I could just study the ASM for Intel 8086. Or if there are good resources for learning ASM85, that would be much…
0
votes
0 answers

Converting a cpp code to an appropriate assembly language for the 8085 simulator

I wrote a cpp code for applying Newton Raphson method for a polynomical function (ax^6 + bx^5 + cx^4 + dx^3 + ex^3 + fx^2 + gx + h) (I assumed all variables were 1, so I just defined a) and I want to convert it for 8085 simulator, could you help me?…
Tezcan13
  • 1
  • 1
0
votes
2 answers

How to multiply two 8 bit numbers using shift and add operations in 8085 microprocessor?

We are supposed to multiply two 8 bit numbers using shift and add operations of 8085 microprocessor. Answer should be a 16 bit number. Use of shift and add operation is compulsory
Sarthak
  • 188
  • 1
  • 2
  • 14
0
votes
1 answer

8085 program to add two 8-bit numbers in 8085 simulator

I am trying to add two 8 bit number and wrote the following code: MVI D 08h MVI B 03h MVI C 00h MOV A D LOOP: CMP B JC DOWN INR A SUB B JNZ LOOP DOWN: HLT But I got incorrect output.
MC_user
  • 48
  • 3
0
votes
0 answers

8085; Why RET doesn't require a 6 T-states Fetch cycle like CALL?

The CALL instruction, requires 5 machine cycles, namely, OPCODE-FETCH, MEMORY READ, MEMORY READ, MEMORY WRITE, MEMORY WRITE. The OPCODE-FETCH cycle of CALL has 6 T-states to take care of the decrements of the Stack Pointer. RET instruction…
0
votes
1 answer

How to create a list of hex number in 8085 assembler?

I need to know how to create a list of number in 8085 assembler and store the list in successive memory location?