S2.3 simulator

Try to cut-and-paste the following machine code into the input box (a Bubble Sort program of 20 items), then click "show output".
Now the machine is at the last instruction executed. Click "previous" or "next" to step through the execution step-by-step (backward/forward)

0, 115, 15, 30, 0, 2000, 15, 29, 0, 1500, 7, 27, 0, 102, 51, 0, 0, 0, 4, 1, 30, 1, 4, 2, 30, 2, 4, 3, 30, 3, 10, 30, 30, 4, 4, 27, 30, 0, 15, 1, 0, 0, 9, 0, 0, 15, 1, 2, 0, 1020, 33, 3, 2, 1, 4, 3, 1, 1000, 10, 1, 1, 1, 1, 2, 0, 1020, 41, 3, 1, 2, 8, 3, 0, 11, 2, 27, 30, 0, 11, 30, 30, 4, 2, 3, 30, 3, 2, 2, 30, 2, 2, 1, 30, 1, 50, 27, 0, 0, 4, 1, 30, 1, 4, 2, 30, 2, 4, 3, 30, 3, 10, 30, 30, 4, 4, 27, 30, 0, 15, 1, 0, 0, 9, 0, 0, 34, 2, 2, 1, 1000, 51, 2, 0, 1, 10, 1, 1, 1, 1, 2, 0, 1020, 41, 3, 1, 2, 8, 3, 0, 31, 2, 27, 30, 0, 11, 30, 30, 4, 2, 3, 30, 3, 2, 2, 30, 2, 2, 1, 30, 1, 50, 27, 0, 0, 4, 1, 30, 1, 4, 2, 30, 2, 4, 3, 30, 3, 4, 4, 30, 4, 10, 30, 30, 5, 4, 27, 30, 0, 53, 29, 2, 0, 53, 29, 1, 0, 2, 4, 1, 1000, 37, 3, 0, 4, 2, 4, 2, 1000, 4, 4, 1, 1000, 4, 3, 2, 1000, 2, 27, 30, 0, 11, 30, 30, 5, 2, 4, 30, 4, 2, 3, 30, 3, 2, 2, 30, 2, 2, 1, 30, 1, 50, 27, 0, 0, 4, 1, 30, 1, 4, 2, 30, 2, 4, 3, 30, 3, 4, 4, 30, 4, 4, 5, 30, 5, 4, 6, 30, 6, 10, 30, 30, 7, 4, 27, 30, 0, 15, 1, 0, 0, 9, 0, 0, 90, 15, 2, 0, 0, 9, 0, 0, 85, 10, 3, 2, 1, 2, 4, 3, 1000, 2, 5, 2, 1000, 41, 6, 4, 5, 9, 6, 0, 84, 52, 29, 2, 0, 10, 4, 2, 1, 52, 29, 4, 0, 7, 27, 0, 43, 10, 2, 2, 1, 1, 4, 0, 1020, 11, 5, 4, 1, 41, 4, 2, 5, 8, 4, 0, 75, 10, 1, 1, 1, 1, 4, 0, 1020, 41, 5, 1, 4, 8, 5, 0, 73, 2, 27, 30, 0, 11, 30, 30, 7, 2, 6, 30, 6, 2, 5, 30, 5, 2, 4, 30, 4, 2, 3, 30, 3, 2, 2, 30, 2, 2, 1, 30, 1, 50, 27, 0, 0, 4, 1, 30, 1, 10, 30, 30, 2, 4, 27, 30, 0, 15, 1, 0, 20, 3, 1, 0, 1020, 7, 27, 0, 4, 7, 27, 0, 24, 7, 27, 0, 63, 7, 27, 0, 24, 2, 27, 30, 0, 11, 30, 30, 2, 2, 1, 30, 1, 50, 27, 0, 0, 200, 0

Here is the Rz source code of the bubble sort program
Here is the S23 assembly language output from the Rz compiler.  (It must be assembled by the S23 assembler to produce the S23 machine code above)

Input machine code

Output

select:clocks