Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!usc!snorkelwacker.mit.edu!ai-lab!rice-chex!bson From: bson@rice-chex.ai.mit.edu (Jan Brittenson) Newsgroups: comp.sys.handhelds Subject: Re: assembly wierdness Message-ID: <12051@life.ai.mit.edu> Date: 27 Nov 90 19:33:32 GMT References: <9811@jarthur.Claremont.EDU> Sender: news@ai.mit.edu Organization: nil Lines: 26 In article <9811@jarthur.Claremont.EDU> bgribble@jarthur.claremont.edu (Bill Gribble) writes: > push_r0_short=#06537 >push_short1: > clr.w a > inc.a a > move.w a,r0 > call.a push_r0_short > ret This isn't going to do what you're expecting. The routine at #6537 expects you to have previously saved the registers with a call to #679b. Change it to: push_r0_short=#6537 save_regs=#679b push_short1: clr.w a inc.a a move.w a,r0 call.a save_regs call.a push_r0_short ret