Category: Plain

PScript Interpreter

I draftet a specification for a PScript interpreter some time ago and have implemented a minimalistic version. Basically I am down on very small footprints using only 1020 bytes SRAM to execute a decent size script. I actually think I will try implementing this on an Arduino Uno just for fun, it is that small.…

Read the full article

PScript – Part 9 – Streams

Both Ethernet, UART, USART, USB, SPI, I2C, I2S and CAN might be used as a serial 2-way, buffered byte stream. This is an important abstraction as it allow for an easy, uniform usage of byte streams regardless of underlying technology. To support this I create the same interface on all technologies and an object “stream”…

Read the full article

PScript – Part 6 – Datatypes

I have decided on a set of datatypes that I want to support. bit Bit is a 1 bit data variable. Used as a separate variable it will minimum be 8 bits, but used inside a record it get bit packed. uint8 8 bit unsigned integer int8 8 bit signed integer uint16 16 bit unsigned…

Read the full article