Path: utzoo!utgpu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!mips!apple!olivea!tardis!jms From: jms@tardis.Tymnet.COM (Joe Smith) Newsgroups: alt.sources.amiga Subject: Re: Short Hello World Summary: Location 0004 is a long word. Message-ID: <1805@tardis.Tymnet.COM> Date: 6 May 91 05:55:30 GMT References: <1991Apr30.213936.22878@ux1.cso.uiuc.edu> <1991May2.102554.8679@cs.umu.se> <1991May5.011748.11595@zorch.SF-Bay.ORG> Reply-To: jms@tardis.Tymnet.COM (Joe Smith) Organization: BT Tymnet, San Jose, CA Lines: 15 In article mykes@amiga0.SF-Bay.ORG (Mike Schwartz) writes: >Here's the right way, and NO HLL has any automatic anything over this. >It is 12 bytes shorter than the best 'C' equivilent (so far) and is >EXECBASE equ 4 > move.w (EXECBASE).w,a6 > jsr _LVOOpenLibrary(a6) That will never work. You must use "move.l (EXECBASE).w,a6". Otherwise A6 will end up with 0x????07E0 instead of 0x07E007D8. (Execbase is in high memory on an A3000.) -- Joe Smith (408)922-6220 | SMTP: jms@tardis.tymnet.com or jms@gemini.tymnet.com BT Tymnet Tech Services | UUCP: ...!{ames,pyramid}!oliveb!tymix!tardis!jms PO Box 49019, MS-C51 | BIX: smithjoe | CA license plate: "POPJ P," (PDP-10) San Jose, CA 95161-9019 | humorous dislaimer: "My Amiga 3000 speaks for me."