counter, adr string one, dec 1 string, chr h chr e chr l chr l chr o chr r chr l chr d hex a hex 0 // if the current character is zero, halt loopStart, loadi counter skipcond 800 halt // otherwise, output it, increment, and loop output load counter add one store counter jump loopStart