please dont rip this site

idea new200911

 

ON 20091109@11:49:00 AM at page:
On a web page you were interested in at:
http://techref.massmind.org/techref/idea/minimalcontroller.htm#40126.4923611111
James Newton[JMN-EFP-786] Says

If the "a" register has been initialized to point to the beginning of a sub thread of bytecode in the EEPROM, and we write "a(b)" the "(" could set a flag, indicating that a subroutine call was being parameterized, then the following byte codes could be loaded into a special parameter call stack as references to the actual memory addresses. The ")" would then push the return address (the current PC), a count of parameters, and load the value of the a register into PC. 
<P>
In the sub thread, references to "a", "b", "c", etc... would point to the values of the parameters on the stack, instead of to the regular memory location for those registers. E.g. in the "a" routine, a reference to "a" would actually end up affecting the value of "b" since the call was started with "a(b)". If the call to "a" had been made with "a(c)" then a reference to "a" would affect "c".
<P>
At the end of the sub thread, the PC would be popped from the stack and the parameter pointers cleared.
<P>
This mixing of letters as registers and as pointers to subroutines is less than ideal, but perhaps better than limiting the number of subroutines that are possible.



file: /techref/idea/new200911.txt, 1KB, , updated: 2009/11/9 11:49, local time: 2009/11/21 01:23,
TOP NEW HELP FIND: 
38.107.191.101:LOG IN
©2009 PLEASE DON'T RIP! DO: LINK / DIGG! / MAKE!

 ©2009 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?
Please DO link to this page! Digg it!
<A HREF="http://piclist.com/techref/idea/new200911.txt"> idea new200911</A>

Did you find what you needed?

 
 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  .