GENERAL DESCRIPTION
The SEL2C® translator is a software tool that will convert existing SEL Assembly programs to "C". The powerful SEL2C® translator accepts SEL Assembly 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 SEL Assemblyare converted to calls to external procedures (see sample translation) .
The SEL2C® translator contains a syntax analyzer, an SEL Assembly to tertiary converter, and a tertiary to "C converter. The syntax analyzer scans the SEL Assembly input file for syntactic errors and generates a listing file of the SEL Assembly program. Any syntactic errors will be flagged with detailed English messages in the listing file. If no errors are encountered, the SEL Assembly 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 SEL Assembly 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 SEL Assembly program.
The "C" output file will be generated in Standard ANSI C code.
INSTRUCTIONS (SEL2C®):
ABM ABR ACI ADI ADFD ADFW ADMB ADMD ADMH ADMW ADR ADRFD ADRFW ADRM AFFD AFFW ADT AI ANMB ANMD ANMH ANMW ANR ARMB
ARMD ARMH ARMW BANY BAZ BCF BCT
BEI
BEQ
BFT
BGE
BGT
BIB
BID
BIH
BIW
BL
BLE
BLT
BNE
BN
BNN
BNOV
BNP
BNS
BNZ
BOV
BP
BRI
BS
BU
BZ
CALM
CAMB
CAMD
CAMH
CAMW
CAR
CD
CEA
CEAR
CEMA
CI
CMMB
CMMD
CMMH
CMMW
CMR
DACI
DAE
DAI
DCI
DI
DVFD
DVFW
DVI
DVMB
DVMH
DVMW
DVR
EAE
ECI
ECWCS
EI
EOMB
EOMD
EOMH
EOMW
EOR
EORM
ES
EXM
EXR
EXRR
GRIO
HALT
HIO
JWCS
LA
LB
LCS
LD
LEA
LEAR
LEM
LF
LH
LI
LMAP
LMB
LMD
LMH
LMW
LNB
LND
LNH
LNW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