
character_to_print := first printable character -- Start with the 1st printable character in the printer's character set
characters_printed := 0;                        -- We haven't printed anything yet!

-- Infinite loop to continuously print all characters from the printer's character set,
-- inserting line breaks where required
<b><u>repeat</b></u>
{
   <b><u>print</b></u> character_to_print;

   -- Count another character printed;
   -- Check if we now need to insert a line break
   <b><u>increment</b></u> characters_printed;
   <b><u>if</b></u> characters_printed >= max characters per line <b><u>then</b></u>
   {
      <b><u>print</b></u> newline;
      characters_printed := 0 -- Now back at the start of a line
   }

   -- Prepare to print the next character from the character set;
   -- If we've just done the last character, start again at the first
   <b><u>increment</b></u> character_to_print;
   <b><u>if</b></u> character_to_print > last printable character <b><u>then</b></u>
   {
      character_to_print := first printable character 
   }
} <b><u>forever</b></u>