Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Testing more than 8 bits in single instruction

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
View previous topic :: :: View next topic  
Author Message
quest2008

New User


Joined: 12 Jun 2008
Posts: 22
Location: bangalore

PostPosted: Mon Sep 01, 2008 10:00 pm    Post subject: Testing more than 8 bits in single instruction
Reply with quote

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
View user's profile Send private message

CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2150
Location: At my coffee table

PostPosted: Mon Sep 01, 2008 10:44 pm    Post subject: Re: Testing more than 8 bits in single instruction
Reply with quote

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
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Tue Sep 02, 2008 1:37 am    Post subject:
Reply with quote

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
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2502
Location: Atlanta, Georgia, USA

PostPosted: Tue Sep 02, 2008 5:16 am    Post subject: Re: Testing more than 8 bits in single instruction
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Append data from two files into a sin... Praveen04 DFSORT/ICETOOL 5 Thu Mar 16, 2017 7:29 pm
No new posts IMS DB-How to update a record (a sing... Nic Clouston IMS DB/DC 9 Thu Mar 09, 2017 4:38 pm
No new posts To Merge mutliple records into a sing... anandgbe DFSORT/ICETOOL 6 Wed Feb 22, 2017 8:49 am
No new posts Two Selects in a single select query Rohit Umarjikar DB2 1 Fri Nov 04, 2016 8:46 pm
No new posts Single COPY CICS TS datasets and when... Kyle Carroll CICS 2 Tue Oct 11, 2016 9:47 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us