Skip to main content
Visitor II
February 12, 2003
Question

ST62 OR command

  • February 12, 2003
  • 2 replies
  • 797 views
Posted on February 12, 2003 at 14:13

ST62 OR command

    This topic has been closed for replies.

    2 replies

    nilsAuthor
    Visitor II
    February 12, 2003
    Posted on February 12, 2003 at 12:35

    Hi,

    anybody know how to get an efficient OR command going for an st6200?

    Visitor II
    February 12, 2003
    Posted on February 12, 2003 at 14:13

    Hi,

    The following will OR A with X

    COM A ; Complement A

    LD V , A ; Store A in register V

    LDI A , X ; Put Value into A

    COM A ; Complement A

    AND A , V ; AND A with V

    COM A ; Complement A

    The result is given in A

    regards,

    Simon Harrison

    [ This message was edited by: sjh on 12-11-2003 16:24 ]