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

  • : 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.

Howdy, Stranger!

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

Categories

In this Discussion