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
Assembler - SCON.
- Robert Sample
- Global Moderator
- Posts: 1900
- Joined: Fri Jun 28, 2013 1:22 am
- Location: Dubuque Iowa
Re: Assembler - SCON.
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.
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.
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