Joined: 16 Jan 2006 Posts: 2483 Location: Queensland
Posted: Sat Mar 15, 2008 3:38 am Post subject: Executing code from RAM
No, you cannot do this in an AVR. The architecture is Harvard, not von Neumann. The program bus and data bus are totally separate systems. That means there is no possible way to execute code in RAM, not even any way to jump into RAM. But of course you can set flags in RAM and execute different bits of code in ROM based on the flags. The Select Case construction does this. So does any If statement. _________________ Adrian Jansen
Computer language is a framework for creativity
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum