Shop OBEX P1 Docs P2 Docs Learn Events
ALTGx/ALTSx and REP in PASM 2 — Parallax Forums

ALTGx/ALTSx and REP in PASM 2

Do the ALTGx/ALTSx count as an instruction within a REP loop? Debug hasn't been helpful within the REP.

Comments

  • evanhevanh Posts: 17,034

    Yes, as do the AUGx instructions. Though, much better to let the assembler do the counting for you by using label references instead of hand coding the length.

            rep @.rend, repeats
            <instr>
            <instr>
            <instr>
            <instr>
    .rend
    
  • @evanh said:
    Yes, as do the AUGx instructions. Though, much better to let the assembler do the counting for you by using label references instead of hand coding the length.

            rep @.rend, repeats
            <instr>
            <instr>
            <instr>
            <instr>
    .rend
    

    Woah! Nice! Thank you!

Sign In or Register to comment.