RE: Cross-assembler : HLASM --> 8086



The code is 'pure' HLASM (number-crunching, not accessing any
MVS services), so it shouldn't need to handle many
environment issues (other than passing parameters in, and
getting the response out).
Another possibility is to modify your source code so that each
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
.



Relevant Pages

  • Re: Does Ent. COBOL 4.1 generate 64-bit binary arithmetic instructions?
    ... would result from generating 64-bit grande arithmetic instructions? ... I am not speaking for IBM. ... For IBM-MAIN subscribe / signoff / archive access instructions, ... send email to listserv@xxxxxxxxxxx with the message: GET IBM-MAIN INFO ...
    (bit.listserv.ibm-main)
  • Re: z10 and overlapping/destructive moves
    ... If the subroutine is invoked multiple times per input record, ... For IBM-MAIN subscribe / signoff / archive access instructions, ... send email to listserv@xxxxxxxxxxx with the message: GET IBM-MAIN INFO ...
    (bit.listserv.ibm-main)
  • Re: Assembler question
    ... We don't have to care, ... For IBM-MAIN subscribe / signoff / archive access instructions, ... send email to listserv@xxxxxxxxxxx with the message: GET IBM-MAIN INFO ...
    (bit.listserv.ibm-main)
  • Re: Synchronizing TOD between mainframe and other platforms
    ... Then you need to follow the instructions at the bottom of every email! ... and erase or destroy the material. ... For IBM-MAIN subscribe / signoff / archive access instructions, ... send email to listserv@xxxxxxxxxxx with the message: GET IBM-MAIN INFO ...
    (bit.listserv.ibm-main)
  • Does Ent. COBOL 4.1 generate 64-bit binary arithmetic instructions?
    ... generate "grande" arithmetic instructions for COBOL binary fields (e.g. ... message is not the intended recipient or an authorized representative of the ... For IBM-MAIN subscribe / signoff / archive access instructions, ... send email to listserv@xxxxxxxxxxx with the message: GET IBM-MAIN INFO ...
    (bit.listserv.ibm-main)