Reset in assembly
steprog
Posts: 227
Hi Guys,
I was looking for a reset command in assembly and much to my surprise I didn't find one.· Isn't there a way to reset the processor with a command?
Thanks,
Greg
I was looking for a reset command in assembly and much to my surprise I didn't find one.· Isn't there a way to reset the processor with a command?
Thanks,
Greg
Comments
Interesting if not a bit cryptic. It looks like a long definition instead of an assembly instruction but I will give it a try
Thanks,
Greg
Greg
This takes two longs because you need one for the instruction and one for the location the destination field in the instruction addresses to get the mode field.
From the manual:
CLKSET Mode
• Mode (d-field) is the register containing the 8-bit pattern to write to the CLK register.
So we see kuroneko is now trying squeeze this to one long by using the clkset instruction itself as it's own destination register with the reset bit (bit 7) set in the source field of the instruction.
Compiles OK for me using the BST Propeller tool.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
For me, the past is not over yet.
Post Edited (heater) : 7/26/2010 9:53:13 AM GMT
Greg