Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Executing code from RAM

 
Post new topic   Reply to topic    www.mcselec.com Forum Index -> AVR
View previous topic :: View next topic  
Author Message
AdrianJ

Bascom Expert



Joined: 16 Jan 2006
Posts: 2483
Location: Queensland

australia.gif
PostPosted: Sat Mar 15, 2008 3:38 am    Post subject: Executing code from RAM Reply with quote

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
Back to top
View user's profile Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    www.mcselec.com Forum Index -> AVR All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
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