answersLogoWhite

0


Best Answer

A possible program to reverse a block of memory using the 8085...

PUSH F SAVE PROCESSOR STATE - OPTIONAL

PUSH B

PUSH D

PUSH H

LXI H,{address of block}

MOV D,H SAVE BLOCK ADDRESS

MOV E,H

MVI A,{size of block}

MOV C,A SAVE BLOCK SIZE

LOOP1:

MOV A,M GET DATA BYTE

PUSH F PUSH ON STACK

DCR C DECREMENT LOOP COUNT

XRA A TEST FOR END OF LOOP

CMP C

JNZ LOOP1

MOV H,D RESTORE BLOCK ADDRESS

MOV L,E

MOVE C,B RESTORE BLOCK SIZE

LOOP2:

POP F POP FROM STACK

MOV M,A PUT DATA BYTE

DCR C DECREMENT LOOP COUNT

XRA A TEST FOR END OF LOOP

CMP C

JNZ LOOP2

POP H RESTORE PROCESSOR STATE - OPTIONAL

POP D

POP B

POP F

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Write a program to store block of data in reverse order in a memory block using 8085 microprocessor?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Could you Write a program for 8086 microprocessor that displays on the monitor the average of 2 numbers from an array?

How to write a program for mouse in microprocessor?


Need of interface in microprocessor?

the principle function of memory interfacing is to enable the microprocessor to read or write into a register of the memory chip


Write a program to add two 8 bit numbers in microprocessor 8051?

write it in 8085


How does the microprocessor knows which operation to perform first read or write?

in any of the microprocessor include sequencer that sequencer send control signal to the memory and processor to do specific operation like read or write operation


How do you write a program that outputs a given characters in reverse?

write the javascript code to display the reverse no. of given no. (e.g. 247 reverse of 742)


Assembly language program for string concatenation using 8086 microprocessor?

write program to concatenating two sting in 8086 assembly language


How do you write Ascending order program using 8086 microprocessor?

One many find this answer on YouTube. One also may find out how to write ascending order programs using an 8086 microprocessor by looking at the owners manual.


How do you Write a C program to reverse an Integer number.?

Reference:cprogramming-bd.com/c_page2.aspx# reverse number


Write the program in Linux to find the reverse of any string?

i am sam


Write a program to read your name and reverse it using arrays?

abdulrahman


Concepts of hacking and cracking?

Long answer made short: * learn what asm is (short for assembly code) * learn how to reverse engineer (get the assembly code of a program, a debugger is most commonly used) * learn a programming language basics (mainly how to read and write to memory) You can then reverse your program, find what you need to change, and create an external program to edit the part you wish to change. (otherwise known as memory hacking, or mem hacks) to crack, its the same, reverse, locate, however, you then have to permantly change part of the program. this is often done to bypass serial codes. a JE is changed to JNZ, or simply JMP.


What are registers in assembly language?

Registers are memory locations on the microprocessor itself (not in main memory). In RISC architectures generally most operations (add, multiply, etc) must take there input from registers and write their output to a register. Since registers are located directly on the microprocessor, they represent the fastest form of memory in the computer, and also the type of memory available in the least quantity.