View previous topic :: View next topic
|
Author |
Message |
quest2008
New User
Joined: 12 Jun 2008 Posts: 22 Location: bangalore
|
|
|
|
Hello Guys,
Is there any instruction in assembler so that i can test the more than 8 bits in single instruction?.
As far as i know using TM instruction will test 8 upto bits only.
Also how can i know which bits are on and which bits are off using single instruction?
Suggestions are welcome.
Thanks. |
|
Back to top |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
|
|
quest2008 wrote: |
Is there any instruction in assembler so that i can test the more than 8 bits in single instruction?. |
Just what specfic application are you looking at? |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
As far as i know using TM instruction will test 8 upto bits only. |
One byte has always been enough. . .
Quote: |
Also how can i know which bits are on and which bits are off using single instruction? |
I don't believe there is a single instruction that will do this.
If you explain what you really want to do, someone may have a suggestion. |
|
Back to top |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
TMH (Test Under Mask High Halfword) and TML (Test Under Mask Low Halfword) will test using a halfword-mask, but as far as testing all bits in one fell swoop, I'm not aware of this.
A combination of SLL Rx,1 and TM 0(Rx),X'80' would work in a loop.
Regards,
Bill |
|
Back to top |
|
|
|