GENERAL DESCRIPTION
The ASM68C® translator is a software tool that will convert existing ASM68xx programs to "C". The powerful ASM68C® translator accepts ASM68xx 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 ASM68xx are converted to calls to external procedures (Get free sample translation) .
The ASM68C® translator contains a syntax analyzer, an ASM68xx to tertiary converter, and a tertiary to "C converter. The syntax analyzer scans the ASM68xx input file for syntactic errors and generates a listing file of the ASM68xx program. Any syntactic errors will be flagged with detailed English messages in the listing file. If no errors are encountered, the ASM68xx 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 ASM68xx 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 ASM68xx 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.
ASM68xx DIRECTIVES:
ASCT BSCT BSZ BSZ COMM CSCT DSCT ENDC ENDM EQU FAIL FCB FCC FCC FDB IDNT IFC IFNC IFEQ IFGE IFGT IFLE IFNE MACR OPT ORG PAGE PSCT REG RMB SET SETDP SPC TTL XDEF XREF END
ASM 6800 RESERVED WORDS:
ABA ADCA ADCB ADDA ADDB ANDA ANDB ASL ASLA ASLB ASR ASRA ASRB BCC BCS BEQ BGE BGT BHI BITA BITB BLE BLS BLT BMI BNE BPL BRA BVC BVS BSR CLC CLI CLR CLRA CLRB CLV CMPA CMPB COM COMA COMB CPX DAA DEC DECA DECB DES DEX EORA EORB INC INCA INCB INS JMP JSR LDAA LDAB LDS LDX LSR LSRA LSRB NEG NEGA NEGB NOP ORAA ORAB PUSHA PUSHB PULA PULB ROL ROLA ROLB ROR RORA RORB RTI RTS SBA SBCA SBCB SEC SEI SEV STAA STAB STS STX SUBA SUBB SWI TAB TAP TBA TPA TST TSTA TSTB TSX TXS WAI END
ASM 6801 RESERVED WORDS:
ABA ABX ADCA ADCB ADDA ADDB ADDD ANDA ANDB ASL ASLA ASLB ASLD ASR ASRA ASRB BCC BCS BEQ BGE BGT BHI BHS BITA BITB BLE BLO BLS BLT BMI BNE BPL BRA BRN BVC BVS BSR CLC CLI CLR CLRA CLRB CLV CMPA CMPB COM COMA COMB CPX DAA DEC DECA DECB DES DEX EORA EORB INC INCA INCB INS JMP JSR LDAA LDAB LDS LDX LSR LSRA LSRB LSRD LSL LSLA LSLB LSLD MUL NEG NEGA NEGB NOP ORAA ORAB PUSHA PUSHB PUSHX PULA PULB PULX ROL ROLA ROLB ROR RORA RORB RTI RTS SBA SBCA SBCB SEC SEI SEV STAA STAB STS STX SUBA SUBB SUBD SWI STD TAB TAP TBA TPA TST TSTA TSTB TSX TXS WAI END
ASM 6805 RESERVED WORDS:
ADC ADD AND ASL ASLA ASLX ASR ASRA ASRX BCC BCLR BCS BEQ BHCC BHCS BHI BHS BIH BIL BIT BLO BLS BLT BMC BMI BMS BNE BPL BRA BRCLR BRN BRSET BSET BSR CLC CLI CLR CLRA CLRX CLV CMP CMPB COM COMA COMX CPX DEC DECA DECX DEX EOR INC INCA INCX INX JMP JSR LDA LDX LSL LSLA LSLX LSRA LSRX NEG NEGA NEGX NOP ORA ROL ROLA ROLX ROR RORA RORX RSP RTI RTS SBC SEC SEI STA STOP STX SUB SWI TAX TST TSTA TSTX TXA WAI END
ASM 6809 RESERVED WORDS:
ABA ADCA ADCB ADDA ADDB ADDD ANDA ANDB ANDCC ASL ASLA ASLB ASR ASRA ASRB BCC BCS BEQ BGE BGT BHI BHS BITA BITB BLE BLO BLS BLT BMI BNE BPL BRA BRN BSR BVC BVS BSR CLR CLRA CLRB CMPA CMPB CMPD CMPS CMPU CMPX CMPY COM COMA COMB CWAI DEC DECA DECB EORA EORB EXG INC INCA INCB JMP JSR LBCC LBCS LBEQ LBGE LBGT LBHI LBHS LBLE LBLO LBLS LBLT LBMI LBNE LBPL LBCC LBRA LBRN LBSR LBVC LBVS LDA LDB LDD LDS LDU LDX LDY LEAS LEAU LEAX LEAY LSL LSLA LSLB LSR LSRA LSRB MUL NEG NEGA NEGB NOP ORA ORB ORCC PSHS PSHU PULS PULU ROL ROLA ROLB ROR RORA RORB RTI RTS SBCA SBCB SEX STA STB STD STU STS STX STY SUBA SUBB SUBD SWI SWI2 SWI3 SYNC TFR TST TSTA TSTB END
ASM 6811 RESERVED WORDS:
ABA ABX ABY ADCA ADCB ADDA ADDB ADDD ANDA ANDB ASL ASLA ASLB ASLD ASR ASRA ASRB BCC BCLR BCS BEQ BGE BGT BHI BHS BITA BITB BLE BLO BLS BLT BMI BNE BPL BRA BRN BSR BVC BVS BSR BRCLR BRSET BSET BSR BVC BVS CBA CLC CLI CLR CLRA CLRB CLV CMPA CMPB COM COMA COMB CPD CPX CPY DAA DEC DECA DECB DES DEX DEY EORA EORB FDIV IDIV INC INCA INCB JMP JSR LDAA LDAB LDD LDS LDX LDY LSL LSLA LSLB LSLD LSR LSRA LSRB LSRD MUL NEG NEGA NEGB NOP ORAA ORAB PSHA PSHB PSHX PSHY PULA PULB PULX PULY ROL ROLA ROLB ROR RORA RORB RTI RTS SBA SBCA SBCB SEC SEI SEV STAA STAB STD STOP STS STX STY SUBA SUBB SUBD SWI TAB TAP TBA TEST TPA TST TSTA TSTB TSX TSY TXS TYS WAI XGDX XGDY END
REGISTERS: PC,U,S,Y,X,DP,B,D,A,CC
|