answersLogoWhite

0

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

15y ago

What else can I help you with?

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.


How perform program of 8086?

To perform a program on the 8086 microprocessor, you typically write assembly language code that consists of instructions executed by the CPU. First, you need to set up the data segment for variables and the code segment for the instructions. After writing the code, you assemble it using an assembler to generate machine code, which can be loaded into memory. Finally, you execute the program by starting the processor at the specified memory address, and the 8086 will process the instructions sequentially.