This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

delay at sdcc cross compiler

hi members...

i have a question today. i'm working with the sdcc cross compiler and metabolize c in assembler.
i want to delay some programms but i can't use the function sleep or wait in sdcc.
i have realized the delay with grinds at the moment but its very inexactly.

sorry for the bad spelling i'm a german schoolboy i can't it superiorly.

yours sincerely

nick

Parents
  • "sorry for the bad spelling i'm a german schoolboy i can't it superiorly."

    It looks like you're using an automatic translator - is that right?

    As you're at school, shouldn't you be asking your teachers?
    It will be much easier for you to talk to someone face-to-face, in your own language, and who actually knows you and can see what you're doing & what you're using!

    "i have realized the delay with grinds at the moment but its very inexactly."

    I presume you mean loops?
    In that case, you will get the same results in any high-level language!

    If you want precise timing delays, this relies on knowing precisely what instructions are being executed - and high level languages give you no control whatsoever over that!

    If you want precise delay loops, you must write them in assembler!

    Alternatively, you could use a hardware timer.

Reply
  • "sorry for the bad spelling i'm a german schoolboy i can't it superiorly."

    It looks like you're using an automatic translator - is that right?

    As you're at school, shouldn't you be asking your teachers?
    It will be much easier for you to talk to someone face-to-face, in your own language, and who actually knows you and can see what you're doing & what you're using!

    "i have realized the delay with grinds at the moment but its very inexactly."

    I presume you mean loops?
    In that case, you will get the same results in any high-level language!

    If you want precise timing delays, this relies on knowing precisely what instructions are being executed - and high level languages give you no control whatsoever over that!

    If you want precise delay loops, you must write them in assembler!

    Alternatively, you could use a hardware timer.

Children