View previous topic :: View next topic |
Author |
Message |
rnanavaty Beginner
Joined: 12 Apr 2006 Posts: 29 Topics: 20
|
Posted: Fri Jun 08, 2007 1:24 am Post subject: DS 0H in Assembly |
|
|
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 |
|
 |
semigeezer Supermod
Joined: 03 Jan 2003 Posts: 1014 Topics: 13 Location: Atlantis
|
Posted: Fri Jun 08, 2007 2:18 am Post subject: |
|
|
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 |
|
 |
Bill Dennis Advanced

Joined: 03 Dec 2002 Posts: 579 Topics: 1 Location: Iowa, USA
|
Posted: Fri Jun 08, 2007 7:47 am Post subject: |
|
|
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 |
|
 |
|
|