[Prev][Next][Index][Thread]
Re: A92: What the <bleep>?
>
> it runs okay until you press [ON]. how come, when you hit [ON] it sez,
> "iLLEGAL iNSTRUCTION"?
>
> move.l test(pc),$78
This is the only instruction I see a problem with.. First, check to be sure
that $78 is Auto Int 6 (NOT auto int 5, that's the clock). Also, I don't
believe this instruction is assembling the way you want it to. You are telling
it to move the longword AT test(pc) TO $78, rather than what you want which is
the address OF test(pc).
Try this instead:
lea test(pc),A0
move.l A0,$78
Hope that helps..
--Bryan
bcturner@eos.ncsu.edu
References: