RE: Cross-assembler : HLASM --> 8086
- From: Chris.Craddock@xxxxxxxxxxxx (Craddock, Chris)
- Date: 31 May 2007 07:13:17 -0700
The code is 'pure' HLASM (number-crunching, not accessing anyAnother possibility is to modify your source code so that each
MVS services), so it shouldn't need to handle many
environment issues (other than passing parameters in, and
getting the response out).
instruction begins with a unique character, such as @. Then, create a
series of HLASM macros with those names. The HLASM macro simply uses
PUNCH to create the ia86 assembler output. <<>>
You then create the @L, @AHI, and @ST macros (not included) which will
PUNCH the appropriate ia86 instructions to do something similar.
Actually there's no need to change the source. You can simply use OPSYN
to map the native z instructions to an equivalent set of HLASM macros
and then, as you suggest, use those macros to generate appropriate ia86
or plain x86 instructions.
However, the two machine architectures are wildly different. I suspect
it would turn out to be a fairly challenging problem to create assembler
macros for each of the z architecture instructions that would do
something that is sensibly equivalent on the x86.
CC
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to listserv@xxxxxxxxxxx with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html
.
- References:
- RE: Cross-assembler : HLASM --> 8086
- From: McKown, John
- RE: Cross-assembler : HLASM --> 8086
- Prev by Date: Re: What is 'Program Logical Manuals'?
- Next by Date: Re: What is 'Program Logical Manuals'?
- Previous by thread: Re: Cross-assembler : HLASM --> 8086
- Next by thread: Re: Cross-assembler : HLASM --> 8086
- Index(es):
Relevant Pages
|