Before revision: PBASIC codes can be simply a list of statements: HIGH 1 'turn on LED on pin 1 PAUSE 1000 'pause for one second LOW 1 'turn off LED on pin 1 END 'end program The PBASIC code is stored in the microcontroller EEPROM as Huffman compressed non-byte-aligned variable-length tokens .Scott Edwards, "Exploring the BS1 EEPROM".
After revision: PBASIC codes can be simply a list of statements: HIGH 1 'turn on LED on pin 1 PAUSE 1000 'pause for one second LOW 1 'turn off LED on pin 1 END 'end program If the programmer selects 'Run' from the IDE's menu, the program is tokenized and downloaded to the Basic Stamp through an RS232 or USB cable and stored in the stamp's, and immediately executed EEPROM as Huffman compressed non-byte-aligned variable-length tokens .Scott Edwards, "Exploring the BS1 EEPROM".