future engineers
A very simple and complete simulator for 8085 microprocessor
A
8085 SIMULATOR with stepper motor interfacing and keyboard interrupts)
Includes load and save options and comes with 10 sample programs. The
simulator clearly shows the flags being affected instruction being
executed and the stack.
This software provides us facility to use memory, stack and
registers. This software provides keyboard type interface.
We can see the
value of registers in digital form just below the keyboard interface.
Mnemonics with respective hex-code and address can be viewed.
Lets load a sample program.program to add content of 818A and 818B.
818A contains 29 and 818B contains 45. we are adding the contents of
these address ,convert them to BCD number and coping them to memory
location 818C.
ALGORITHM
1. Load data to memory location
2. Copy data from memory location to registers(HL pair)
3.Move the data to registers(MOV A,H and MOV B,L)
4.Add data of A and B ( ADD register name)
5.Convert binary to BCD ( DAA register name)
6.Store to memory specified ( STA 16 bit address)
7. Terminate the program(RST 5)
PROGRAM
818A DATA 29
818B DATA 45
LHLD 818A
MOV A,H
MOV B,L
ADD B
DAA
STA 818C
RST 5
OUTPUT: 818C=74
To download this simulator,please click the download link below:
I will discuss how will DAA converts binary to BCD in my next post. Thank you.
no value is seen on keyboard
ReplyDelete