Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!gatech!bloom-beacon!eru!hagbard!sunic!mcsun!ukc!warwick!covpoly!csg019 From: csg019@cck.cov.ac.uk (-~=Zaphod=~-) Newsgroups: comp.sys.amiga Subject: Re: An Assembler question Message-ID: <1990Dec6.111609.22885@cck.cov.ac.uk> Date: 6 Dec 90 11:16:09 GMT References: <3534@orbit.cts.com> Organization: Coventry Polytechnic, Coventry, UK Lines: 31 In article <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 Messing with sound tracker eh? Try: movem.l a4-a5,-(sp) lea mt_data+$3b7(pc),a4 lea mt_songpos(pc),a5 move.b (a4),(a5) movem.l (sp)+,a4-a5 This will work in devpac, i'm not sure about other assemblers. -- *********/// O O **A member of S.H.I.T. (Super High Intelegence Team)**///*** * /// u Fight, defeat and kill organized laming. /// * * \\\ /// --- Zaphod of Intuition csg019@uk.ac.cov.cck ok? \\\ /// * ****\\X//**********************************************************\\X//******