public void update(final int ch)
      {
        SwingUtilities.invokeLater(new Runnable()
        {
            @Override
            public void run()
              {

                registerPane.GT_t.setText(Integer.toString(backend.NFlagRegister.GT));
                registerPane.E_t.setText(Integer.toString(backend.NFlagRegister.E));
                try
                {
                    registerPane.PC_t.setText(Integer.toString(backend.ScanFile.current_line + 1));
                } catch (Exception e)
                {
                    registerPane.PC_t.setText(Integer.toString(1));

                }
                // registerPane.v_t.setText(Integer.toString(backend.Condition.cpsr.V));
                if (ch == 0)
                {
                    registerPane.r0_t.setText(String.valueOf(backend.Register.r[0].b));
                    registerPane.r1_t.setText(String.valueOf(backend.Register.r[1].b));
                    registerPane.r2_t.setText(String.valueOf(backend.Register.r[2].b));
                    registerPane.r3_t.setText(String.valueOf(backend.Register.r[3].b));
                    registerPane.r4_t.setText(String.valueOf(backend.Register.r[4].b));
                    registerPane.r5_t.setText(String.valueOf(backend.Register.r[5].b));
                    registerPane.r6_t.setText(String.valueOf(backend.Register.r[6].b));
                    registerPane.r7_t.setText(String.valueOf(backend.Register.r[7].b));
                    registerPane.r8_t.setText(String.valueOf(backend.Register.r[8].b));
                    registerPane.r9_t.setText(String.valueOf(backend.Register.r[9].b));
                    registerPane.r10_t.setText(String.valueOf(backend.Register.r[10].b));
                    registerPane.r11_t.setText(String.valueOf(backend.Register.r[11].b));
                    registerPane.r12_t.setText(String.valueOf(backend.Register.r[12].b));
                    registerPane.r13_t.setText(String.valueOf(backend.Register.r[13].b));
                    registerPane.r14_t.setText(String.valueOf(backend.Register.r[14].b));
                    registerPane.r15_t.setText(String.valueOf(backend.Register.r[15].b));

                } else if (ch == 1)
                {
                    registerPane.r0_t.setText(Integer.toBinaryString(backend.Register.r[0].b));
                    registerPane.r1_t.setText(Integer.toBinaryString(backend.Register.r[1].b));
                    registerPane.r2_t.setText(Integer.toBinaryString(backend.Register.r[2].b));
                    registerPane.r3_t.setText(Integer.toBinaryString(backend.Register.r[3].b));
                    registerPane.r4_t.setText(Integer.toBinaryString(backend.Register.r[4].b));
                    registerPane.r5_t.setText(Integer.toBinaryString(backend.Register.r[5].b));
                    registerPane.r6_t.setText(Integer.toBinaryString(backend.Register.r[6].b));
                    registerPane.r7_t.setText(Integer.toBinaryString(backend.Register.r[7].b));
                    registerPane.r8_t.setText(Integer.toBinaryString(backend.Register.r[8].b));
                    registerPane.r9_t.setText(Integer.toBinaryString(backend.Register.r[9].b));
                    registerPane.r10_t.setText(Integer.toBinaryString(backend.Register.r[10].b));
                    registerPane.r11_t.setText(Integer.toBinaryString(backend.Register.r[11].b));
                    registerPane.r12_t.setText(Integer.toBinaryString(backend.Register.r[12].b));
                    registerPane.r13_t.setText(Integer.toBinaryString(backend.Register.r[13].b));
                    registerPane.r14_t.setText(Integer.toBinaryString(backend.Register.r[14].b));
                    registerPane.r15_t.setText(Integer.toBinaryString(backend.Register.r[15].b));

                } else if (ch == 2)
                {
                    registerPane.r0_t.setText(Integer.toHexString(backend.Register.r[0].b));
                    registerPane.r1_t.setText(Integer.toHexString(backend.Register.r[1].b));
                    registerPane.r2_t.setText(Integer.toHexString(backend.Register.r[2].b));
                    registerPane.r3_t.setText(Integer.toHexString(backend.Register.r[3].b));
                    registerPane.r4_t.setText(Integer.toHexString(backend.Register.r[4].b));
                    registerPane.r5_t.setText(Integer.toHexString(backend.Register.r[5].b));
                    registerPane.r6_t.setText(Integer.toHexString(backend.Register.r[6].b));
                    registerPane.r7_t.setText(Integer.toHexString(backend.Register.r[7].b));
                    registerPane.r8_t.setText(Integer.toHexString(backend.Register.r[8].b));
                    registerPane.r9_t.setText(Integer.toHexString(backend.Register.r[9].b));
                    registerPane.r10_t.setText(Integer.toHexString(backend.Register.r[10].b));
                    registerPane.r11_t.setText(Integer.toHexString(backend.Register.r[11].b));
                    registerPane.r12_t.setText(Integer.toHexString(backend.Register.r[12].b));
                    registerPane.r13_t.setText(Integer.toHexString(backend.Register.r[13].b));
                    registerPane.r14_t.setText(Integer.toHexString(backend.Register.r[14].b));
                    registerPane.r15_t.setText(Integer.toHexString(backend.Register.r[16].b));

                } else if (ch == 3)
                {
                    registerPane.r0_t.setText(Integer.toOctalString(backend.Register.r[0].b));
                    registerPane.r1_t.setText(Integer.toOctalString(backend.Register.r[1].b));
                    registerPane.r2_t.setText(Integer.toOctalString(backend.Register.r[2].b));
                    registerPane.r3_t.setText(Integer.toOctalString(backend.Register.r[3].b));
                    registerPane.r4_t.setText(Integer.toOctalString(backend.Register.r[4].b));
                    registerPane.r5_t.setText(Integer.toOctalString(backend.Register.r[5].b));
                    registerPane.r6_t.setText(Integer.toOctalString(backend.Register.r[6].b));
                    registerPane.r7_t.setText(Integer.toOctalString(backend.Register.r[7].b));
                    registerPane.r8_t.setText(Integer.toOctalString(backend.Register.r[8].b));
                    registerPane.r9_t.setText(Integer.toOctalString(backend.Register.r[9].b));
                    registerPane.r10_t.setText(Integer.toOctalString(backend.Register.r[10].b));
                    registerPane.r11_t.setText(Integer.toOctalString(backend.Register.r[11].b));
                    registerPane.r12_t.setText(Integer.toOctalString(backend.Register.r[12].b));
                    registerPane.r13_t.setText(Integer.toOctalString(backend.Register.r[14].b));
                    registerPane.r14_t.setText(Integer.toOctalString(backend.Register.r[15].b));
                    registerPane.r15_t.setText(Integer.toOctalString(backend.Register.r[16].b));
                }
              }
        });
      }