Can someone please help me with this 8085 assembly language program - Have to generate a delay of 1 minute and 2 min(separate programs) and frequency is 3Mhz. Have to do it using 16bit reg pair and the delay must be exact 60sec and 120sec. Have to show the delay generation calculation as well.
What I have done so far is this (1 minute delay generation):
Delay={(24*2971)+17}*0.33=0.02353sec
Now,I see this hint that 0.02353*255(FFh)=6.001sec and I want 60sec. I am not very good with assembly language as I am still learning but can someone please tell me what should I do here ? THANKS!!
Mod edit: code tags
What I have done so far is this (1 minute delay generation):
Code:
Delay:
MVI D,00FFH 7 T states
L2:
LXI B,0B9BH 10 T states
L1:
DCX B 6 T states
MOV A,C 4 T states
ORA B 4 T states
JNZ L1 7/10 T states
DCR D 4 T states
JNZ L2 7/10 T states
RET 10 T states
Now,I see this hint that 0.02353*255(FFh)=6.001sec and I want 60sec. I am not very good with assembly language as I am still learning but can someone please tell me what should I do here ? THANKS!!
Mod edit: code tags
Last edited by a moderator: