8085 Online Simulator
By
digitalpbk
|
CodeView
HexView
SimView
Compile & Simulate
Step
Execute
Reset
Pause
Help
org a000h ;; KBINPUT example CALL KBINPUT MOV C,A STA F000H ;; Sample Demo program.. supposed to find the largest ;; All addresses and numbers must have H at the end like A000H LXI H,ADD1 ; Load 16 bit data in reg pair H MOV C,M ; Load the counter to compare the total no of data to count INX H ; Increment the address to point to the next location MOV A,M ; Load the second no in the accumulator ADD2: ; Label to jump at INX H ; Increment the address to point to the next location CMP M ; Compate the accumulator with the next no in series JNC LESS ; do not give colon here ; Jmp to a location with the comparision returns a carry MOV A,M ; Move the content of the location M into the accumulator if the Jump fails LESS: ; Label to jump at : is a must DCR C ; decrement the counter JNZ ADD2 ; Jump if there is anything more to compare STA ADDOP hlt ADD1: 05 01 02 04 05 90 10 ADDOP: 00 ; just gave a value here to initialize the memory area
Havnt Compiled, Press Compile
Reg
Val
Reg
Val
A
B
C
D
E
H
L
PC
SP
S
Z
X
AC
X
P
X
CY
By
Arun Prabhakar