MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

DS 0H in Assembly

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
rnanavaty
Beginner


Joined: 12 Apr 2006
Posts: 29
Topics: 20

PostPosted: Fri Jun 08, 2007 1:24 am    Post subject: DS 0H in Assembly Reply with quote

In my program I have 'DS 0H' is defind without sub-variable of 2 bytes. What it indicate in the assembly?

SPACE 2
PRODPAGE DS 0H
PRODPAG1 CLI PREMSW,C'Y'
Back to top
View user's profile Send private message
semigeezer
Supermod


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Fri Jun 08, 2007 2:18 am    Post subject: Reply with quote

Align the next instruction or data on a half word boundary. Generally most useful if the ALIGN option is not in effect but rarely a service or instruction will require aligned data. All instructions must be halfword aligned, but that is usually the assembler default. I'll leave it to others go into instruction interpretation hardware or the history of S/360 hardware if they think it is important or interesting.
Back to top
View user's profile Send private message Visit poster's website
Bill Dennis
Advanced


Joined: 03 Dec 2002
Posts: 579
Topics: 1
Location: Iowa, USA

PostPosted: Fri Jun 08, 2007 7:47 am    Post subject: Reply with quote

Many times it's just a handy method of providing an alternate label for branching or data reference. The zero means allocate no storage, just half word align, as semigeezer said.

The length field allows for something akin to redefine.
Code:
FULLREC  DS 0CL16
HEADER   DC  CL8
DATA     DC  CL8


References to FULLREC are to a 16 bytes length. HEADER and DATA are 8 byte pieces of the same area.
_________________
Regards,
Bill Dennis

Disclaimer: My comments on this foorum are my own and do not represent the opinions or suggestions of any other person or business entity.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group