GENERAL DESCRIPTION
The ASM68K2C® translator is a software tool that will convert existing ASM68K programs to "C". The powerful ASM68K2C® translator accepts ASM68K 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 ASM68K are converted to calls to external procedures (Get free sample translation) .
The ASM68K2C® translator contains a syntax analyzer, an ASM68K to tertiary converter, and a tertiary to "C converter. The syntax analyzer scans the ASM68K input file for syntactic errors and generates a listing file of the ASM68K program. Any syntactic errors will be flagged with detailed English messages in the listing file. If no errors are encountered, the ASM68K 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 ASM68K 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 ASM68K 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.
Assemblers Supported:
- Motorola ASM68k assembler
- Motrorola HI-ASM assembler
- ASM_ONE assembler
Hisoft Devpac assembler
ASM68K DIRECTIVES: END INCLUDE MASK2 OFFSET ORG SECTION EQU FEQU REG SET COMLINE DC DCB FAIL FOPT FORMAT NOFORMAT LIST NOLIST NOL LLEN NOOBJ OPT PAGE NOPAGE SPC TTL IDNT XDEF XREF
ASM68K RESERVED WORDS:
ABCD ADD ADDA ADDI ADDQ ADDX AND ANDI ASL ASR BCC BCHG BCLR BFCHG BFCLR BFEXTS BFEXTU BFFFO BFINS BFSET BFTST BKPT BRA BSET BSR BTST CALLM CAS CAS2 CHK CHK2 CLR CMP CMPA CMPI CMP2 DBCC DIVS DIVU EOR EORI EXG EXT EXTB EXTW JMP JSR LEA LINK LSL LSR MOVE MOVEA MOVEC MOVEM MOVEP MOVEQ MOVES MULS MULU NBCD NEG NEGX NOP NOT OR ORI PACK PEA RESET ROL ROR ROXL ROXR RTD RTE RTM RTR RTS SCD SCC STOP SUB SUBA SUBI SUBQ SUBX SWAP TAS TCC TDIVS TDIVU TPCC TRAP TRAPV TST UNLK UNPK
REGISTERS: D0 D1 D2 D3 D4 D5 D6 D7 A0 A1 A2 A3 A4 A5 A6 A7 USP SSP PC TS
|