Assembler - SCON.

HLASM for MVS. PL/I for MVS & Enterprise PL/I for z/OS.
Post Reply
Aardhya D
Registered Member
Posts: 10
Joined: Wed Feb 26, 2014 12:01 pm

Assembler - SCON.

Post by Aardhya D »

Hi

I wanted to know about data-type SCONs like VCONs and ACONs. Can anyone give some information. i am not yet clear about it.

Thanks
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1900
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: Assembler - SCON.

Post by Robert Sample »

A memory location contains data. The data that an address constant (VCON or ACON, for example) contains is a reference to another memory location. This is done because when a program is assembled, there is no way to know in advance where in memory it will be loaded to execute, so absolute addresses are not possible at that time. When the program is loaded into memory to execute, the address constants are resolved to absolute addresses. Example: location 2000-2003 contain 'ABCD'. Location 1000 contains the address constant 2000. You could load address 1000 into register 3, then load register 4 from the address in register 3 -- this would put 'ABCD' into register 4.

This is an extreme simplification of the process, and ignores many of the details, but hopefully you can understand address constants better. Note that the difference between a VCON and ACON is location -- VCON is outside the CSECT while ACON is inside.
Aardhya D
Registered Member
Posts: 10
Joined: Wed Feb 26, 2014 12:01 pm

Re: Assembler - SCON.

Post by Aardhya D »

Thanks for the great and simple explnation Robert. :)
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “Assembler & PL/I.”