Esempio n. 1
0
        private void OnPeekLabel(string label)
        {
            _lastItem = listBox.SelectedItem as AsmListBoxItem;
            int address = AsmReader.AddressByLabelDictionary()[label];

            // TODO: scrolling bedeutet eigentlich immer: Refresh() afterwards, oder?
            ScrollToAddress(address, ScrollMode.ScrollToCenterOfView);
            listBox.Refresh();
        }
Esempio n. 2
0
 public AsmService()
 {
     _asmReader        = new AsmReader(@"s:\source\repos\Robotron_2084\Disassemblies\Robotron (Apple).asm");
     _addressByLabel   = _asmReader.AddressByLabelDictionary();
     _labelByAddress   = _asmReader.LabelByAddressDictionary();
     _asmLineByAddress = _asmReader.AsmLineByAddressDictionary();
 }