cancel
Showing results for 
Search instead for 
Did you mean: 

ST62 OR command

nils
Associate II
Posted on February 12, 2003 at 14:13

ST62 OR command

2 REPLIES 2
nils
Associate II
Posted on February 12, 2003 at 12:35

Hi,

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

simonharrison9
Associate II
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 ]