Path: utzoo!utgpu!water!watmath!clyde!rutgers!cmcl2!nrl-cmf!ames!pasteur!ucbvax!hplabs!hpcea!hpfcdc!hpfclq!kah From: kah@hpfclq.HP.COM (Kathy Harris) Newsgroups: comp.sys.hp Subject: Re: Sun as vs. HPUX as Message-ID: <4260005@hpfclq.HP.COM> Date: 19 Jan 88 17:47:26 GMT References: <822@ucdavis.ucdavis.edu> Organization: Hewlett-Packard Lines: 34 / hpfclq:comp.sys.hp / windley@iris (Phil Windley) / 3:35 pm Jan 13, 1988 / >I'm trying to port a program from a Sun to an HP9000/200 running HPUX >5.1. Everything is going ok except for a small assembly language If you are going to be doing work with assembly code and envision doing any upgrades to a later version of HP-UX you should upgrade first. In release 5.15, HP released 68020/68881 compilers, and we also at that time released a new assembler. That assembler was designed to have a UNIX(*)-like assembler syntax. The translator tools and assembly manual referenced in previous responses to your note are for the 5.15 and after assembler. The 5.1 system predates the 68020 and 68881. There is no support for the addressing modes of the 68020 or for the 68881. The note about reversed "cmp" arguments applies to the 5.15 and later assembler -- done to follow what Motorola did with their UNIX(*) version of their assembler. In the 5.1 system, you have an "as" with the old/obsoleted HP-UX assembly syntax, and a translator atrans(1) from the HP Pascal Workstation format to 5.1 HPUX format. In the 5.15 system, there is "as" with the new UNIX(*)-like syntax, atrans(1) to translate from HP Pascal Workstation format to 5.15 format and astrns(1) to translate pre-5.15 HP-UX format to the new HPUX format. The HPUX Assembler Manual was written for the 5.15 and later releases. kathy harris hewlett packard hpfcla!kah *UNIX is a TM of AT&T