View previous topic :: View next topic
|
Author |
Message |
prakashg
New User
Joined: 17 Jun 2010 Posts: 2 Location: chennai
|
|
|
|
hi i have a doubt in LTORG. when we are going to use LTORG and what is the need to use |
|
Back to top |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
Use the LTORG instruction so that the assembler can collect and assemble literals into a literal pool. A literal pool contains the literals you specify in a source module either after the preceding LTORG instruction, or after the beginning of the source module.
The creation of a literal pool gives the following advantages:
•Automatic organization of the literal data into sections that are correctly aligned and arranged so that minimal space is wasted in the literal pool.
•Assembling of duplicate data into the same area.
•Because all literals are cross-referenced, you can find the literal constant in the pool into which it has been assembled. |
|
Back to top |
|
|
ursanthu21 Currently Banned New User
Joined: 18 Jun 2010 Posts: 2 Location: chennai
|
|
|
|
hi perter will you please explain with the example. |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
Hi Peter,
I am an unconscionable lazy sh*t,
who has no interest in exerting any effort on my part,
to read manuals, technical papers, or even to just think about what I have just read.
So, could you please spoon-feed me information on the following subjects,
because it is so much easier for you
to figure out how to make me understand the subject,
instead of me exerting any effort to learn, understand or even
take any responsibility for my life.
have a good weekend. |
|
Back to top |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
Quote: |
I am an unconscionable lazy sh*t,
who has no interest in exerting any effort on my part,
to read manuals, technical papers, or even to just think about what I have just read.
So, could you please spoon-feed me information on the following subjects,
because it is so much easier for you
to figure out how to make me understand the subject,
instead of me exerting any effort to learn, understand or even
take any responsibility for my life.
|
Nothing new for me there, Dick.
And a great weekend for you too. |
|
Back to top |
|
|
mkreutzian
New User
Joined: 26 Jan 2007 Posts: 3 Location: Iowa
|
|
|
|
The primary reason I use the LTORG is to relocate the Literal pool to within the base register when I am using massive tables in my programs. |
|
Back to top |
|
|
|