Results 1 to 2 of 2

Thread: Checking register values

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2002
    Posts
    7

    Checking register values

    I have some code that runs in a loop until a button is pushed. At this point it is meant to branch into a different sub-routine.

    I am attempting this by using the button to set off an interrupt, which then sets a value of a register (e.g. r16). I've then been told to use "TST" command, which is meant to set the zero, overflow flags. How do I use this to branch to another routine if the register has changed to a known number.

  2. #2
    Fanatic Member
    Join Date
    Jan 2003
    Posts
    1,004
    Do you mean the TEST instruction?
    "Can't" and "shouldn't" are two totally separate things.

    All questions should be answered. All answers should be true. That is why I post.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width