GENERAL DESCRIPTION
The ASM51C® translator is a software tool that will convert existing ASM51 programs to "C". The powerful ASM51C® translator acceptsASM51 programs, checks their syntax and outputs C code. The comments are moved transparently from the source file to the target file. Any built-in functions for math, string manipulation and I/O in ASM51 are converted to calls to external procedures (Get free sample translation) .
The ASM51C® translator contains a syntax analyzer, an ASM51 to tertiary converter, and a tertiary to "C converter. The syntax analyzer scans the ASM51 input file for syntactic errors and generates a listing file of the ASM51 program. Any syntactic errors will be flagged with detailed English messages in the listing file. If no errors are encountered, the ASM51 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 ASM51 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 ASM51 program.
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.
ASM51 OPERATORS:
AND EQ GE GT HIGH LE LOW LT MOD NE NOT OR SHL SHR XOR
ASM51 OPCODES:
ACALL ADD ADDC AJMP ANL CJNE CLR CPL DEC DIV DJNZ INC JB JBC JC JMP JNB JNC JNZ JZ LCALL LJMP MOV MOVC MOVX MUL NOP ORL POP PUSH RET RETI RL RLC RR RRC SETB SJMP SUBB SWAP XCH XCHD XRL
ASM51 DIRECTIVES:
BIT BDSEG CODE CSEG DATA DB DBIT DS DSET DW END EQU EXTRN IDATA ISEG NAME ORG PUBLIC RSEG SEGMENT SET USING XDATA XSEG
REGISTERS: A AB B C DPH DPL DPTR PSW PC SP
ASM51 Variants Currently Supported:
DS5000,DS80C320
80C152JA/JB/JC/JD, 83C152JA/JC, 80C157
80C154, 83C154, 85C154
8044, 8344, 8744
80C451, 83C451, 87C451
80C452, 83C452, 87C452
8051, 8031, 8751, 80C51, 80C31, 87C51
80512, 80532
80515, 80535, 80C535, 80C515
80C517, 80C537
80C51FA, 83C51FA, 87C51FA, 83C51FB, 87C51FB, 83C51FC, 87C51FC
8052, 8032, 8752
80C321, 80C521, 87C521, 80C541, 87C541
8053, 9761, 8753
80410,80451,80452
80515,80517
80C552, 83C552, 87C552
80C652, 83C652, 87C652
83C654, 87C654
83C751, 87C751
83C752, 87C752
80575,80576,
80C851, 83C851
|