Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 2504
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 Control-M restart instruction sonaliingle CA Products 2 Tue Nov 28, 2017 5:05 pm
No new posts Formatting multiple records to a sing... Vignesh Sid SYNCSORT 3 Tue Nov 07, 2017 12:22 pm
No new posts More than 1 Include criteria for sing... Roy Ware SYNCSORT 6 Wed Sep 13, 2017 11:45 pm
No new posts Multiple VSAM files single output fil... Mohan Kothakota DFSORT/ICETOOL 11 Wed Aug 09, 2017 7:57 pm
No new posts Read two inputs and write into output... murali.andaluri DFSORT/ICETOOL 6 Wed Jul 26, 2017 7:35 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us