Example #1
0
        public override string ToString()
        {
            var register       = BankRegisterFiles.ContainsKey(address) ? BankRegisterFiles[address] : $"0x{address:X2}";
            var bitDescription = Bits.ContainsKey(register) ? Bits[register][bit] : $"0x{bit:X2}";

            return($"{GetType().Name.ToUpper()} {register}, {bitDescription}");
        }
Example #2
0
        public override string ToString()
        {
            var register            = BankRegisterFiles.ContainsKey(address) ? BankRegisterFiles[address] : $"0x{address:X2}";
            var destinationRegister = Registers.ContainsKey(destination)? Registers[destination] : destination.ToString();

            return($"SWAPF {register}, {destinationRegister}");
        }