Embedded HQ9+
Jump to navigation
Jump to search
Embedded HQ9+ is a variant of HQ9+ designed for use on embedded systems. In order to better serve common usecases for embedded devices, such as blinking LEDs, it has its instruction set modified. Here are its commands:
All commands defined as printing something should display it on a screen if available, serial IO otherwise, or via any other form of IO (timed LED blinking?) if even that's not available.
- H: Print "Hello, World"
- Q: Print the program's source code
- 9: Print "99 Bottles of Beer" - since embedded systems may have limited memory, this shorter string should assist in embedded system development
- +: Increment the accumulator
- B: Blink LED (I believe this is the #1 use case for embedded systems)