Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!dali.cs.montana.edu!milton!uw-beaver!ubc-cs!van-bc! From: lphillips@lpami.wimsey.bc.ca (Larry Phillips) Newsgroups: comp.sys.amiga Subject: Re: An Assembler question Message-ID: <2288@lpami.wimsey.bc.ca> Date: 30 Nov 90 08:21:24 GMT Lines: 31 Return-Path: To: van-bc!rnews In <3534@orbit.cts.com>, koleman@pnet51.orb.mn.org (Kurt Koller) writes: >Ok, I have the following line: > >; move.b mt_data+$3b7,mt_songpos > > >And I want to make it a "good, pc-realative" set of instructions. This didn't >work: > > movem.l a5-a6,-(a7) > move.l mt_data(pc),a4 > lea mt_songpos(pc),a5 > move.b -$3b7(a4),(a5) > movem.l (a7)+,a5-a6 > movem.l a5-a6,-(sp) move.l #mt_data(pc),a4 ; ( or... lea mt_data(pc),a4 ) lea mt_songpos(pc),a5 move.b -$3b7(a4),(a5) movem.l (a7)+,a5-a6 -larry -- The only things to survive a nuclear war will be cockroaches and IBM PCs. +-----------------------------------------------------------------------+ | // Larry Phillips | | \X/ lphillips@lpami.wimsey.bc.ca -or- uunet!van-bc!lpami!lphillips | | COMPUSERVE: 76703,4322 -or- 76703.4322@compuserve.com | +-----------------------------------------------------------------------+