|Page 1 of 1|
|Author:||azatri [ Wed May 22, 2019 8:43 am ]|
|Post subject:||CLEAR REGISTERS|
How can I clear all registers at once in the programe?
I am doing a calculator and after doing one operation, I want all the registers clear.
|Author:||RyanFaeScotland [ Wed Jul 17, 2019 3:53 pm ]|
|Post subject:||Re: CLEAR REGISTERS|
You can do
MOVE.L #$00FF0000, A0 * Point A0 to FF0000
MOVE.L #$00000000, (A0) * Set it to 0
MOVEM.L (A0), D0-D7/A0-A6 * Move it into all the registers, except A7
Doesn't clear status registers though but I'm guessing this isn't your aim.
|Page 1 of 1||All times are UTC|
|Powered by phpBB® Forum Software © phpBB Group