Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

program question for 8085

I have to write a program for my 8085 that will cause a 2.5 sec delay, but I can't use decrements...can anyone help me?

Comments

  • peretperet Member Posts: 69
    : I have to write a program for my 8085 that will cause a 2.5 sec delay, but I can't use decrements...can anyone help me?
    :
    :
    heh .. use increments (inr)?

    The slowest instruction on an 8085 is SPHL. Put a series of these inside nested loops until you achieve 2.5 seconds of waste. Remember to use an EVEN NUMBER of SPHL's, and don't use HL as a counter, otherwise you'll corrupt the stack.

Sign In or Register to comment.