atrans(1) — Series 300/400 Only
NAME
atrans − translate assembly language
SYNOPSIS
atrans [-n] [filename]
DESCRIPTION
atrans translates an assembly language source file from Series 300/400 Pascal workstation assembly language syntax to Series 300/400 HP-UX assembly language syntax. If no filename is given, input is assumed to come from standard input.
If an opcode is not recognized, the entire line is passed through unchanged. For any syntax error detected such that a line cannot be translated, atrans issues an error message.
Lines longer than 132 characters are truncated to 132 characters.
Absolute displacements off the program counter cannot be guaranteed to translate correctly. Any line referencing the program counter will be flagged by a warning message.
The HP-UX assembler restricts expressions involving forward references for which atrans makes no check. Such references may involve only a single symbol, a symbol plus or minus an absolute expression, or the subtraction of two symbols.
The characters $ and @ are not accepted as valid identifier characters by the HP-UX assembler. These are translated to S and A respectively, and a warning is issued.
Lines containing the following list of Series 300/400 Pascal workstation pseudo-ops have no parallel in Series 300/400 HP-UX syntax and are translated as comment lines: decimal, end, llen, list, lprint, nolist, noobj, nosyms, page, spc, sprint, ttl.
Lines containing mname, include, or src pseudo-ops are translated as comment lines, and a warning is printed stating these are not supported by the Series 300/400 HP-UX assembler.
The pseudo-ops, def, refa, and refr, are translated as global.
Certain pseudo-ops require manual intervention to translate. Each line containing these pseudo-ops causes a message to be printed stating that an error will be generated by the Series 300/400 HP-UX assembler. These pseudo-ops are: com, lmode, org, rorg, rmode, smode, start.
When specifying certain addressing modes, the Pascal workstation assembler may allow operands to appear out of order, whereas the HP-UX assembler does not. atrans does not rearrange these into proper order.
The -n option converts groups of two or more spaces to tabs.
SEE ALSO
Hewlett-Packard Company — HP-UX Release 9.0: August 1992