Numeric Topline

This is an esoteric programming language by User:Zzo38 based on Topline, however Topline also uses the shift (not only the top line), and I could try to make it numeric only, also.

The count and address register are each 32-bits signed numbers, but values stored in addressed memory are 16-bits unsigned numbers.

Instructions:
 * 00 end of a block loop.
 * 01 begins a loop of while the count is odd.
 * 02 begins a loop of while the count is even.
 * 03 begins a loop of while the count is zero.
 * 04 begins a loop of a number of times equal to absolute value of the count at the beginning of the loop.
 * 05 begins a loop of while the count is negative.
 * 07 begins a loop of while the count is positive.
 * 08 begins a loop that runs infinite.
 * 10</tt> prints the count as a numeral.
 * 110nn</tt> makes a system call.
 * 111nn</tt> send a signal to another program. It also sends the value of this count with the signal.
 * 112nn</tt> checks if this program is receiving that signal, if so it will set the count.
 * 113nn</tt> selects the program for send/receive signals with.
 * 16</tt> takes a ASCII character input and alters the count via the polarity.
 * 17</tt> prints the count as a ASCII character.
 * 2n</tt> adds a digit to the end of the program.
 * 3nnnn</tt> defines a label number in the program.
 * 40</tt> skips a number of digits in the program equal to the count (negative count skips backwards). Skipping zero approaches only the next instruction after the digits of this instructions only.
 * 41</tt> set the low bit of the count.
 * 42</tt> clear the low bit of the count.
 * 43</tt> resets the count to zero.
 * 45</tt> set the polarity to negative.
 * 46</tt> toggles the polarity.
 * 47</tt> set the polarity to positive.
 * <tt>49</tt> immediately ends the program, or returns from a subroutine call.
 * <tt>5nnnn</tt> goto a label. If there are multiple labels with this number, it will find the last one in the program.
 * <tt>60</tt> copies the count to the address register.
 * <tt>61</tt> copies the count to a memory address pointed to by the address register.
 * <tt>68</tt> adds four digits to the end of the program, which are the count modulo ten thousand.
 * <tt>69</tt> copies the count modulo ten to a location in the program pointed to by the address register (the first digit in the program is location zero).
 * <tt>7nnnn</tt> gosub to a label. If there are multiple labels with this number, it will find the last one in the program.
 * <tt>80</tt> copies the address register to the count, and clears the extra register to zero.
 * <tt>81</tt> copies the value at the memory address pointed to by the address register to the count.
 * <tt>83</tt> find a label in the program with the number by count, and stores the result of where it is found, in the count. It will point directly to the label position (where the digit "3" is).
 * <tt>89</tt> copies the digit in the location in the program pointed by the address register, to the count.
 * <tt>9nnnn</tt> alters the count via the polarity (adds or subtracts nnnn to/from the count).

Example copies input to output until zero: 474316071743160049