Path: utzoo!utgpu!water!watmath!clyde!bellcore!decvax!decwrl!hplabs!hpcea!hpnmd!hpsrla!hpmwtla!jeffa From: jeffa@hpmwtla.HP.COM (Jeff Aguilera) Newsgroups: comp.sys.hp Subject: Re: Sun as vs. HPUX as Message-ID: <2620002@hpmwtla.HP.COM> Date: 16 Jan 88 00:56:56 GMT References: <822@ucdavis.ucdavis.edu> Organization: HP MicroWave Technology - Santa Rosa,CA Lines: 29 I use HP-UX 5.5, so take this with a grain of salt. Under 5.5, there is a utility called atrans that converts from the regular Series/200 format (the one published by Motorola) to HP-UX format. If this doesn't exist, or doesn't work, then... HP swapped the order of operands in compares: cmpa.l %a0,%a1 ==> cmpa.l %a1,%a0 HP requires that the various fields in the addressing mode be given in a particular order; Motorola specifies that order is unimportant. A helpful manual might be HP-UX Assembler Reference Manual and ADB Tutorial (P/N 98597-90020). Chapter 7 (Address Mode Syntax) and Chapter 8 (Instruction Sets) might be of help. The required order for addressing modes, by the way is ([bd,An],Ri*{scale},od) ([bd,An,Ri*{scale}],od) etc. Note that the scale must come after the index! Good luck!