| ??? 12/09/01 13:57 Read: times |
#17454 - RE: ljmp to zero = reset ? - Bryan |
Andy Neil wrote: ------------------------------- <i>"This will then have to add this file and the output assembly file to your project. Make sure you put them in the correct order of translation.</i> In uVision2, you just need to check the 'Generate SRC' and 'Assemble SRC' options for the 'C' source file. uVision will then take care of calling the assembler on the generated SRC - no need to add the SRC, nor worry about where to add it! You could, of course, just code the "SoftReset" routine in assembler in the first place! Agreed, the indirect function call will work as well. If your maintainence programmer is a reasonable C programmer it is probably the preferred method, however the inline assembly is more understandable from the code and is probably the only inline assembly that I ever recommend. But then I really dislike assembly so everyone's opinion will probably be different than mine. :-) Bryan |
| Topic | Author | Date |
| ljmp to zero = reset ? | 01/01/70 00:00 | |
| RE: ljmp to zero = reset ? | 01/01/70 00:00 | |
| RE: ljmp to zero = reset ?-to Jacek Bog | 01/01/70 00:00 | |
| RE: ljmp to zero = reset ?-to Jacek Bog | 01/01/70 00:00 | |
| RE: ljmp to zero = reset ? | 01/01/70 00:00 | |
| RE: ljmp to zero = reset ? | 01/01/70 00:00 | |
| RE: ljmp to zero = reset ? | 01/01/70 00:00 | |
| RE: ljmp to zero = reset ?-to Jacek Bog | 01/01/70 00:00 | |
| RE: ljmp to zero = reset ?-to Jacek Bog | 01/01/70 00:00 | |
| RE: ljmp to zero = reset ? | 01/01/70 00:00 | |
| RE: ljmp to zero = reset ? - Bryan | 01/01/70 00:00 | |
| RE: ljmp to zero = reset ? - Bryan | 01/01/70 00:00 | |
| RE: ljmp to zero = reset ? - Bryan | 01/01/70 00:00 | |
| RE: ljmp to zero = reset ? | 01/01/70 00:00 | |
RE: ljmp to zero = reset ? | 01/01/70 00:00 |



