GENERAL DESCRIPTION
The HLASM390C® translator is a software tool that will convert existing HLASM390 programs to "C". The powerful HLASM390C® translator accepts HLASM390 programs, checks their syntax and outputs C code. The comments are move transparently from the source file to the target file. Any built-in functions for math, string manipulation and I/O in HLASM390 are converted to calls to external procedures (Get free sample translation) .
The HLASM390C® translator contains a syntax analyzer, an HLASM390 to tertiary converter, and a tertiary to "C converter. The syntax analyzer scans the HLASM390 input file for syntactic errors and generates a listing file of the HLASM390 program. Any syntactic errors will be flagged with detailed English messages in the listing file. If no errors are encountered, the HLASM390 input file is converted to tertiary language. Then the tertiary file is checked and, if no errors are detected, it is converted to "C". A command line control is provided to allow translation with errors in the source file. This is helpful when translating code fragments that are not complete programs.
The translation of the HLASM390 source language into an intermediate tertiary language ensures the logical equivalence between the source and target languages. This sophisticated tertiary language, which is common to our entire family of translators, allows complex mapping from source language to the target. The tertiary language is automatically converted to "C" while maintaining the logical equivalence between the output "C" program and the input HLASM390program.
The "C" output file will be generated in
- Compact and portable K&R C
- Standard ANSI C code
as selected by a command line option.
ASM390 Directives:
ACTR AGO AIF ANOP CCW CNOP COM COPY CSECT SCD DC DROP DS DSECT DXD EJECT END ENTRY EQU AR EXTRN GBLA GBLB GBLC ICTL ISEQ LCLA LCLB CLCL LTORG MACRO MEND MEXIT MNOTE OPSYN ORG POP PRINT PUNCH PUSH REPRO SETA SETB SETC SPACE STATE TITLE USING WXTRN
Assembler H Version 2
CCW0 CCW1 LOCTR AMODE RMODE AREAD MHELP MREAD
Operators:
AND DUP EQ GE GT HIGH LE LENGTH LOW LT MASK MOD NE NOT OFFSET OR PR RSEG SHL SHORT SHR SIZE THIS TYPE DTYPE WIDTH XOR
ASM390 Instructions Supported:
General Instructions
AR A AH ALR AL NR N NC NI BALR BAL BASR BAS BCR BC BCTR BCT BXH BXLE CR C CS CDS CH CLR CL CLC CLI CLM CLCL CVB CVD DR D XR X C XI EX IC ICM LR L LA LTR LCR LH LM LNR LPR MC MVC MVI MVCIN MVCL MVN MVO MVZ MR M MH OR O OC OI PACK SPM SLDA SLDL SLA SLL SRDA SRDL SRA SRL ST STC STCM STCK STH STM SR S SH SLR SL SVC TS TM TR TRT UNPK
Control Instructions
CONCS DISCS EPAR ESAR IAC IPK ISK ISKE IVSK IPTE LASP LCTL LPSW LRA MVCP MVCS MVCK PC PT PTLB RDD RRB RRBE SAC SCK SCKC SPT SPX SPKA SSAR SSK SSKE SSM SIGP STCKC STCTL STAP STIDP STIDC STPT STPX STNSM STOSM TB TPROT WRD SIO SIOF RIO TIO CLRIO HIO HDV TCH CLRCH
Decimal Instructions
AP CP DP ED EDMK MP SRP SP ZAP
Floating Point Instructions
AXR ADR AD AER AE AWR AW AUR AU CDR CD CER CE DDR DD DER DE HDR HER LDR LD LER LE LTDR LTER LCDR LCER LNDR LNER LPDA LPER LADA LRDR LRER MXR MDR MD MXDR MXD MER ME STD STE SXR SDR SD SER SE SWR SW SUR SU
New Instructions
CLRP DEP DCTP MAD MUN STCAP
Extended Mnemonic Instructions
B BR NOP NOPR BH BHR BL BLR BE BER BNH BNHR BNL BNLR BNE BNER BP BPR BM BMR BZ BZR BO BOR BNP BNPR BNM BNMR BNZ BNZR BNO BNOR
Registers
PSW GR0 GR1 GR2 GR4 GR5 GR6 GR7 GR8 GR9 GR10 GR11 GR12 GR13 GR14 GR15 CR0 CR1 CR2 CR3 CR4 CR5 CR6 CR7 CR8 CR9 CR10 CR11 CR12 CR13 CR14 CR15 FPR0 FPR1 FPR2 FPR3
HIgh Level Assembly Langauge(HLASM) Supported:
IF ELSE ENDIF SELECT WHEN ENDSELCT
DO ENDDO FROM INF DOEXIT OTHER INVOKE
PROC EXITIF UNTIL WHILE STRTSRCH ENDSRCH
ENDLOOP
|