PDA

View Full Version : Native Assembly Code



Zuddie
04-12-2010, 02:55 PM
Is there a way to program the Basic Stamp, such as a BS2, to run a snippet of native assembly code for the PIC16F57? I'm guessing not because I think all the BASIC code is in the 24LC16B EPROM chip and that the controller interprets what's in the EPROM but never modifies itself (the controller). Is this true?

allanlane5
04-12-2010, 07:51 PM
No. The BS2 PIC16F57 has been programmed to read PBasic tokens out of an attached eeprom and use those tokens to execute pre-programmed assembly code in the PIC. And the PIC was not programmed to allow execution of snippets of assembly stored in the eeprom.

So yes, what you said is true.