Exemplo n.º 1
0
        public MainForm()
        {
            InitializeComponent();
            prog           = null;
            B32Memory      = new byte[65536];
            StartAddr      = 0;
            ExecAddr       = 0;
            Register_A     = 0;
            Register_B     = 0;
            Register_D     = 0;
            Register_X     = 0;
            Register_Y     = 0;
            CompareFlag    = 0;
            SpeedMS        = 0;
            ProcessorFlags = 0;

            // Set the code to a simple "Hello world" at start up
            this.assemblyCodeBox.Text = "Start: \r\n LDX #$A000 \r\n LDA #72 \r\n STA ,X \r\n INCX \r\n INCX \r\n LDA #101 \r\n STA ,X \r\n INCX \r\n INCX \r\n LDA #108 \r\n STA ,X \r\n INCX \r\n INCX \r\n LDA #108 \r\n STA ,X \r\n INCX \r\n INCX \r\n LDA #111 \r\n STA ,X \r\n INCX \r\n INCX \r\n LDA #32 \r\n STA ,X \r\n INCX \r\n INCX \r\n LDA #119 \r\n STA ,X \r\n INCX \r\n INCX \r\n LDA #111 \r\n STA ,X \r\n INCX \r\n INCX \r\n LDA #114 \r\n STA ,X \r\n INCX \r\n INCX \r\n LDA #108 \r\n STA ,X \r\n INCX \r\n INCX \r\n LDA #100 \r\n STA ,X \r\n INCX \r\n INCX \r\n End Start";

            // Initialise a memory display window
            memory = new MemoryDisplay();
            // ThreadSetupScreen will initialise the window with the initial memory state
            // (all 0s)
            memory.ThreadSetupScreen();
            memory.Show();

            realTimeNoDelayToolStripMenuItem.Checked = true;
            resumeProgramToolStripMenuItem.Enabled   = false;
            pauseProgramToolStripMenuItem.Enabled    = true;
            UpdateRegisterStatus();
        }
Exemplo n.º 2
0
        public MainForm()
        {
            InitializeComponent();
            prog = null;
            B32Memory = new byte[65536];
            StartAddr = 0;
            ExecAddr = 0;
            Register_A = 0;
            Register_B = 0;
            Register_D = 0;
            Register_X = 0;
            Register_Y = 0;
            CompareFlag = 0;
            SpeedMS = 0;
            ProcessorFlags = 0;

            // Set the code to a simple "Hello world" at start up
            this.assemblyCodeBox.Text = "Start: \r\n LDX #$A000 \r\n LDA #72 \r\n STA ,X \r\n INCX \r\n INCX \r\n LDA #101 \r\n STA ,X \r\n INCX \r\n INCX \r\n LDA #108 \r\n STA ,X \r\n INCX \r\n INCX \r\n LDA #108 \r\n STA ,X \r\n INCX \r\n INCX \r\n LDA #111 \r\n STA ,X \r\n INCX \r\n INCX \r\n LDA #32 \r\n STA ,X \r\n INCX \r\n INCX \r\n LDA #119 \r\n STA ,X \r\n INCX \r\n INCX \r\n LDA #111 \r\n STA ,X \r\n INCX \r\n INCX \r\n LDA #114 \r\n STA ,X \r\n INCX \r\n INCX \r\n LDA #108 \r\n STA ,X \r\n INCX \r\n INCX \r\n LDA #100 \r\n STA ,X \r\n INCX \r\n INCX \r\n End Start";

            // Initialise a memory display window
            memory = new MemoryDisplay();
            // ThreadSetupScreen will initialise the window with the initial memory state
            // (all 0s)
            memory.ThreadSetupScreen();
            memory.Show();

            realTimeNoDelayToolStripMenuItem.Checked = true;
            resumeProgramToolStripMenuItem.Enabled = false;
            pauseProgramToolStripMenuItem.Enabled = true;
            UpdateRegisterStatus();
        }