Этот сайт использует файлы cookies. Продолжая просмотр страниц сайта, вы соглашаетесь с использованием файлов cookies. Если вам нужна дополнительная информация, пожалуйста, посетите страницу Политика файлов Cookie
Subscribe
Прямой эфир
Cryptocurrencies: 8166 / Markets: 114434
Market Cap: $ 2 766 072 159 155 / 24h Vol: $ 117 489 825 481 / BTC Dominance: 58.763434733426%

Н Новости

Программист & LLM: как написать эмулятор ретро-компьютера за четыре вечера. Часть 1, вводная

Тон данной публикации задал товарищ @kiltum в своих статьях, начатых с этой. В самом начале был задан вопрос

может ли ИИ заменить программиста?

А действительно? Сколько вокруг этой темы хайпа, нет ни дня чтобы здесь на ресурсе не появилось 100500 статей на тему нейросетей, LLM, ML и прочего. Пишут много и всякое. Возникло желание проверить лично, насколько решения, предлагаемые ИИ могут быть воплощены в жизнь.

Системы ИИ прочно вошли в нашу жизнь, и да, я тоже ими регулярно пользуюсь. Но мысли программировать с их помощью особо не возникало. Но что если попробовать, поставив при этом задачу из предметной области в которой ты не особо разбираешься? Похожий вопрос ставит и @kiltum, но я хочу попросить автора не ругаться на мою невольную попытку "пообезьянничать". Своей публикацией я лишь хочу подкрепить уже высказанные тезисы, на примере личного опыта. К тому же, старое железо - это всегда интересно, не правда ли? Если так, то добро пожаловать под кат.

1. Исходные данные

Чего хотим? Реализовать архитектуру на базе Z80 - довольно банальная история. Такие системы были популярны в нашей стране (ZX Spectrum, MSX). Сам в школе начинал с Yamaha MSX. К тому же Z80 - довольно таки сложный процессор. Чтобы не тратить время, лучше реализовать что-то попроще, например... MOS 6502. Очень простой процессор - набор команд всего 56 инструкций, вместе со всеми режимами адресации дающий 151 вариант выполнения. Длина инструкций - от одно до трех байт. Данный чип послужил основой для таких систем как Apple I/II, Famicom/NES и... Commodor 64. Вот на последнем я и остановился, в виду не особой распространенности этой системы на постсоветском пространстве.

Существуют ли эмуляторы Commodor 64? Конечно, например VICE. Опенсорцный, кроссплатформенный. Ссылки на репозиторий не даю - я сам не смотрел, из спортивного интереса, желая решить все задачи путем запросов к LLM, чтения документации и собственных раздумий.

Итак, Commodor 64 - домашний компьютер на базе процессора MOS 6510 (модификация MOS 6502, разницу обсудим ниже), с 64 кб оперативной памяти и 20 кб ПЗУ. Как и все 8-битные компьютеры того времени, имел на борту интерпретатор BASIC в качестве OS и и основного средства разработки. Умел, как и ZX Spectrum, читать программы с кассет, для чего в комплекте шел оригинальный магнитофон. Умел запускать программы с ROM-картриджей. Судя по фото ниже, имел он и дисковод на 5,25'', да и всякой периферии к нему выходило не мало, благо машина разошлась по миру тиражом аж в 15 млн. штук.

Пациент в естественной среде обитания
Пациент в естественной среде обитания

Кроме процессора 6510, на борту трудились видеоконтроллер MOS Technology VIC-II и звуковой чип MOS Technology SID, что делало машинку, в купе большим для того времени объемом ОЗУ, достаточно хорошей развлекательной мультимедийной системой. Машина увидела свет в 1982 году, так что он еще и мой ровесник. На этом довольно истории, на ресурсе есть масса статей и о Commodor 64 (далее C64), и о компании его производившей, и о Джеке Трэмеле. За историей отсылаю к википедии и прочим источникам.

Что до LLM, то выбор пал на бесплатные системы, типа Deepseek или Qwen, остановившись на последней, опять таки в целях ее испытания.

Что же касается реализации, то тут выбор для очевидный - C++, как наиболее часто используемый мною язык. И желательно без особенных зависимостей. Без зависимостей, конечно не обойтись, и вопрос их выбора менялся в зависимости от контекста продвижения по задаче. Итак, начнем...

2. Эмуляция ядра MOS 6502: консультируемся с LLM

Первый промпт был предельно прост

эмулятор mos6502 на c++

на что, после немногословного пояснения был выдан следующий код

mos6502.cpp
#include <iostream>
#include <vector>
#include <cstdint>

class MOS6502 {
public:
    // Регистры
    uint8_t A, X, Y, SP, P;
    uint16_t PC;

    // Память (64 КБ)
    std::vector<uint8_t> memory = std::vector<uint8_t>(0x10000, 0);

    // Флаги
    enum {
        C = 0x01, Z = 0x02, I = 0x04, D = 0x08,
        B = 0x10, R = 0x20, V = 0x40, N = 0x80
    };

    MOS6502() {
        reset();
    }

    void reset() {
        PC = read16(0xFFFC);  // Адрес сброса
        SP = 0xFD;
        P = I;
        A = X = Y = 0;
    }

    uint8_t read(uint16_t addr) {
        return memory[addr];
    }

    void write(uint16_t addr, uint8_t value) {
        memory[addr] = value;
    }

    uint16_t read16(uint16_t addr) {
        return read(addr) | (read(addr + 1) << 8);
    }

    void setFlag(uint8_t flag, bool value) {
        if (value) P |= flag; else P &= ~flag;
    }

    bool getFlag(uint8_t flag) {
        return (P & flag) != 0;
    }

    uint8_t fetch() {
        return read(PC++);
    }

    void executeInstruction() {
        uint8_t opcode = fetch();

        switch (opcode) {
            case 0xA9: { // LDA Immediate
                uint8_t value = fetch();
                A = value;
                setFlag(Z, A == 0);
                setFlag(N, A & 0x80);
                break;
            }
            case 0xAD: { // LDA Absolute
                uint16_t addr = read16(PC);
                PC += 2;
                A = read(addr);
                setFlag(Z, A == 0);
                setFlag(N, A & 0x80);
                break;
            }
            case 0x69: { // ADC Immediate
                uint8_t value = fetch();
                uint16_t result = A + value + (getFlag(C) ? 1 : 0);
                setFlag(C, result > 0xFF);
                setFlag(V, (~(A ^ value) & (A ^ result)) & 0x80);
                A = result & 0xFF;
                setFlag(Z, A == 0);
                setFlag(N, A & 0x80);
                break;
            }
            case 0x4C: { // JMP Absolute
                PC = read16(PC);
                break;
            }
            case 0x20: { // JSR
                uint16_t addr = read16(PC);
                PC += 2;
                push16(PC - 1);
                PC = addr;
                break;
            }
            case 0x60: { // RTS
                PC = pop16() + 1;
                break;
            }
            default:
                std::cout << "Unknown opcode: 0x" << std::hex << (int)opcode << "\n";
                exit(1);
        }
    }

    void push(uint8_t value) {
        write(0x0100 + SP, value);
        SP--;
    }

    void push16(uint16_t value) {
        push((value >> 8) & 0xFF);
        push(value & 0xFF);
    }

    uint8_t pop() {
        SP++;
        return read(0x0100 + SP);
    }

    uint16_t pop16() {
        uint8_t low = pop();
        uint8_t high = pop();
        return low | (high << 8);
    }
};

int main() {
    MOS6502 cpu;

    // Пример: загрузить программу в память
    // Программа: LDA #$01; ADC #$02; JMP $8000
    cpu.memory[0x8000] = 0xA9; // LDA #$01
    cpu.memory[0x8001] = 0x01;
    cpu.memory[0x8002] = 0x69; // ADC #$02
    cpu.memory[0x8003] = 0x02;
    cpu.memory[0x8004] = 0x4C; // JMP $8000
    cpu.memory[0x8005] = 0x00;
    cpu.memory[0x8006] = 0x80;

    cpu.PC = 0x8000;

    for (int i = 0; i < 10; i++) {
        cpu.executeInstruction();
        std::cout << "A: " << std::hex << (int)cpu.A << std::endl;
    }

    return 0;
}

Однако, эмулятор процессора из 148 строчек кода (вообще есть полноценные эмуляторы и меньшего размера, написанные на C, но это явно не мой случай...). Не принимая на веру, начинаем анализировать выданное нам решение. Что мы тут видим?

  1. Реализация процессора как отдельного класса

  2. Регистры, как переменные класса соответствующей разрядности, память - как линейный массив байт объемом 64 кб.

  3. Реализация работы с регистрами и флагами, обращения к памяти, работы со стеком

  4. Пример декодирования некоторых инструкций

  5. Демка, с принудительным помещением машинного кода в память и его выполнение, без учета тактовой частоты, числа тактов на команду.

В общем что просили то нам и дали. Не следует думать, что ИИ способен решить за нас задачу. Иногда он недоговаривает или откровенно врет, поэтому первое правило разработчика, решившего использовать ИИ в своей работе - тотальная проверка и анализ выданных результатов.

Ок, начинать конечно нужно с малого, и простейший эмулятор MOS 6502 нас устроит, но хочется большего, поэтому уточняем вопрос, предварительно ознакомившись с выводами нашего помощника и его предложениями, например

Если тебе нужна реализация с поддержкой NES, с полным набором инструкций, или с отладчиком — могу дать более продвинутый пример.

NES, разумеется, нас не интересует а вот это

реализовать точное количество тактов

пригодилось бы. Смотрим ответ на запрос

mos6502_cycles.cpp
#include <iostream>
#include <vector>
#include <cstdint>

class MOS6502 {
public:
    uint8_t A, X, Y, SP, P;
    uint16_t PC;
    int cycles = 0; // Общее количество тактов

    std::vector<uint8_t> memory = std::vector<uint8_t>(0x10000, 0);

    // Флаги
    enum {
        C = 0x01, Z = 0x02, I = 0x04, D = 0x08,
        B = 0x10, R = 0x20, V = 0x40, N = 0x80
    };

    MOS6502() {
        reset();
    }

    void reset() {
        PC = read16(0xFFFC);
        SP = 0xFD;
        P = I;
        A = X = Y = 0;
        cycles = 0;
    }

    uint8_t read(uint16_t addr) {
        cycles++; // Каждое чтение занимает 1 такт
        return memory[addr];
    }

    void write(uint16_t addr, uint8_t value) {
        cycles++; // Каждая запись — 1 такт
        memory[addr] = value;
    }

    uint16_t read16(uint16_t addr) {
        return read(addr) | (read(addr + 1) << 8);
    }

    void setFlag(uint8_t flag, bool value) {
        if (value) P |= flag; else P &= ~flag;
    }

    bool getFlag(uint8_t flag) {
        return (P & flag) != 0;
    }

    uint8_t fetch() {
        return read(PC++);
    }

    // --- Адресация ---
    uint16_t addr_abs = 0;
    uint16_t addr_rel = 0;
    uint8_t fetched = 0;

    uint8_t fetchOperand() {
        fetched = read(addr_abs);
        return fetched;
    }

    // --- Стандартная таблица тактов ---
    static const int cycle_table[256] = {
    //  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
        7, 6, 2, 8, 3, 3, 5, 5, 3, 2, 2, 2, 4, 4, 6, 6, // 0
        2, 5, 2, 8, 4, 4, 6, 6, 2, 4, 2, 7, 4, 4, 7, 7, // 1
        6, 6, 2, 8, 3, 3, 5, 5, 4, 2, 2, 2, 4, 4, 6, 6, // 2
        2, 5, 2, 8, 4, 4, 6, 6, 2, 4, 2, 7, 4, 4, 7, 7, // 3
        6, 6, 2, 8, 3, 3, 5, 5, 3, 2, 2, 2, 3, 4, 6, 6, // 4
        2, 5, 2, 8, 4, 4, 6, 6, 2, 4, 2, 7, 4, 4, 7, 7, // 5
        6, 6, 2, 8, 3, 3, 5, 5, 4, 2, 2, 2, 5, 4, 6, 6, // 6
        2, 5, 2, 8, 4, 4, 6, 6, 2, 4, 2, 7, 4, 4, 7, 7, // 7
        2, 6, 2, 6, 3, 3, 3, 3, 2, 2, 2, 2, 4, 4, 4, 4, // 8
        2, 6, 2, 6, 4, 4, 4, 4, 2, 5, 2, 5, 5, 5, 5, 5, // 9
        2, 6, 2, 6, 3, 3, 3, 3, 2, 2, 2, 2, 4, 4, 4, 4, // A
        2, 5, 2, 5, 4, 4, 4, 4, 2, 4, 2, 4, 4, 4, 4, 4, // B
        2, 6, 2, 8, 3, 3, 5, 5, 2, 2, 2, 2, 4, 4, 6, 6, // C
        2, 5, 2, 8, 4, 4, 6, 6, 2, 4, 2, 7, 4, 4, 7, 7, // D
        2, 6, 2, 8, 3, 3, 5, 5, 2, 2, 2, 2, 4, 4, 6, 6, // E
        2, 5, 2, 8, 4, 4, 6, 6, 2, 4, 2, 7, 4, 4, 7, 7  // F
    };

    int executeInstruction() {
        uint8_t opcode = fetch();
        int base_cycles = cycle_table[opcode];

        switch (opcode) {
            case 0xA9: // LDA Immediate
                addr_abs = PC++;
                A = read(addr_abs);
                setFlag(Z, A == 0);
                setFlag(N, A & 0x80);
                break;
            case 0xAD: // LDA Absolute
                addr_abs = read16(PC);
                PC += 2;
                A = read(addr_abs);
                setFlag(Z, A == 0);
                setFlag(N, A & 0x80);
                break;
            case 0x69: // ADC Immediate
                addr_abs = PC++;
                fetched = read(addr_abs);
                uint16_t temp = A + fetched + (getFlag(C) ? 1 : 0);
                setFlag(C, temp > 0xFF);
                setFlag(V, (~(A ^ fetched) & (A ^ temp)) & 0x80);
                A = temp & 0xFF;
                setFlag(Z, A == 0);
                setFlag(N, A & 0x80);
                break;
            case 0x4C: // JMP Absolute
                PC = read16(PC);
                break;
            case 0x20: // JSR
                addr_abs = read16(PC);
                PC += 2;
                push16(PC - 1);
                PC = addr_abs;
                break;
            case 0x60: // RTS
                PC = pop16() + 1;
                break;
            // Пример с условным переходом (BNE), может быть +1 такт
            case 0xD0: { // BNE
                int8_t offset = (int8_t)fetch();
                addr_rel = PC + offset;
                bool taken = !getFlag(Z);
                if (taken) {
                    cycles++; // +1 если переход
                    if ((PC & 0xFF00) != (addr_rel & 0xFF00)) {
                        cycles++; // +1 если страница пересекается
                    }
                    PC = addr_rel;
                }
                break;
            }
            default:
                std::cout << "Unknown opcode: 0x" << std::hex << (int)opcode << "\n";
                exit(1);
        }

        cycles += base_cycles;
        return base_cycles;
    }

    void push(uint8_t value) {
        write(0x0100 + SP, value);
        SP--;
    }

    void push16(uint16_t value) {
        push((value >> 8) & 0xFF);
        push(value & 0xFF);
    }

    uint8_t pop() {
        SP++;
        return read(0x0100 + SP);
    }

    uint16_t pop16() {
        uint8_t low = pop();
        uint8_t high = pop();
        return low | (high << 8);
    }
};

int main() {
    MOS6502 cpu;

    // Пример программы
    cpu.memory[0x8000] = 0xA9; cpu.memory[0x8001] = 0x01; // LDA #$01
    cpu.memory[0x8002] = 0x69; cpu.memory[0x8003] = 0x02; // ADC #$02
    cpu.memory[0x8004] = 0x4C; cpu.memory[0x8005] = 0x00; cpu.memory[0x8006] = 0x80; // JMP $8000

    cpu.PC = 0x8000;

    for (int i = 0; i < 10; i++) {
        int c = cpu.executeInstruction();
        std::cout << "Cycles: " << cpu.cycles << ", A: " << std::hex << (int)cpu.A << std::endl;
    }

    return 0;
}

Ага, почти такой же пример, но с добавками, а конкретно, теперь каждой инструкции приписано число тактов ее выполнения, которые сведены в массив, с индексацией по коду операции (опкоду)

// --- Стандартная таблица тактов ---
    static const int cycle_table[256] = {
    //  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
        7, 6, 2, 8, 3, 3, 5, 5, 3, 2, 2, 2, 4, 4, 6, 6, // 0
        2, 5, 2, 8, 4, 4, 6, 6, 2, 4, 2, 7, 4, 4, 7, 7, // 1
        6, 6, 2, 8, 3, 3, 5, 5, 4, 2, 2, 2, 4, 4, 6, 6, // 2
        2, 5, 2, 8, 4, 4, 6, 6, 2, 4, 2, 7, 4, 4, 7, 7, // 3
        6, 6, 2, 8, 3, 3, 5, 5, 3, 2, 2, 2, 3, 4, 6, 6, // 4
        2, 5, 2, 8, 4, 4, 6, 6, 2, 4, 2, 7, 4, 4, 7, 7, // 5
        6, 6, 2, 8, 3, 3, 5, 5, 4, 2, 2, 2, 5, 4, 6, 6, // 6
        2, 5, 2, 8, 4, 4, 6, 6, 2, 4, 2, 7, 4, 4, 7, 7, // 7
        2, 6, 2, 6, 3, 3, 3, 3, 2, 2, 2, 2, 4, 4, 4, 4, // 8
        2, 6, 2, 6, 4, 4, 4, 4, 2, 5, 2, 5, 5, 5, 5, 5, // 9
        2, 6, 2, 6, 3, 3, 3, 3, 2, 2, 2, 2, 4, 4, 4, 4, // A
        2, 5, 2, 5, 4, 4, 4, 4, 2, 4, 2, 4, 4, 4, 4, 4, // B
        2, 6, 2, 8, 3, 3, 5, 5, 2, 2, 2, 2, 4, 4, 6, 6, // C
        2, 5, 2, 8, 4, 4, 6, 6, 2, 4, 2, 7, 4, 4, 7, 7, // D
        2, 6, 2, 8, 3, 3, 5, 5, 2, 2, 2, 2, 4, 4, 6, 6, // E
        2, 5, 2, 8, 4, 4, 6, 6, 2, 4, 2, 7, 4, 4, 7, 7  // F
    };

Кроме того, число исполненных тактов учитывается при чтении и записи в память

uint8_t read(uint16_t addr) {
        cycles++; // Каждое чтение занимает 1 такт
        return memory[addr];
    }

    void write(uint16_t addr, uint8_t value) {
        cycles++; // Каждая запись — 1 такт
        memory[addr] = value;
    }

а при декодировании инструкций к ним добавляется число тактов необходимое для конкретной команды. В демо-примере выводится число тактов, потраченных на исполнение программы. Наверное так и должно быть, пока примем на веру.

Не удовлетворившись результатами, идем дальше, задав такой вопрос

все 56 инструкций с точным счётом тактов

на что получаем уже более массивный ответ

mos6502.cpp
#include <iostream>
#include <vector>
#include <cstdint>

class MOS6502 {
public:
    uint8_t A, X, Y, SP, P;
    uint16_t PC;
    int cycles = 0;

    std::vector<uint8_t> memory = std::vector<uint8_t>(0x10000, 0);

    // Флаги
    enum {
        C = 0x01, Z = 0x02, I = 0x04, D = 0x08,
        B = 0x10, R = 0x20, V = 0x40, N = 0x80
    };

    // Вспомогательные переменные для адресации
    uint16_t addr_abs = 0;
    uint16_t addr_rel = 0;
    uint8_t fetched = 0;

    // Таблица базовых тактов
    static const int cycle_table[256] = {
    //  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
        7, 6, 2, 8, 3, 3, 5, 5, 3, 2, 2, 2, 4, 4, 6, 6, // 0
        2, 5, 2, 8, 4, 4, 6, 6, 2, 4, 2, 7, 4, 4, 7, 7, // 1
        6, 6, 2, 8, 3, 3, 5, 5, 4, 2, 2, 2, 4, 4, 6, 6, // 2
        2, 5, 2, 8, 4, 4, 6, 6, 2, 4, 2, 7, 4, 4, 7, 7, // 3
        6, 6, 2, 8, 3, 3, 5, 5, 3, 2, 2, 2, 3, 4, 6, 6, // 4
        2, 5, 2, 8, 4, 4, 6, 6, 2, 4, 2, 7, 4, 4, 7, 7, // 5
        6, 6, 2, 8, 3, 3, 5, 5, 4, 2, 2, 2, 5, 4, 6, 6, // 6
        2, 5, 2, 8, 4, 4, 6, 6, 2, 4, 2, 7, 4, 4, 7, 7, // 7
        2, 6, 2, 6, 3, 3, 3, 3, 2, 2, 2, 2, 4, 4, 4, 4, // 8
        2, 6, 2, 6, 4, 4, 4, 4, 2, 5, 2, 5, 5, 5, 5, 5, // 9
        2, 6, 2, 6, 3, 3, 3, 3, 2, 2, 2, 2, 4, 4, 4, 4, // A
        2, 5, 2, 5, 4, 4, 4, 4, 2, 4, 2, 4, 4, 4, 4, 4, // B
        2, 6, 2, 8, 3, 3, 5, 5, 2, 2, 2, 2, 4, 4, 6, 6, // C
        2, 5, 2, 8, 4, 4, 6, 6, 2, 4, 2, 7, 4, 4, 7, 7, // D
        2, 6, 2, 8, 3, 3, 5, 5, 2, 2, 2, 2, 4, 4, 6, 6, // E
        2, 5, 2, 8, 4, 4, 6, 6, 2, 4, 2, 7, 4, 4, 7, 7  // F
    };

    MOS6502() {
        reset();
    }

    void reset() {
        PC = read16(0xFFFC);
        SP = 0xFD;
        P = I;
        A = X = Y = 0;
        cycles = 0;
    }

    uint8_t read(uint16_t addr) {
        cycles++;
        return memory[addr];
    }

    void write(uint16_t addr, uint8_t value) {
        cycles++;
        memory[addr] = value;
    }

    uint16_t read16(uint16_t addr) {
        return read(addr) | (read(addr + 1) << 8);
    }

    void setFlag(uint8_t flag, bool value) {
        if (value) P |= flag; else P &= ~flag;
    }

    bool getFlag(uint8_t flag) {
        return (P & flag) != 0;
    }

    uint8_t fetch() {
        return read(PC++);
    }

    uint8_t fetchOperand() {
        fetched = read(addr_abs);
        return fetched;
    }

    void writeAddr(uint16_t addr, uint8_t value) {
        write(addr, value);
    }

    // --- Адресация ---
    void addr_immediate() {
        addr_abs = PC++;
    }

    void addr_zero_page() {
        addr_abs = fetch();
    }

    void addr_zero_page_x() {
        addr_abs = (fetch() + X) & 0xFF;
    }

    void addr_zero_page_y() {
        addr_abs = (fetch() + Y) & 0xFF;
    }

    void addr_absolute() {
        addr_abs = read16(PC);
        PC += 2;
    }

    void addr_absolute_x() {
        addr_abs = read16(PC) + X;
        PC += 2;
    }

    void addr_absolute_y() {
        addr_abs = read16(PC) + Y;
        PC += 2;
    }

    void addr_indirect_x() {
        uint16_t ptr = (fetch() + X) & 0xFF;
        addr_abs = read16(ptr);
    }

    void addr_indirect_y() {
        uint16_t ptr = fetch();
        addr_abs = read16(ptr) + Y;
    }

    void addr_relative() {
        addr_rel = fetch();
        if (addr_rel & 0x80) addr_rel |= 0xFF00; // Знаковое расширение
    }

    // --- Инструкции ---
    int ADC() {
        fetchOperand();
        uint16_t temp = A + fetched + (getFlag(C) ? 1 : 0);
        setFlag(C, temp > 0xFF);
        setFlag(V, (~(A ^ fetched) & (A ^ temp)) & 0x80);
        A = temp & 0xFF;
        setFlag(Z, A == 0);
        setFlag(N, A & 0x80);
        return 0;
    }

    int SBC() {
        fetchOperand();
        uint16_t temp = A - fetched - (getFlag(C) ? 0 : 1);
        setFlag(C, temp < 0x100);
        setFlag(V, ((A ^ temp) & (fetched ^ A)) & 0x80);
        A = temp & 0xFF;
        setFlag(Z, A == 0);
        setFlag(N, A & 0x80);
        return 0;
    }

    int AND() {
        fetchOperand();
        A &= fetched;
        setFlag(Z, A == 0);
        setFlag(N, A & 0x80);
        return 0;
    }

    int EOR() {
        fetchOperand();
        A ^= fetched;
        setFlag(Z, A == 0);
        setFlag(N, A & 0x80);
        return 0;
    }

    int ORA() {
        fetchOperand();
        A |= fetched;
        setFlag(Z, A == 0);
        setFlag(N, A & 0x80);
        return 0;
    }

    int CMP() {
        fetchOperand();
        uint16_t temp = A - fetched;
        setFlag(C, A >= fetched);
        setFlag(Z, temp == 0);
        setFlag(N, temp & 0x80);
        return 0;
    }

    int CPX() {
        uint8_t value = read(addr_abs);
        uint16_t temp = X - value;
        setFlag(C, X >= value);
        setFlag(Z, temp == 0);
        setFlag(N, temp & 0x80);
        return 0;
    }

    int CPY() {
        uint8_t value = read(addr_abs);
        uint16_t temp = Y - value;
        setFlag(C, Y >= value);
        setFlag(Z, temp == 0);
        setFlag(N, temp & 0x80);
        return 0;
    }

    int DEC() {
        uint8_t value = read(addr_abs);
        value--;
        writeAddr(addr_abs, value);
        setFlag(Z, value == 0);
        setFlag(N, value & 0x80);
        return 0;
    }

    int DEX() {
        X--;
        setFlag(Z, X == 0);
        setFlag(N, X & 0x80);
        return 0;
    }

    int DEY() {
        Y--;
        setFlag(Z, Y == 0);
        setFlag(N, Y & 0x80);
        return 0;
    }

    int INC() {
        uint8_t value = read(addr_abs);
        value++;
        writeAddr(addr_abs, value);
        setFlag(Z, value == 0);
        setFlag(N, value & 0x80);
        return 0;
    }

    int INX() {
        X++;
        setFlag(Z, X == 0);
        setFlag(N, X & 0x80);
        return 0;
    }

    int INY() {
        Y++;
        setFlag(Z, Y == 0);
        setFlag(N, Y & 0x80);
        return 0;
    }

    int LDA() {
        fetchOperand();
        A = fetched;
        setFlag(Z, A == 0);
        setFlag(N, A & 0x80);
        return 0;
    }

    int LDX() {
        fetchOperand();
        X = fetched;
        setFlag(Z, X == 0);
        setFlag(N, X & 0x80);
        return 0;
    }

    int LDY() {
        fetchOperand();
        Y = fetched;
        setFlag(Z, Y == 0);
        setFlag(N, Y & 0x80);
        return 0;
    }

    int STA() {
        writeAddr(addr_abs, A);
        return 0;
    }

    int STX() {
        writeAddr(addr_abs, X);
        return 0;
    }

    int STY() {
        writeAddr(addr_abs, Y);
        return 0;
    }

    int TAX() {
        X = A;
        setFlag(Z, X == 0);
        setFlag(N, X & 0x80);
        return 0;
    }

    int TAY() {
        Y = A;
        setFlag(Z, Y == 0);
        setFlag(N, Y & 0x80);
        return 0;
    }

    int TSX() {
        X = SP;
        setFlag(Z, X == 0);
        setFlag(N, X & 0x80);
        return 0;
    }

    int TXA() {
        A = X;
        setFlag(Z, A == 0);
        setFlag(N, A & 0x80);
        return 0;
    }

    int TXS() {
        SP = X;
        return 0;
    }

    int TYA() {
        A = Y;
        setFlag(Z, A == 0);
        setFlag(N, A & 0x80);
        return 0;
    }

    int ASL() {
        if (addr_abs == 0) { // Accumulator mode
            setFlag(C, A & 0x80);
            A <<= 1;
            setFlag(Z, A == 0);
            setFlag(N, A & 0x80);
        } else {
            uint8_t value = read(addr_abs);
            setFlag(C, value & 0x80);
            value <<= 1;
            writeAddr(addr_abs, value);
            setFlag(Z, value == 0);
            setFlag(N, value & 0x80);
        }
        return 0;
    }

    int LSR() {
        if (addr_abs == 0) {
            setFlag(C, A & 0x01);
            A >>= 1;
            setFlag(Z, A == 0);
            setFlag(N, 0);
        } else {
            uint8_t value = read(addr_abs);
            setFlag(C, value & 0x01);
            value >>= 1;
            writeAddr(addr_abs, value);
            setFlag(Z, value == 0);
            setFlag(N, 0);
        }
        return 0;
    }

    int ROL() {
        uint16_t temp;
        if (addr_abs == 0) {
            temp = (A << 1) | (getFlag(C) ? 1 : 0);
            setFlag(C, A & 0x80);
            A = temp & 0xFF;
            setFlag(Z, A == 0);
            setFlag(N, A & 0x80);
        } else {
            temp = (read(addr_abs) << 1) | (getFlag(C) ? 1 : 0);
            setFlag(C, fetched & 0x80);
            writeAddr(addr_abs, temp & 0xFF);
            setFlag(Z, (temp & 0xFF) == 0);
            setFlag(N, temp & 0x80);
        }
        return 0;
    }

    int ROR() {
        uint16_t temp;
        if (addr_abs == 0) {
            temp = (A >> 1) | (getFlag(C) ? 0x80 : 0);
            setFlag(C, A & 0x01);
            A = temp & 0xFF;
            setFlag(Z, A == 0);
            setFlag(N, A & 0x80);
        } else {
            temp = (read(addr_abs) >> 1) | (getFlag(C) ? 0x80 : 0);
            setFlag(C, fetched & 0x01);
            writeAddr(addr_abs, temp & 0xFF);
            setFlag(Z, (temp & 0xFF) == 0);
            setFlag(N, temp & 0x80);
        }
        return 0;
    }

    int BIT() {
        fetchOperand();
        uint8_t temp = A & fetched;
        setFlag(Z, temp == 0);
        setFlag(N, fetched & 0x80);
        setFlag(V, fetched & 0x40);
        return 0;
    }

    int PHA() {
        push(A);
        return 0;
    }

    int PHP() {
        push(P | B | R);
        return 0;
    }

    int PLA() {
        A = pop();
        setFlag(Z, A == 0);
        setFlag(N, A & 0x80);
        return 0;
    }

    int PLP() {
        P = pop();
        P &= ~B;
        P &= ~R;
        return 0;
    }

    int BRK() {
        PC++;
        push16(PC);
        push(P | B);
        setFlag(I, true);
        PC = read16(0xFFFE);
        return 0;
    }

    int RTI() {
        P = pop();
        P &= ~B;
        P &= ~R;
        PC = pop16();
        return 0;
    }

    int JSR() {
        uint16_t target = read16(PC);
        PC += 2;
        push16(PC - 1);
        PC = target;
        return 0;
    }

    int RTS() {
        PC = pop16() + 1;
        return 0;
    }

    int JMP() {
        PC = addr_abs;
        return 0;
    }

    int NOP() {
        return 0;
    }

    // --- Основной цикл выполнения инструкции ---
    int executeInstruction() {
        uint8_t opcode = fetch();
        int base_cycles = cycle_table[opcode];
        int additional_cycles = 0;

        // Установить addr_abs или addr_rel в зависимости от инструкции
        switch (opcode) {
            case 0xA9: addr_immediate(); break;
            case 0xA5: addr_zero_page(); break;
            case 0xB5: addr_zero_page_x(); break;
            case 0xAD: addr_absolute(); break;
            case 0xBD: addr_absolute_x(); additional_cycles = ((PC - 1) & 0xFF00) != (addr_abs & 0xFF00) ? 1 : 0; break;
            case 0xB9: addr_absolute_y(); additional_cycles = ((PC - 1) & 0xFF00) != (addr_abs & 0xFF00) ? 1 : 0; break;
            case 0xA1: addr_indirect_x(); break;
            case 0xB1: addr_indirect_y(); additional_cycles = ((PC - 1) & 0xFF00) != (addr_abs & 0xFF00) ? 1 : 0; break;
            case 0x20: JSR(); return base_cycles + additional_cycles;
            case 0x4C: addr_absolute(); JMP(); return base_cycles + additional_cycles;
            case 0x6C: addr_abs = read16(PC); PC += 2; JMP(); return base_cycles + additional_cycles;
            case 0x10: case 0x30: case 0x50: case 0x70:
            case 0x90: case 0xB0: case 0xD0: case 0xF0:
                addr_relative();
                if ((PC & 0xFF00) != (addr_rel & 0xFF00)) additional_cycles = 2;
                else additional_cycles = 1;
                break;
            default:
                // Для остальных инструкций — адресация не нужна
                break;
        }

        switch (opcode) {
            case 0x69: case 0x65: case 0x75: case 0x6D: case 0x7D: case 0x79: case 0x61: case 0x71: ADC(); break;
            case 0xE9: case 0xE5: case 0xF5: case 0xED: case 0xFD: case 0xF9: case 0xE1: case 0xF1: SBC(); break;
            case 0x29: case 0x25: case 0x35: case 0x2D: case 0x3D: case 0x39: case 0x21: case 0x31: AND(); break;
            case 0x49: case 0x45: case 0x55: case 0x4D: case 0x5D: case 0x59: case 0x41: case 0x51: EOR(); break;
            case 0x09: case 0x05: case 0x15: case 0x0D: case 0x1D: case 0x19: case 0x01: case 0x11: ORA(); break;
            case 0xC9: case 0xC5: case 0xD5: case 0xCD: case 0xDD: case 0xD9: case 0xC1: case 0xD1: CMP(); break;
            case 0xE0: case 0xE4: case 0xEC: CPX(); break;
            case 0xC0: case 0xC4: case 0xCC: CPY(); break;
            case 0xC6: case 0xD6: case 0xCE: case 0xDE: DEC(); break;
            case 0xCA: DEX(); break;
            case 0x88: DEY(); break;
            case 0xE6: case 0xF6: case 0xEE: case 0xFE: INC(); break;
            case 0xE8: INX(); break;
            case 0xC8: INY(); break;
            case 0xA9: case 0xA5: case 0xB5: case 0xAD: case 0xBD: case 0xB9: case 0xA1: case 0xB1: LDA(); break;
            case 0xA2: case 0xA6: case 0xB6: case 0xAE: case 0xBE: case 0xA0: case 0xB0: LDX(); break;
            case 0xA0: case 0xA4: case 0xB4: case 0xAC: case 0xBC: LDY(); break;
            case 0x85: case 0x95: case 0x8D: case 0x9D: case 0x99: case 0x81: case 0x91: STA(); break;
            case 0x86: case 0x96: case 0x8E: STX(); break;
            case 0x84: case 0x94: case 0x8C: STY(); break;
            case 0xAA: TAX(); break;
            case 0xA8: TAY(); break;
            case 0xBA: TSX(); break;
            case 0x8A: TXA(); break;
            case 0x9A: TXS(); break;
            case 0x98: TYA(); break;
            case 0x0A: case 0x06: case 0x16: case 0x0E: case 0x1E: ASL(); break;
            case 0x4A: case 0x46: case 0x56: case 0x4E: case 0x5E: LSR(); break;
            case 0x2A: case 0x26: case 0x36: case 0x2E: case 0x3E: ROL(); break;
            case 0x6A: case 0x66: case 0x76: case 0x6E: case 0x7E: ROR(); break;
            case 0x24: case 0x2C: BIT(); break;
            case 0x48: PHA(); break;
            case 0x08: PHP(); break;
            case 0x68: PLA(); break;
            case 0x28: PLP(); break;
            case 0x00: BRK(); break;
            case 0x40: RTI(); break;
            case 0x60: RTS(); break;
            case 0x4C: case 0x6C: break; // Уже обработано выше
            case 0x10: case 0x30: case 0x50: case 0x70:
            case 0x90: case 0xB0: case 0xD0: case 0xF0: {
                bool branch_taken = false;
                switch (opcode) {
                    case 0x10: branch_taken = !getFlag(N); break;
                    case 0x30: branch_taken = !getFlag(V); break;
                    case 0x50: branch_taken = !getFlag(V); break;
                    case 0x70: branch_taken = getFlag(V); break;
                    case 0x90: branch_taken = !getFlag(C); break;
                    case 0xB0: branch_taken = getFlag(C); break;
                    case 0xD0: branch_taken = !getFlag(Z); break;
                    case 0xF0: branch_taken = getFlag(Z); break;
                }
                if (branch_taken) {
                    PC = addr_rel;
                } else {
                    additional_cycles = 0;
                }
                break;
            }
            case 0xEA: NOP(); break;
            default:
                std::cout << "Unknown opcode: 0x" << std::hex << (int)opcode << "\n";
                exit(1);
        }

        cycles += base_cycles + additional_cycles;
        return base_cycles + additional_cycles;
    }

    void push(uint8_t value) {
        write(0x0100 + SP, value);
        SP--;
    }

    void push16(uint16_t value) {
        push((value >> 8) & 0xFF);
        push(value & 0xFF);
    }

    uint8_t pop() {
        SP++;
        return read(0x0100 + SP);
    }

    uint16_t pop16() {
        uint8_t low = pop();
        uint8_t high = pop();
        return low | (high << 8);
    }
};

int main() {
    MOS6502 cpu;

    // Пример программы: LDA #$01; ADC #$02; JMP $8000
    cpu.memory[0x8000] = 0xA9; cpu.memory[0x8001] = 0x01; // LDA #$01
    cpu.memory[0x8002] = 0x69; cpu.memory[0x8003] = 0x02; // ADC #$02
    cpu.memory[0x8004] = 0x4C; cpu.memory[0x8005] = 0x00; cpu.memory[0x8006] = 0x80; // JMP $8000

    cpu.PC = 0x8000;

    for (int i = 0; i < 10; i++) {
        int c = cpu.executeInstruction();
        std::cout << "Cycles: " << cpu.cycles << ", A: 0x" << std::hex << (int)cpu.A << std::endl;
    }

    return 0;
}

Наглая Qwen утверждает, что реализовала все команды процессора, коих 56, а так же 13 режимов адресации. Да, по коду видно, что теперь при декодировании инструкций учитывается режим адресации по опкоду команды, а также, к исполненному числу тактов дается довесок в виде дополнительных тактах при условных переходах. До поры отбросим интерпретацию полученных результатов, а пока дадим еще один запрос

имитация реальной тактовой частоты

по которому был предложен такой вариант основного цикла

#include <thread>

int main() {
    MOS6502 cpu;
    const int TARGET_HZ = 1790000; // ~1.79 MHz для NES
    const double CYCLE_TIME_NS = 1e9 / TARGET_HZ; // Наносекунд на такт

    // Пример программы: LDA #$01; ADC #$02; JMP $8000
    cpu.memory[0x8000] = 0xA9; cpu.memory[0x8001] = 0x01;
    cpu.memory[0x8002] = 0x69; cpu.memory[0x8003] = 0x02;
    cpu.memory[0x8004] = 0x4C; cpu.memory[0x8005] = 0x00; cpu.memory[0x8006] = 0x80;
    cpu.PC = 0x8000;

    int64_t total_emulated_cycles = 0;
    auto start_time = std::chrono::high_resolution_clock::now();

    for (int i = 0; i < 1000000; i++) { // Например, 1 млн инструкций
        int cycles_this_step = cpu.executeInstruction();
        total_emulated_cycles += cycles_this_step;

        double elapsed_time_ns = std::chrono::duration<double, std::nano>(
            std::chrono::high_resolution_clock::now() - start_time
        ).count();

        double target_time_ns = total_emulated_cycles * CYCLE_TIME_NS;

        if (elapsed_time_ns < target_time_ns) {
            std::this_thread::sleep_for(
                std::chrono::nanoseconds((long long)(target_time_ns - elapsed_time_ns))
            );
        }
    }

    std::cout << "Эмуляция завершена. Выполнено " << total_emulated_cycles << " тактов.\n";
    return 0;
}

что в общем-то пойдет, для начала. Соединив все вместе, можно пробовать реализовать свой пример.

3. Реализация тестового эмулятора MOS 6502

Потратив первый вечер, я написал первый вариант проекта, структура которого такова

include/-
        |-main.h
        |-mos6502.h
src/----
        |-main.cpp
        |-mos6502.cpp
CMakeLists.txt

Пока что предельно просто - класс, реализующий работу процессора и главная функция, имитирующая прогон программы

Листинги

mos6502.h
#ifndef     MOS6502_H
#define     MOS6502_H

#include    <vector>
#include    <cstdint>

//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
class MOS6502
{
public:

    MOS6502();

    ~MOS6502(){}

    /// Регистр-аккумулятор
    uint8_t A = 0;
    /// Впомогательный регистр X
    uint8_t X = 0;
    /// Вспомогательный регистр Y
    uint8_t Y = 0;
    /// Регистр указателя стека
    uint8_t SP = 0;
    /// Регистр флагов
    uint8_t P = 0;

    /// Регистр-счетчик команд
    uint16_t PC = 0;

    uint64_t cycles = 0;

    enum
    {
        MEMORY_SIZE = 0x10000
    };

    /// Флаги
    enum
    {
        C = 0x01, /// Перенос
        Z = 0x02, /// Ноль
        I = 0x04, /// Запрет прерываний
        D = 0x08, /// Переводит АЛУ в режим двично-десятичного кода
        B = 0x10, /// Флаг останова
        R = 0x20,
        V = 0x40, /// Переполнение
        N = 0x80  /// Знак
    };


    std::vector<uint8_t> memory = std::vector<uint8_t>(MEMORY_SIZE, 0x00);

    /// Сброс процессора
    void reset();

    /// Читаем байт из памяти по указанному адресу
    uint8_t read(uint16_t addr);

    /// Читаем слово по адресу в памяти
    uint16_t read16(uint16_t addr);

    /// Пишем в память по адресу
    void write(uint16_t addr, uint8_t value);

    /// Установить флаг
    void setFlag(uint8_t flag, bool value);

    /// Прочиать флаг
    bool getFlag(uint8_t flag);

    uint16_t addr_abs = 0;
    uint16_t addr_rel = 0;
    uint8_t fetched = 0;

    uint8_t fetch();

    uint8_t fetchOperand();

    void writeAddr(uint16_t addr, uint8_t value);

    /// 1. Непосредственная адрессация
    void addr_immediate();

    /// 2.
    void addr_zero_page();

    /// 3.
    void addr_zero_page_x();

    /// 4.
    void addr_zero_page_y();

    /// 5.
    void addr_absolute();

    /// 6.
    void addr_absolute_x();

    /// 7.
    void addr_absolute_y();

    /// 8.
    void addr_indirect_x();

    /// 9.
    void addr_indirect_y();

    /// 10.
    void addr_relative();

    /// 11.
    void addr_accumulator();

    // Таблица базовых тактов
    const int cycle_table[256] = {
        //  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
        7, 6, 2, 8, 3, 3, 5, 5, 3, 2, 2, 2, 4, 4, 6, 6, // 0
        2, 5, 2, 8, 4, 4, 6, 6, 2, 4, 2, 7, 4, 4, 7, 7, // 1
        6, 6, 2, 8, 3, 3, 5, 5, 4, 2, 2, 2, 4, 4, 6, 6, // 2
        2, 5, 2, 8, 4, 4, 6, 6, 2, 4, 2, 7, 4, 4, 7, 7, // 3
        6, 6, 2, 8, 3, 3, 5, 5, 3, 2, 2, 2, 3, 4, 6, 6, // 4
        2, 5, 2, 8, 4, 4, 6, 6, 2, 4, 2, 7, 4, 4, 7, 7, // 5
        6, 6, 2, 8, 3, 3, 5, 5, 4, 2, 2, 2, 5, 4, 6, 6, // 6
        2, 5, 2, 8, 4, 4, 6, 6, 2, 4, 2, 7, 4, 4, 7, 7, // 7
        2, 6, 2, 6, 3, 3, 3, 3, 2, 2, 2, 2, 4, 4, 4, 4, // 8
        2, 6, 2, 6, 4, 4, 4, 4, 2, 5, 2, 5, 5, 5, 5, 5, // 9
        2, 6, 2, 6, 3, 3, 3, 3, 2, 2, 2, 2, 4, 4, 4, 4, // A
        2, 5, 2, 5, 4, 4, 4, 4, 2, 4, 2, 4, 4, 4, 4, 4, // B
        2, 6, 2, 8, 3, 3, 5, 5, 2, 2, 2, 2, 4, 4, 6, 6, // C
        2, 5, 2, 8, 4, 4, 6, 6, 2, 4, 2, 7, 4, 4, 7, 7, // D
        2, 6, 2, 8, 3, 3, 5, 5, 2, 2, 2, 2, 4, 4, 6, 6, // E
        2, 5, 2, 8, 4, 4, 6, 6, 2, 4, 2, 7, 4, 4, 7, 7  // F
    };

    /// Сложение с аккумулятором с переносом
    int ADC();

    /// Вычитание из аккумулятора с переносом
    int SBC();

    /// Логичесое битовое "И" с аккумулятором
    int AND();

    /// Исключающее "ИЛИ" с аккумулятором
    int EOR();

    /// "ИЛИ" с аккумулятором
    int ORA();

    /// Сравнение с аккумулятором
    int CMP();

    /// Сравнение с регистром X
    int CPX();

    /// Сравнение с регистром Y
    int CPY();

    /// Декремент значения в памяти
    int DEC();

    /// Декремент регистра X
    int DEX();

    /// Декремент регистра Y
    int DEY();

    /// Инкремент значения в памяти
    int INC();

    /// Инкремент регистра X
    int INX();

    /// Инкремент регистра Y
    int INY();

    /// Загрузка аккумулятора
    int LDA();

    /// Загрузка регистра X
    int LDX();

    /// Загрузка регистра Y
    int LDY();

    /// Сохранить аккумулятор в памяти
    int STA();

    /// Сохранить X в памяти
    int STX();

    /// Сохранить Y в памяти
    int STY();

    /// Перенести значение из аккумулятора в X
    int TAX();

    /// Перенести значение из аккумулятора в Y
    int TAY();

    /// Перенести значение SP в X
    int TSX();

    /// Перенести значение из X в аккумулятор
    int TXA();

    /// Перенести значение из Y в аккумулятор
    int TYA();

    /// Загрузить SP из X
    int TXS();

    /// Арифметический сдвиг влево (аккумулятор или память)
    int ASL();

    /// Логический сдвиг вправо (аккумулятор или память
    int LSR();

    /// Циклический сдвиг влево
    int ROL();

    /// Циклический сдвиг вправо
    int ROR();

    /// Тест битов
    int BIT();

    /// Протолкнуть в стек байт
    void push(uint8_t value);

    /// Протлкнуть в стек слово
    void push16(uint16_t value);

    /// Извлечь из стека байт
    uint8_t pop();

    /// Извлечь из стека слово
    uint16_t pop16();

    /// Протолкнуть в стек аккумулятор
    int PHA();

    /// Протолкнуть в стек флаги
    int PHP();

    /// Извлечь из стека в аккумулятор
    int PLA();

    /// Извлечь из стека флаги
    int PLP();

    /// Инициировать программное прервывание
    int BRK();

    /// Возврат из прерывания
    int RTI();

    /// Вызов подпрограммы
    int JSR();

    /// Возврат из подпрограммы
    int RTS();

    /// Безусловный переход
    int JMP();

    /// Пустая операция
    int NOP();

    /// Цикл выполнения инструкции
    int execInstruction();
};

#endif
mos6502.cpp
#include    <mos6502.h>
#include    <iostream>

//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
MOS6502::MOS6502()
{
    reset();
}

//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
void MOS6502::reset()
{
    PC = read16(0xFFFC);
    SP = 0xFD;
    P = I;
    A = X = Y = 0;
    cycles = 0;
}

//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
uint8_t MOS6502::read(uint16_t addr)
{
    cycles++;
    return memory[addr];
}

//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
uint16_t MOS6502::read16(uint16_t addr)
{
    return read(addr) | (read(addr + 1) << 8);
}

//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
void MOS6502::write(uint16_t addr, uint8_t value)
{
    cycles++;
    memory[addr] = value;
}

//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
void MOS6502::setFlag(uint8_t flag, bool value)
{
    if (value)
        P |= flag;
    else
        P &= ~flag;
}

//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
bool MOS6502::getFlag(uint8_t flag)
{
    return (P & flag) != 0;
}

//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
uint8_t MOS6502::fetch()
{
    return read(PC++);
}

//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
uint8_t MOS6502::fetchOperand()
{
    fetched = read(addr_abs);
    return fetched;
}

//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
void MOS6502::writeAddr(uint16_t addr, uint8_t value)
{
    write(addr, value);
}

//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
void MOS6502::addr_immediate()
{
    // Берем непосредственный операнд, лежащий в памяти сразу за опкодом
    addr_abs = PC++;
}

//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
void MOS6502::addr_zero_page()
{
    addr_abs = fetch();
}

//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
void MOS6502::addr_zero_page_x()
{
    addr_abs = (fetch() + X) & 0xFF;
}

//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
void MOS6502::addr_zero_page_y()
{
    addr_abs = (fetch() + Y) & 0xFF;
}

//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
void MOS6502::addr_absolute()
{
    addr_abs = read16(PC);
    PC += 2;
}

//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
void MOS6502::addr_absolute_x()
{
    addr_abs = read16(PC) + X;
    PC += 2;
}

//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
void MOS6502::addr_absolute_y()
{
    addr_abs = read16(PC) + Y;
    PC += 2;
}

//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
void MOS6502::addr_indirect_x()
{
    uint16_t ptr = (fetch() + X) & 0xFF;
    addr_abs = read16(ptr);
}

//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
void MOS6502::addr_indirect_y()
{
    uint16_t ptr = fetch();
    addr_abs = read16(ptr) + Y;
}

//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
void MOS6502::addr_relative()
{
    addr_rel = fetch();

    if (addr_rel & 0x80)
        addr_rel |= 0xFF00;
}

//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
void MOS6502::addr_accumulator()
{
    addr_abs = 0;
}

//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
int MOS6502::ADC()
{
    fetchOperand();
    uint16_t tmp = A + fetched + (getFlag(C) ? 1 : 0);
    setFlag(C, tmp > 0xFF);
    setFlag(V, (~(A ^ fetched) & (A & tmp)) & 0x80);
    A = tmp & 0xFF;
    setFlag(Z, A ==0);
    setFlag(N, A & 0x80);

    return 0;
}

//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
int MOS6502::SBC()
{
    fetchOperand();
    uint16_t tmp = A - fetched - (getFlag(C) ? 1 : 0);
    setFlag(C, tmp < 0x100);
    setFlag(V, ((A ^ tmp) & (fetched ^ A)) & 0x80);
    A = tmp & 0xFF;
    setFlag(Z, A == 0);
    setFlag(N, A & 0x80);

    return 0;
}

//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
int MOS6502::AND()
{
    fetchOperand();
    A &= fetched;
    setFlag(Z, A == 0);
    setFlag(N, A & 0x80);

    return 0;
}

//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
int MOS6502::EOR()
{
    fetchOperand();
    A ^= fetched;
    setFlag(Z, A == 0);
    setFlag(N, A & 0x80);

    return 0;
}

//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
int MOS6502::ORA()
{
    fetchOperand();
    A |= fetched;
    setFlag(Z, A == 0);
    setFlag(N, A & 0x80);

    return 0;
}

//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
int MOS6502::CMP()
{
    fetchOperand();
    uint16_t tmp = A - fetched;
    setFlag(C, A >= fetched);
    setFlag(Z, tmp == 0);
    setFlag(N, tmp & 0x80);

    return 0;
}

//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
int MOS6502::CPX()
{
    uint8_t value = read(addr_abs);
    uint16_t tmp = X - value;
    setFlag(C, X >= value);
    setFlag(Z, tmp ==0);
    setFlag(N, tmp & 0x80);

    return 0;
}

//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
int MOS6502::CPY()
{
    uint8_t value = read(addr_abs);
    uint16_t tmp = Y - value;
    setFlag(C, Y >= value);
    setFlag(Z, tmp ==0);
    setFlag(N, tmp & 0x80);

    return 0;
}

//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
int MOS6502::DEC()
{
    uint8_t value = read(addr_abs);
    value--;
    writeAddr(addr_abs, value);
    setFlag(Z, value == 0);
    setFlag(N, value & 0x80);

    return 0;
}

//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
int MOS6502::DEX()
{
    X--;
    setFlag(Z, X == 0);
    setFlag(N, X & 0x80);
    return 0;
}

//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
int MOS6502::DEY()
{
    Y--;
    setFlag(Z, Y == 0);
    setFlag(N, Y & 0x80);
    return 0;
}

//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
int MOS6502::INC()
{
    uint8_t value = read(addr_abs);
    value++;
    writeAddr(addr_abs, value);
    setFlag(Z, value == 0);
    setFlag(N, value & 0x80);

    return 0;
}

//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
int MOS6502::INX()
{
    X++;
    setFlag(Z, X == 0);
    setFlag(N, X & 0x80);
    return 0;
}

//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
int MOS6502::INY()
{
    Y++;
    setFlag(Z, Y == 0);
    setFlag(N, Y & 0x80);
    return 0;
}

//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
int MOS6502::LDA()
{
    fetchOperand();
    A = fetched;
    setFlag(Z, A == 0);
    setFlag(N, A & 0x80);
    return 0;
}

//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
int MOS6502::LDX()
{
    fetchOperand();
    X = fetched;
    setFlag(Z, X == 0);
    setFlag(N, X & 0x80);
    return 0;
}

//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
int MOS6502::LDY()
{
    fetchOperand();
    Y = fetched;
    setFlag(Z, Y == 0);
    setFlag(N, Y & 0x80);
    return 0;
}

//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
int MOS6502::STA()
{
    writeAddr(addr_abs, A);
    return 0;
}

//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
int MOS6502::STX()
{
    writeAddr(addr_abs, X);
    return 0;
}

//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
int MOS6502::STY()
{
    writeAddr(addr_abs, Y);
    return 0;
}

//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
int MOS6502::TAX()
{
    X = A;
    setFlag(Z, X == 0);
    setFlag(N, X & 0x80);

    return 0;
}

//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
int MOS6502::TAY()
{
    Y = A;
    setFlag(Z, Y == 0);
    setFlag(N, Y & 0x80);

    return 0;
}

//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
int MOS6502::TSX()
{
    X = SP;
    setFlag(Z, X == 0);
    setFlag(N, X & 0x80);

    return 0;
}

//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
int MOS6502::TXA()
{
    A = X;
    setFlag(Z, A == 0);
    setFlag(N, A & 0x80);

    return 0;
}

//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
int MOS6502::TYA()
{
    A = Y;
    setFlag(Z, A == 0);
    setFlag(N, A & 0x80);

    return 0;
}

//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
int MOS6502::TXS()
{
    SP = X;
    return 0;
}

//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
int MOS6502::ASL()
{
    if (addr_abs == 0)
    {
        setFlag(C, A & 0x80);
        A <<= 1;
        setFlag(Z, A == 0);
        setFlag(N, A & 0x80);
    }
    else
    {
        uint8_t value = read(addr_abs);
        setFlag(C, value & 0x80);
        value <<= 1;
        writeAddr(addr_abs, value);
        setFlag(Z, value == 0);
        setFlag(N, value & 0x80);
    }

    return 0;
}

//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
int MOS6502::LSR()
{
    if (addr_abs == 0)
    {
        setFlag(C, A & 0x01);
        A >>= 1;
        setFlag(Z, A == 0);
        setFlag(N, 0);
    }
    else
    {
        uint8_t value = read(addr_abs);
        setFlag(C, value & 0x01);
        value >>= 1;
        writeAddr(addr_abs, value);
        setFlag(Z, value == 0);
        setFlag(N, 0);
    }

    return 0;
}

//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
int MOS6502::ROL()
{
    uint16_t tmp = 0;
    if (addr_abs == 0)
    {
        tmp = (A << 1) | (getFlag(C) ? 1 : 0);
        setFlag(C, A & 0x80);
        A = tmp & 0xFF;
        setFlag(Z, A == 0);
        setFlag(N, A & 0x80);
    }
    else
    {
        tmp = (read(addr_abs) << 1) | (getFlag(C) ? 1 : 0);
        setFlag(C, fetched & 0x80);
        writeAddr(addr_abs, tmp & 0xFF);
        setFlag(Z, (tmp & 0xFF) == 0);
        setFlag(N, tmp & 0x80);
    }

    return 0;
}

//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
int MOS6502::ROR()
{
    uint16_t tmp = 0;
    if (addr_abs == 0)
    {
        tmp = (A >> 1) | (getFlag(C) ? 0x80 : 0);
        setFlag(C, A & 0x01);
        A = tmp & 0xFF;
        setFlag(Z, A == 0);
        setFlag(N, A & 0x80);
    }
    else
    {
        tmp = (read(addr_abs) >> 1) | (getFlag(C) ? 0x80 : 0);
        setFlag(C, fetched & 0x01);
        writeAddr(addr_abs, tmp & 0xFF);
        setFlag(Z, (tmp & 0xFF) == 0);
        setFlag(N, tmp & 0x80);
    }

    return 0;
}

//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
int MOS6502::BIT()
{
    fetchOperand();
    uint8_t tmp = A & fetched;
    setFlag(Z, tmp == 0);
    setFlag(N, fetched & 0x80);
    setFlag(V, fetched & 0x40);

    return 0;
}

//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
void MOS6502::push(uint8_t value)
{
    write(0x100 + SP, value);
    SP--;
}

//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
void MOS6502::push16(uint16_t value)
{
    push((value >> 8) & 0xFF);
    push(value & 0xFF);
}

//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
uint8_t MOS6502::pop()
{
    SP++;
    return read(0x100 + SP);
}

//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
uint16_t MOS6502::pop16()
{
    uint8_t low = pop();
    uint8_t high = pop();
    return low | (high << 8);
}

//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
int MOS6502::PHA()
{
    push(A);
    return 0;
}

//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
int MOS6502::PHP()
{
    push(P | B | R);
    return 0;
}

//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
int MOS6502::PLA()
{
    A = pop();
    setFlag(Z, A == 0);
    setFlag(N, A & 0x80);
    return 0;
}

//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
int MOS6502::PLP()
{
    P = pop();
    P &= ~B;
    P &= ~R;
    return 0;
}

//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
int MOS6502::BRK()
{
    PC++;
    push16(PC);
    push(P | B);
    setFlag(I, true);
    PC = read16(0xFFFE);
    return 0;
}

//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
int MOS6502::RTI()
{
    P = pop();
    P &= ~B;
    P &= ~R;
    PC = pop16();
    return 0;
}

//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
int MOS6502::JSR()
{
    uint16_t target = read16(PC);
    PC += 2;
    push16(PC - 1);
    PC = target;
    return 0;
}

//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
int MOS6502::RTS()
{
    PC = pop16() + 1;
    return 0;
}

//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
int MOS6502::JMP()
{
    PC = addr_abs;
    return 0;
}

//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
int MOS6502::NOP()
{
    return 0;
}

//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
int MOS6502::execInstruction()
{
    uint8_t opcode = fetch();
    int base_cycles = cycle_table[opcode];
    int additional_cycles = 0;

    switch (opcode)
    {
    // Непосредственная адресация
    case 0xA9: case 0x69: case 0x29: case 0xC9: case 0xE0:
    case 0xC0: case 0x49: case 0xA2: case 0xA0: case 0x09:
    case 0xE9: addr_immediate(); break;

    case 0xA5: case 0x65: case 0x25: addr_zero_page(); break;

    case 0xB5: case 0x75: case 0x35: addr_zero_page_x(); break;

    case 0xAD: case 0x6D: case 0x2D: addr_absolute(); break;

    case 0x0A: case 0x2A: case 0x6A: addr_accumulator(); break;

    case 0xBD: case 0x7D: case 0x3D: addr_absolute_x(); additional_cycles = ((PC-1) & 0xFF00) != (addr_abs & 0xFF00) ? 1 : 0; break;

    case 0xB9: case 0x79: case 0x39: addr_absolute_y(); additional_cycles = ((PC-1) & 0xFF00) != (addr_abs & 0xFF00) ? 1 : 0; break;

    case 0xA1: addr_indirect_x(); break;

    case 0xB1: addr_indirect_y(); additional_cycles = ((PC-1) & 0xFF00) != (addr_abs & 0xFF00) ? 1 : 0; break;

    case 0x20: JSR(); return base_cycles + additional_cycles;

    case 0x4C: addr_absolute(); JMP(); return base_cycles + additional_cycles;

    case 0x6C: addr_abs = read16(PC); PC += 2; JMP(); return base_cycles + additional_cycles;

    case 0x10: case 0x30: case 0x50: case 0x70:
    case 0x90: case 0xB0: case 0xD0: case 0xF0:
        addr_relative();
        if ((PC & 0xFF00) != (addr_rel & 0xFF00)) additional_cycles = 2;
        else additional_cycles = 1;
        break;

    default:

        break;
    }

    switch (opcode)
    {
    case 0x69: case 0x65: case 0x75: case 0x6D: case 0x7D: case 0x79: case 0x61: case 0x71: ADC(); break;
    case 0xE9: case 0xE5: case 0xF5: case 0xED: case 0xFD: case 0xF9: case 0xE1: case 0xF1: SBC(); break;
    case 0x29: case 0x25: case 0x35: case 0x2D: case 0x3D: case 0x39: case 0x21: case 0x31: AND(); break;
    case 0x49: case 0x45: case 0x55: case 0x4D: case 0x5D: case 0x59: case 0x41: case 0x51: EOR(); break;
    case 0x09: case 0x05: case 0x15: case 0x0D: case 0x1D: case 0x19: case 0x01: case 0x11: ORA(); break;
    case 0xC9: case 0xC5: case 0xD5: case 0xCD: case 0xDD: case 0xD9: case 0xC1: case 0xD1: CMP(); break;
    case 0xE0: case 0xE4: case 0xEC: CPX(); break;
    case 0xC0: case 0xC4: case 0xCC: CPY(); break;
    case 0xC6: case 0xD6: case 0xCE: case 0xDE: DEC(); break;
    case 0xCA: DEX(); break;
    case 0x88: DEY(); break;
    case 0xE6: case 0xF6: case 0xEE: case 0xFE: INC(); break;
    case 0xE8: INX(); break;
    case 0xC8: INY(); break;
    case 0xA9: case 0xA5: case 0xB5: case 0xAD: case 0xBD: case 0xB9: case 0xA1: case 0xB1: LDA(); break;
    case 0xA2: case 0xA6: case 0xB6: case 0xAE: case 0xBE: LDX(); break;
    case 0xA0: case 0xA4: case 0xB4: case 0xAC: case 0xBC: LDY(); break;
    case 0x85: case 0x95: case 0x8D: case 0x9D: case 0x99: case 0x81: case 0x91: STA(); break;
    case 0x86: case 0x96: case 0x8E: STX(); break;
    case 0x84: case 0x94: case 0x8C: STY(); break;
    case 0xAA: TAX(); break;
    case 0xA8: TAY(); break;
    case 0xBA: TSX(); break;
    case 0x8A: TXA(); break;
    case 0x9A: TXS(); break;
    case 0x98: TYA(); break;
    case 0x0A: case 0x06: case 0x16: case 0x0E: case 0x1E: ASL(); break;
    case 0x4A: case 0x46: case 0x56: case 0x4E: case 0x5E: LSR(); break;
    case 0x2A: case 0x26: case 0x36: case 0x2E: case 0x3E: ROL(); break;
    case 0x6A: case 0x66: case 0x76: case 0x6E: case 0x7E: ROR(); break;
    case 0x24: case 0x2C: BIT(); break;
    case 0x48: PHA(); break;
    case 0x08: PHP(); break;
    case 0x68: PLA(); break;
    case 0x28: PLP(); break;
    case 0x00: BRK(); break;
    case 0x40: RTI(); break;
    case 0x60: RTS(); break;
    case 0x4C: case 0x6C: break;
    case 0x10: case 0x30: case 0x50: case 0x70:
    case 0x90: case 0xB0: case 0xD0: case 0xF0:
        {
            bool branch_taken = false;
            switch (opcode)
            {
            case 0x10: branch_taken = !getFlag(N); break;
            case 0x30: branch_taken = !getFlag(V); break;
            case 0x50: branch_taken = !getFlag(V); break;
            case 0x70: branch_taken = !getFlag(V); break;
            case 0x90: branch_taken = !getFlag(C); break;
            case 0xB0: branch_taken = !getFlag(C); break;
            case 0xD0: branch_taken = !getFlag(Z); break;
            case 0xF0: branch_taken = !getFlag(Z); break;
            }

            if (branch_taken)
            {
                PC = addr_rel;
            }
            else
            {
                additional_cycles = 0;
            }

            break;
        }

    case 0xEA: NOP(); break;

    default:
        std::cout << "Unknown opcode: 0x" << std::hex << (int) opcode << std::endl;
        exit(1);
    }

    cycles += base_cycles + additional_cycles;
    return base_cycles + additional_cycles;
}

main.h
#ifndef     MAIN_H
#define     MAIN_H

#include    <mos6502.h>
#include    <iostream>

#endif
main.cpp
#include    <main.h>

//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
int main(int argc, char *argv[])
{
    MOS6502 cpu;

    cpu.memory[0x8000] = 0xA9;
    cpu.memory[0x8001] = 0x01;
    cpu.memory[0x8002] = 0x0A;
    cpu.memory[0x8003] = 0x4C;
    cpu.memory[0x8004] = 0x02;
    cpu.memory[0x8005] = 0x80;

    cpu.PC = 0x8000;

    for (int i = 0; i < 10; ++i)
    {
        int c = cpu.execInstruction();
        std::cout << "Cycles: " << cpu.cycles << ", A: 0x" << std::hex << (int) cpu.A << std::endl;
    }

    return 0;
}
CMakeLists.txt
cmake_minimum_required (VERSION 3.29)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

set(TARGET c64)

project(${TARGET})

set(EXECUTABLE_OUTPUT_PATH "../bin")

file(GLOB INCLUDES "./include/*.h")
file(GLOB SOURCES "./src/*.cpp")

add_executable(${TARGET} ${SOURCES} ${INCLUDES})

target_include_directories(${TARGET} PRIVATE ./include/)

Напрямую в память был установлена программа в машинных кодах, имеющая следующий ассемблерный листинг

8000: LDA $01
8002: ASL
8003: JMP $8002

Загружаем аккумулятор непосредственным значением, выполняем арифметический сдвиг влево, безусловно прыгаем снова на команду сдвига. Регистр-счетчик команд ставим принудительно на адрес 0x8000. Все просто. И как вы думаете, заработало оно сразу, по реализации предложенной Qwen? Конечно же нет!

Проблемы начались уже на команде ASL. Qwen предлагает реализовать её с учетом всех возможных способов адрессации

//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
int MOS6502::ASL()
{
    if (addr_abs == 0)
    {
        setFlag(C, A & 0x80);
        A <<= 1;
        setFlag(Z, A == 0);
        setFlag(N, A & 0x80);
    }
    else
    {
        uint8_t value = read(addr_abs);
        setFlag(C, value & 0x80);
        value <<= 1;
        writeAddr(addr_abs, value);
        setFlag(Z, value == 0);
        setFlag(N, value & 0x80);
    }

    return 0;
}

предполагая работу как с аккумулятором, так и с абсолютной адресацией. Но не предусматривает варианта адресации "accumulator", которая описана в спецификации системы команд MOS 6502. Пришлось написать его самостоятельно

//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
void MOS6502::addr_accumulator()
{
    addr_abs = 0;
}

поправив процедуру декодирования с учетом команд работающих с аккумулятором

case 0x0A: case 0x2A: case 0x6A: addr_accumulator(); break;

То есть опкода 0x0A нейронка не предусмотрела, хотя горделиво заявила, что реализовала все 56 инструкций со всеми способами адресации.

После внесения таких исправлений и прогона по шагам, значение в аккумуляторе стало весело удваиваться с каждой итерацией цикла. Заработало! А что же дальше

А дальше - взять описание системы команд 6502 и начать кропотливо проверять каждую из команд во всех вариантах адресации, правя код. Qwen не учла все способы адресации, совершенно неправильно реализовала относительную адресацию, что сделало неработоспособным блок команд ближнего перехода. Короче говоря, глядя в документацию, кропотливо проверялась команда за командой, её реализация, дописывались нереализованные команды. В общем, эмулятор процессора ожил, стал выполнять команды в машинных кодах, непосредственно помещенные в память.

Но ведь в машинных кодах писать неинтересно. По хорошему нам бы освоить хотя бы ассемблер, и загружать скомпилированные программы из фала в память машины с передачей управления. Для начала...

4. Кросс-компиляция и выполнение программ на ассемблере

Для архитектуры 6502 есть кросс-ассемблер, и даже целый компилятор для языка C - это cc65. Это свободный проект, с отличнейшей документацией. Поскольку я работал в линуксе, а конкретно в ArchLinux, я собрал PKGBUILD из репозитория AUR. Все прошло тривиально и не стоит того, чтобы описывать.

Теперь, когда у нас есть компилятор, можно подумать и о модификации проекта - процессор у нас уже есть, пора подумать о том чтобы делать компьютер C64. С помощью Qwen удалось выяснить что:

  1. Формат исполняемых файлов для C64 называется PRG и элементарен по своей структуре - это бинарный файл, первые два байта которого - адрес загрузки программы в память (Little Edian), остальное - голый машинный код и данные.

  2. Предложена процедура загрузки файла (я ж непрограммист, у меня ж жеж лапки). Qwen "выдала гениальное"

// === ЗАГРУЗКА .PRG ===
    void load_prg(const std::string& filename) {
        std::ifstream file(filename, std::ios::binary);
        if (!file.is_open()) {
            std::cerr << "Cannot open file: " << filename << "\n";
            exit(1);
        }

        uint8_t lo, hi;
        file.read((char*)&lo, 1);
        file.read((char*)&hi, 1);
        uint16_t load_addr = lo | (hi << 8);

        std::cout << "Loading PRG to $0x" << std::hex << load_addr << std::endl;

        file.seekg(0, std::ios::beg); // Перейти в начало
        file.seekg(2, std::ios::cur); // Пропустить 2 байта заголовка

        char byte;
        while (file.get(byte)) {
            ram[load_addr++] = static_cast<uint8_t>(byte);
        }

        cpu.PC = load_addr; // Установить PC в конец загрузки
    }

Гениальность в последней, 24 строке. В строках с 9 по 12 мы так старались извлечь адрес загрузки, чтобы затем весело использовать его в качестве счетчика байт, а потом, тем что получилось, загрузить счетчик команд процессора. Круто, круто... Даже без запуска строчка 24 перекочевала на 13-ю строку, как это и должно было быть. Кто там писал, что нейросеть пишет код как "джун"? Да - в точку!

Отбросив иронию идем разбираться дальше - загрузчик кода у нас есть, теперь нужно собрать сам тестовый исполняемый файл. Ок, пишем его

test.asm
        .pc02
        .org $0801

start:
        lda #$01
loop:
        asl
        jmp loop

С помощью той же Qwen удалось выяснить, как это собрать. Надо скомпилировать исходник в объектный файл

$ ca65 test.asm -o test.o

а потом вызвать компоновщик

$ ld65 -C c64-asm.cfg test.o -o test.bin

Стоп, какой-такой c64-asm.cfg? А без него? Нельзя без него, это скрипт линковки, определяющий размещение кода и данных в конечном бинарнике. Хорошо, что нам посоветует ИИ?

c64-asm.cfg
MEMORY {
    ZP:       start = $0002, size = $001A, type = rw, define = yes;  # Область ZP (Zero Page)
    LOADADDR: start = $07FF,  size = $0002, type = ro, define = yes; # Адрес загрузки (2 байта)
    RAM:      start = $0801,  size = $97FE, file = %O, define = yes; # Основная память
}

SEGMENTS {
    LOADADDR: load = LOADADDR, type = ro;
    EXEHDR:   load = RAM,      type = ro,  optional = yes;
    CODE:     load = RAM,      type = ro,  optional = yes;
    RODATA:   load = RAM,      type = ro,  optional = yes;
    DATA:     load = RAM,      type = rw,  optional = yes;
    BSS:      load = RAM,      type = bss, optional = yes, define = yes;
}

Ладно, хоть тут ничего не понятно, кроме того что программа будет загружена по адресу 0x07FF. Попробуем - матернувшись,

ld65: Warning: c64.cfg(19): Segment 'LOADADDR' does not exist

компоновщик выдал двоичный файл следующего содержания

0000000 a9 01 0a 4c 03 08
0000006

и никакого адреса в начале там нет, хм... Ладно, мы не гордые, добавим эти два байта путем магического заклятия

$ echo -ne '\xff\x07' > test.prg
$ cat test.bin >> test.prg

Супер, заветный бинарник получен. И таки да, он запустился! Что же, теперь мы избавлены от мучения писать программы в машинных кодах, у нас есть целый ассемблер. Естественно, тестирование эмулятора процессора было продолжено. А заодно, не без помощи ИИ, найдены концы к автоматической генерации бинарника, что в конечном итоге вылилось в такой пример

test-stack.asm

.segment "LOADADDR"
		.word Start

		.org $0200

.segment "CODE"

Start:
		CLD
		CLI

		LDA #$2A
		PHA
		LDA #$2B
		PHA
		LDA #$2C
		PHA
		LDA #$00
		PLA
		PLA
		PLA
Loop:		
		JMP Loop

.segment "VECTORS"

		.org $FFFA
		.word Start
		.word Start
		.word Start

c64-asm.cfg

MEMORY {
	ZP:			start=$0000, size=$0100, type=rw, define=yes;
	LOADADDR:	start=$01FE, size=$0002, type=ro, define=yes;
	RAM:		start=$0200, size=$0100, type=rw, define=yes;
	ROM:		start=$C000, size=$4000, type=ro, define=yes;	 
}

SEGMENTS {
	ZEROPAGE:	load=ZP, type=zp;
	LOADADDR:	load=LOADADDR, type=ro;
	CODE:		load=RAM, type=ro, define=yes;
	VECTORS:	load=ROM, start=$FFFA, type=ro;
}

Все это собралось, загрузилось и выполнилось, а заодно мы проверили работу и сбаллансированность стека - как видно из примера, мы погрузили туда подряд три байта, а затем извлекли их. То есть, теоретически мы можем исполнять подпрограммы.

Вся эта возня с ассемблером позволила ещё раз проверить реализацию дешифровки команд. В основном это касалось добавления неучтенных опкодов и правку кода, отвечающего за адресацию. Несколько примеров дали хороший результат - эмулятор перестал останавливаться с ошибкой что получен Unknown opcode. Значит настал момент поручить ему нечто более серьезное. Что там у нас с ПЗУ? Что если попробовать скачать оригинальные образы ПЗУ Commodore 64 и отравить их на выполение? Ведь работа нашего компьютера начинается именно со сброса и передаче управления ПЗУ. Как раз работа для второго вечера.

5. Организация памяти Commodore 64

Теперь нас не устроит организация памяти в виде линейного массива байт - нам потребуется целый класс, который будет отвечать за всю аппаратную подсистему управления памятью в C64. Память этого компьютера состоит из:

  • RAM (ОЗУ) объемом 64 кб.

  • BASIC ROM (ПЗУ) объемом 8 кб - там живет интерпретатор бейсика.

  • KERNAL ROM (ПЗУ) объемом 8 кб - там обитает что-то вроде "биоса", системное ПО для инициализации и управления оборудованием на начальном этапе загрузки и предоставляющее программисту функции для реализации системных задач.

  • Character set ROM (ПЗУ) объемом 4 кб - там хранятся растровые шрифты и спецсимвола в двух наборах, каждый по 256 символов.

Все перечисленное - отдельные аппаратные устройства.

Процессор у нас имеет 16-разрядную адресную шину, то есть он непосредственно может адресовать лишь 64 кб, а у нас их 84. Для того чтобы выкрутиться из этой ситуации Commodor 64 содержит еще один системный чип - PLA (Programmable Logic Array), представляющий собой подобие ПЛИС, задача которой - дирижировать доступом процессора к различным областям памяти, вовремя переключая адресную шины на разные чипы. В эту карусель включены так же и

  • VIC - чип видео-контроллера, имеющий 64 байта регистровой памяти

  • SIC - чип аудио-контроллера со своими регистрами

  • CIA1 и CIA2 - чипы контроллеров ввода/вывода, естественно со своим набором регистров

Виртуальные адреса у нас непрерывны от 0x0000 до 0xFFFF. Однако, с помощью PLA, управляемого по сигналам процессора, в это адресное пространство проецируется все вышеперечисленное.

PLA представляет собой микросхему комбинационной логики не имеющую специальных регистров управления. Однако к трем его входам подключен специальный регистр процессора MOS 6510 (и именно это и отличает его от 6502). Переключением банков памяти управляют три младших бита этого регистра.

По умолчанию, адресное пространство распределено следующим образом:

  • 0x0000 - регистр CPU (CPU_REG0) управляющий направлением I/O портов

  • 0x0001 - регистр CPU (CPU_REG1) управляющий переключением банков памяти через PLA (биты 0-2). Старшие биты управляют кассетным магнитофоном

  • 0x0100 - 0x01FF - по-умолчанию здесь расположен стек

  • 0x0200 - 0x03FF - служебная область, выделенная для работы интерпретатора бейсика

  • 0x0400 - 0x07FF - видеопамять

  • 0x0800 - 0x9FFF - область хранения BASIC-программ

  • 0xA000 - 0xBFFF - по-умолчанию сюда проецируется BASIC ROM. Важно понимать, что не копируется, физически, при работе процессора с BASIC ROM эта область памяти остается свободной, а чтение данных происходит из соответствующего ПЗУ. Может быть изменено через регистр CPU_REG1

  • 0xC000 - 0xCFFF - область загрузки программ на машинном языке, то есть бинарников, написанных на ассемблере или C.

  • 0xD000 - 0xD3FF - область регистров чипа VIC-II. Обращение осуществляется к регистровой памяти видео-контроллера

  • 0xD400 - 0xD7FF - область регистров аудио-чипа SID

  • 0xD800 - 0xD8FF - Color memory чипа VIC-II. Содержит цвета символов, выводимых в текстовом режиме, причем от каждого байта этой области используется лишь одна младшая тетрада, то есть в нашем распоряжении аж 16 цветов.

  • 0xDC00 - 0xDE00 - поровну делится регистрами чипов CIA1 и CIA2

  • 0xDF00 - 0xDFFF - область портов ввода/вывода

  • 0xE000 - 0xFFFF - по-умолчанию сюда проецируется KERNAL ROM. Может быть изменено настройкой через регистр CPU_REG1

Кроме того, область памяти 0xD000 - 0xDFFF может быть спроецирована на Character ROM, это также управляется регистром CPU_REG1, но по умолчанию выключено. Состояния памяти, определяемые битами 0-2 выглядят так

  • 0xY00 - ни одна из ROM недоступна. Доступ осуществляется к RAM по соответствующим адресам. Y - означает произвольное состояние старшего бита

  • 0xY01 - нет доступа к BACIS ROM и KERNAL ROM

  • 0xY10 - нет доступа к BASIC ROM

  • 0x0YY - доступ к Character ROM по адресам 0xD000 - 0xDFFF

  • 0x1YY - доступны BACIS ROM и KERNAL ROM, а по адресам 0xD000 - 0xDFFF происходит доступ к портам VIC, SID, CIA и портам ввода/вывода

Много информации можно почерпнуть здесь и тут. Вторая ссылка очень полезна, так как дает базовое представление об архитектуре нашего пациента. А теперь, со всем этим багажем попробуем

6. Реализация подсистемы памяти Commodore 64

Не буду описывать многочисленные варианты, в конце я дам ссылку на репозиторий проекта и по коммитам можно отследить, что я пришел к нижеприведенному коду не сразу. Запуск с ROM произошел намного раньше, к исходу третьего вечера работы, на другой реализации памяти, нежели приведенная ниже. Здесь я "включил" разработчика и самостоятельно реализовал класс Memory интегрировав его с ядром MOS 6502, услужливо написанное для меня Qwen, и терпеливо доработанное мной. Приведу лишь выдержки из кода, главные его моменты.

Чтение и запись байта в память с учетом работы PLA

memory.cpp

//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
uint8_t Memory::read(uint16_t addr)
{
    // При попытке чтения области I/O портов
    if (addr >= VIC_REGS && addr < IO_PORTS2)
    {
        // проверяем видимость этой области для процессора
        if ( ram[CPU_PORT1] & 0x04 )
        {
            return ram[addr];
        }
        else // в противном случе ситаем Character ROM
        {
            return char_rom[addr - CHAR_ROM];
        }
    }

    // При попытке чтения из области BASIC ROM
    if (addr >= BASIC_ROM && addr < BASIC_ROM + BASIC_ROM_SIZE)
    {
        // проверяем доступность этой области
        if ( (ram[CPU_PORT1] & 0x03) == 0x03)
        {
            return basic_rom[addr - BASIC_ROM];
        }
        else
        {
            // иначе - мы читаем ОЗУ
            return ram[addr];
        }
    }

    // При попытке чтения из KERNAL ROM
    if (addr >= KERNAL_ROM && addr <= KERNAL_ROM + KERNAL_ROM_SIZE - 1)
    {
        // Проверяем доступность этой области
        if (ram[CPU_PORT1] & 0x03)
        {
            return kernal_rom[addr - KERNAL_ROM];
        }
        else
        {
            // иначе - читаем ОЗУ
            return ram[addr];
        }
    }

    // Читаем память во всех остальных случаях
    return ram[addr];
}

//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
void Memory::write(uint16_t addr, uint8_t value)
{
    // При попытке записи в область I/O портов
    if (addr >= VIC_REGS && addr < IO_PORTS2)
    {
        // проверяем видимость этой области для процессора
        if ( ram[CPU_PORT1] & 0x04 )
        {
            ram[addr] = value;
            return;
        }

        // в противном случае запись не состоиться, уходим
        return;
    }

    // При попытке записи в область BASIC ROM
    if (addr >= BASIC_ROM && addr < BASIC_ROM + BASIC_ROM_SIZE)
    {
        // проверяем доступность этой области
        if ( (ram[CPU_PORT1] & 0x03) == 0x03)
        {
            return;
        }
        else
        {
            // иначе - пишем в ОЗУ
            ram[addr] = value;
            return;
        }
    }

    // При попытке записи в KERNAL ROM
    if (addr >= KERNAL_ROM && addr <= KERNAL_ROM + KERNAL_ROM_SIZE - 1)
    {
        // Проверяем доступность этой области
        if (ram[CPU_PORT1] & 0x03)
        {
            return;
        }
        else
        {
            // иначе - пишем в ОЗУ
            ram[addr] = value;
            return;
        }
    }

    // Пишем в RAM во всех остальных случаях
    ram[addr] = value;
}

агрузка ROM из образа на диске. Тут надо пояснить, что эти образы - один к одному образ памяти последовательно записанный в бинарный файл, так что код тривиален

memory.cpp

//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
void Memory::load_rom_file(const std::string &filename, std::vector<uint8_t> &rom)
{
    std::ifstream file(filename, std::ios::binary);

    if (!file.is_open())
    {
        std::cout << "Warning: Can't open ROM file: " << filename << std::endl;
        return;
    }

    file.read(reinterpret_cast<char*>(rom.data()), rom.size());

    std::cout << "Loaded ROM: " << filename << std::endl;
}

Модифицируем реализованные ранее методы процессора для работы с памятью, с учетом указателя на класс Memory, передаваемый процессору

mos6502.cpp

//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
uint8_t MOS6502::read(uint16_t addr)
{
    cycles++;
    return memory->read(addr);
}

//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
uint16_t MOS6502::read16(uint16_t addr)
{
    return read(addr) | (read(addr + 1) << 8);
}

//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
void MOS6502::write(uint16_t addr, uint8_t value)
{
    cycles++;
    memory->write(addr, value);
}

Инициализация железа C64

c64.cpp

//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
void C64::load_roms()
{
    cpu.memory->load_rom_file("../data/basic.901226-01.bin", cpu.memory->basic_rom);
    cpu.memory->load_rom_file("../data/kernal.901227-03.bin", cpu.memory->kernal_rom);
    cpu.memory->load_rom_file("../data/c64_char.bin", cpu.memory->char_rom);
}

//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
void C64::init()
{
    load_roms();

    cpu.reset();
}

Грамотный сброс процессора

mos6502.cpp


//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
void MOS6502::reset()
{
    memory->ram[Memory::CPU_PORT0] = 0x2F;
    memory->ram[Memory::CPU_PORT1] = 0x37;

    PC = read16(0xFFFC);
    SP = 0xFF;
    P = 0x24;
    A = X = Y = 0;
    cycles = 0;
}

Обращаем внимание на то, что необходимо инициализировать CPU_REG0 и CPU_REG1, для того чтобы PLA верно переключил нам банки памяти, то есть сделал доступным бейсик и "биос". Кроме того, нам нужно передать управление на адрес, хранимый KERNAL ROM по адресу 0xFFFC - так называемый вектор сброса, где записан адрес, куда будет передано управление в код KERNAL ROM. Загружаем счетчик команд адресом из этой ячейки. Устанавливаем указатель стека на самое его дно - обращаю внимание, что адресация стека идет относительно адреса 0x0100, регистр SP - 8-битный, то есть стек не может быть более 256 байт. Не густо, но нам хватит. Устанавливает необходимые флаги процессора, чистим регистры, обнуляем счетчик тактов. Ок, погнали!

Ага, совершенно забыл, но образы всех ROM можно скачать тут. Это оригинальные образы, написанные в 80-е годы. Однако, их исходники я видел и на гитхабе, в том числе и бейсик - майкрософт его тоже открыл. Кроме того, доступен листинг BASIC и KERNAL ROM, можно посмотреть вот тут - он очень пригодился мне в процессе.

И - да, эмулятор запустился, кулер на процессоре загудел, выведенные на экран регистры весело изменялись. Ошибки "Неизвестный код операции" нет. Что-то выполняется, что-то запущено! Недаром проделана работа по отладке тестовых ассемблерных примеров. Но, мы не видим, что происходит с нашим "компьютером". Нужна визуализация экрана, ибо совершенно очевидно, что на экран должно что-то выводиться. Визуализацию я реализовал, о чем свидетельствует скриншот на КДПВ, однако о ней я напишу ниже, а пока перечислю те "затыки", которые мне пришлось решить до того, как я увидел что-то, кроме черного окна.

  • Мой косяк - не надо сбрасывать процессор до загрузки ROM-ов, иначе он будет читать нули

mos6502.cpp

//------------------------------------------------------------------------------
MOS6502::MOS6502()
{
-    reset();
+
}

строка 4 была удалена

  • Снова мой косяк - считая себя умнее ИИ, я написал по своему обработку команды JSR - вызов подпрограммы. Вернул так, как рекомендовала Qwen

mos6502.cpp

  case 0x91: addr_indirect_y(); additional_cycles = ((PC-1) & 0xFF00) != (addr_abs & 0xFF00) ? 1 : 0; break;

  // Вызов подпрограммы с абсолютной адресацией
- case 0x20: addr_absolute(); JSR(); return base_cycles + additional_cycles;
+ case 0x20: JSR(); return base_cycles + additional_cycles;

  // Безусловные переходы с абсолютной адрессацией
  case 0x4C: addr_absolute(); JMP(); return base_cycles + additional_cycles;
  • Косяк Qwen, который она нагло и упорно тащила через все примеры, которые печатала для меня. Ошибка в вычислении адреса перехода при относительной адресации

mos6502.cpp

            if (branch_taken)
            {
-                PC = addr_rel;
+                PC += addr_rel;
            }
            else
            {

Это приводило к неверной работе ближних переходов, то есть в пределах 256 байт +/- от текущей инструкции.

  • Снова косяк от Qwen - не учтены некоторые коды операций при дешифровке команд, однако это 50/50 и мой косяк, вызванный банальной невнимательностью

mos6502.cpp

    case 0xA5: case 0x65: case 0x25: case 0x06: case 0x24:
    case 0xC5: case 0xE4: case 0xC4: case 0xC6: case 0x45:
    case 0xE6: case 0xA6: case 0xA4: case 0x46: case 0x05:
-   case 0x26: case 0x66: case 0xE5: case 0x85:
+   case 0x26: case 0x66: case 0xE5: case 0x85: case 0x84:
    case 0x86: addr_zero_page(); break;

    // Адресация в пределах нулевой страницы относительной регистра X
    case 0xCD: case 0xEC: case 0xCC: case 0xCE: case 0x4D:
    case 0xEE: case 0xAE: case 0xAC: case 0x4E:
    case 0x0D: case 0x2E: case 0x6E: case 0xED: case 0x8D:
-   case 0x8C: addr_absolute(); break;
+   case 0x8C: case 0x8E: addr_absolute(); break;

Каждая из этих ошибок приводила к неверной адресации, а значит неверной выборке инструкций из памяти. То, что не ловился неверный код операции - чистая случайность. И процессор работал, исполняя совершенейший бред, случайный набор команд, из-за сдвигов в адресе.

И после исправления всего этого... (барабанная дробь), я увидел чудо

Первый признак того, что KERNAL ROM работает. Как-то работает...
Первый признак того, что KERNAL ROM работает. Как-то работает...

Экран раскрасился в знакомый по обзорам C64 цвет! Черный экран стал цветным, значит что-то работает верно! Не сказать чтобы это результат, но и тоже не шутка - запустился код, написанный не мной, машинный код почти полувековой давности. Да, друзья, это воодушевляет. Всегда с восхищением относился к людям, которые пишут эмуляторы компьютерных систем. Я занимался системным программированием, но не до такой степени. И тут ожил мой, склепанный на коленке эмулятор!

Однако, восторг сменился унынием. Так как этот пустой экран сообщал, что KERNAL ROM запустилась и работает, но не передает управление интерпретатору BASIC. С позволения читателя, я сначала расскажу как я решал это, а уж потом опишу процесс визуализации экранного вывода - так будет вернее с методической точки зрения.

7. Отладка внутри отладки, или как запустить BASIC

Итак, эмулятор работает, не вываливается с ошибкой о неверном опкоде. Очевидно выполнение зациклилось. Ну что же, вооружившись листингом приведенным выше, я пошел пошагово, в отладчике выполнять последовательно все инструкции загрузки. Внимание я обращал на соответствие листингу прошивки опкода, и адреса перехода, который загружен в регистр-счетчик команд.

По ходу этого действа выяснилась неверная отработка команды BMI, что было исправлено. Для честности, припишу этот участок кода моим ошибкам, хотя это может быть и косяк Qwen, ибо эту часть я, из-за лени, копипастил из выдачи LLM.

//------------------------------------------------------------------------------
int MOS6502::execInstruction()
{
    if (PC == 0xA000)
    if (PC == 0xE584)
    {
        int a = 0;
    }
            switch (opcode)
            {
            case 0x10: branch_taken = !getFlag(N); break;
-           case 0x30: branch_taken = !getFlag(V); break;
+           case 0x30: branch_taken = getFlag(N); break;
            case 0x50: branch_taken = !getFlag(V); break;
            case 0x70: branch_taken = getFlag(V); break;
            case 0x90: branch_taken = !getFlag(C); break;

после ликвидации данного возмущения в Силе, процесс на лад не пошел - все тот же экран, но уже другого цвета

a339818a8e34a529832ed2349a19b184.png

На данный процесс наложилось неуверенное состояние класса чипа VIC, который я несколько раз переписывал. Мне казалось что должно что-то выводится, просто VIC работает неверно. Это отчасти так, но анализ видеопамяти и обращение к таблице символов Cahracter ROM показало, что мой эмулятор верно заполняет экран пробелами, причем нужного цвета, как прописали разработчbки KERNAL ROM. Закономерный вывод - на каком-то этапе нарушается процесс выборки инструкций и процессор выполняет хрень. Или зацикливается, что я изначально отметал, памятуя о предыдущем опыте отладки.

Прыжок в торону бейсика начинается в KERNAL ROM с адреса 0xFCFF, где стоит безусловный джамп на адрес, читаемый из первой ячейки бейсика по адресу 0xA000

FCEF   8E 16 D0   STX $D016
FCF2   20 A3 FD   JSR $FDA3
FCF5   20 50 FD   JSR $FD50
FCF8   20 15 FD   JSR $FD15
FCFB   20 5B FF   JSR $FF5B
FCFE   58         CLI
FCFF   6C 00 A0   JMP ($A000)   ; start basic

Ну ок, брякнем условную точку останова на этот адрес. Но дело в том что условные брейкпоинты в условиях QtCreator, коим я давно и прочно пользуюсь сильно тупят. Поэтому был применен такой прием, в самом начале кода декодирования инструкций

mos6502.cpp

//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
int MOS6502::execInstruction()
{
    if (PC == 0xFF5E)
    {
        int a = 0;
    }

Как вы понимаете, бряк ставим на восьмую строку. И это быстро и безотказно работает, позволяя решить два вопроса: доходит или не доходит сюда выполнение кода, или затык сразу за этим адресом, что дальше, последующее пошаговой отладкой и выясняем.

Да, я честно крутил по шагам KERNAL ROM, сверяясь с листингом, раз за разом удивляясь как работает отлаженное ядро MOS 6502. Да, первый затык, с BMI, я выяснил именно таким способом, ибо процесс уходил бредить сразу после вызова подпрограммы по адресу 0xFCFB. Но исправление ошибки не принесло избавления.

Сидел я долго, переписывая в тетрадь все адреса, до которых удалось дошлепать

1e3e1754b9bdc37afb50252bcd704e2f.png

И, наконец-то я понял, что удачи мне не видать и вспомнил метод отладки, называемый трассировкой - запись в лог исполненных команд. Сказано - сделано. Вот такую примитивную трассировку я организовал

mos6502.cpp

uint16_t cur_PC = PC;

// Извлекаем из памяти код операции
uint8_t opcode = fetch();
int base_cycles = cycle_table[opcode];
int additional_cycles = 0;

std::cout << "PC: 0x" << std::hex << cur_PC << " opcode: 0x" << std::hex << (int) opcode << std::endl;

Меня, в общем, интересовал адрес перехода и опкод. Полноценный отладчик реализовать было некогда. И я даже не стал заморачиваться с выводом а файл - просто перенаправил процесс вывода программы в файл с помощью >.

Это дало лог, который сразу (!) вскрыл причину

PC: 0xea2c opcode: 0x9
PC: 0xea2e opcode: 0x85
PC: 0xea30 opcode: 0x60
PC: 0xff5e opcode: 0xad
PC: 0xff61 opcode: 0xd0
PC: 0xff5e opcode: 0xad
PC: 0xff61 opcode: 0xd0
PC: 0xff5e opcode: 0xad

Работал процессор-работал, а с адреса 0xFF5E залез в бесконечный цикл. Почему? Листинг в студию!

FF5B   20 18 E5   JSR $E518
FF5E   AD 12 D0   LDA $D012
FF61   D0 FB      BNE $FF5E

А потому что команда BNE работает в данном случае на ноль в аккумуляторе, который загружается значением по адресу 0xD012. И это, внезапно, адрес регистра видео-чипа VIC-II.

Оказалось, что данный регистр обнуляется чипом VIC-II, когда луч ЭЛТ, пробежав все 311 строк экрана доходит до конца, генерируя аппаратное прерывание. Опа! А прерываний то я не делал вообще! И самое прикольное, что выяснилось из инициализации регистров VIC - начальное значение данного регистра - 0x137.... что ровно 311 в десятиричной форме.

До реализации аппаратных прерываний у меня дело пока не дошло, поэтому я поступил жестоко - занулял данный в конце кадра (видимо, занулив навсегда...). Вот так

c64.cpp


        static int frame_counter = 0;

        if (++frame_counter % 30000 == 0)
        {
            vic.render(render);
            vic.regs[0x12] = 0x00; // ЗАЦИКЛИВАНИЕ ПОДАВЛЕНО ПРИНУДИТЕЛЬНО!!!
            //cpu.irq();
        }
    }

Ок, думаете после этого все стало работать и бейсик запустился? А черта с два! Затык нейросети, в реализации команды JMP по опкоду 0x6C свое дело сделал - процессор не туда побежал исполнять хрень.

Напомню, что джамп на бейсик идет по адресу, лежащему в нулевом бите BACIS ROM по адресу 0xA000. Исправлено, вот лог исправления. Это безусловный бред ИИ.

    // Безусловные переходы с абсолютной адрессацией
    case 0x4C: addr_absolute(); JMP(); return base_cycles + additional_cycles;
 -  case 0x6C: addr_abs = read16(PC); PC += 2; JMP(); return base_cycles + additional_cycles;
 +  case 0x6C:
 +   {
 +      uint16_t tmp_addr = read16(PC);
 +      addr_abs = read16(tmp_addr);
 +      JMP();
 +      return base_cycles + additional_cycles;
 +  }

И после этого... да, после этого случился взрыв мозга

2ab6a7e2f385a8593c355a5331c48b6d.png

Поделие вывело на экран что-то разумное, более того, бейсик у нас READY!

Итак, к исходу четвертого вечера я получил запуск бейсика из оригинального ROM. Так себе результат, но все же меня он порадовал. И пока я писал про отладку, меня посетила мысль, что описание VIC и визуализацию лучше оставить для новой статьи. Эта и так вышла довольно объемной.

Выводы

Итак - может ли ИИ заменить программиста? По опыту работы с бесплатными LLM могу сказать однозначно - не может. Аргументы, доказательства представлены выше:

  • LLM косячит, допуская ошибки в очевидном (пример с загрузкой бинарников)

  • LLMповторяет, с завидным упорством, неверную реализацию алгоритма

  • Зачастую, но не в данном случае, LLM не знакома с предметной областью

  • LLM плевать на архитектуру. Возможно мои промпты были примитивны, наверное стоит общаться с этим помощником поизящнее)

Допустимо ли применять средства, предоставляемые LLM в практической разработке. Ответ также однозначен - да! Аргументы:

  • LLM генерирует ко, похожий на рабочий, и это хорошая отправная точка

  • LLM ранее не усвоенную и не найденную информацию. Согласитесь, создать даже такое что создано в данной статье за четыре вечера... Вряд ли, знаю по опыту.

Я - сторонник прогресса во всех его формах и проявлениях. LLM, умеющие писать код - чудо нашего времени. Но выводы я сделаю, и надеюсь, они будут услышаны

  • LLM - это хороший интерактивный справочник. Это хороший источник ключевых слов для обычного примитивного (божечки, я это сказал!) "гугления". Мне, родившемуся при товарище Брежневе гугл до сих пор представляется чудом, если что

  • Всю выдачу кода не стоит копипастить, надо вдумчиво читать что вам предлагают

  • Извлекайте полезное, убивайте нещадно ущербное. Голова - главное оружие разработчика

В заключении, хочу сказать спасибо товарищу @kiltum - вы подняли актуальную тему и побудили лично меня к исследованиям. Удачи вам в ваших проектах!

У нас еще много вопросов. Тему видеочипа я отложил на следующую статью, заодно разберусь с обработкой прерываний. Возможно требуется инициализация и другого оборудования, но это пока предел того, чего я достиг.

Даю обещанную ссылку на репозиторий. Там можно по коммитам проследить путь мучений)

Всем спасибо за уделенной внимание! До новых встреч!

Источник

  • 22.06.26 21:51 kimberlyhebert786

    I invested in bitcoin trading After losing $78.4 USDT) linked to a romance fraud scam worth of cryptocurrency through an online investment platform and later discovered it was a scam. After extensive research for recovery options, I contacted CAPITAL CRYPTO RECOVER based on positive client reviews and recommendations. Their professional security team guided me through the recovery process using advanced technology, and I was able to recover my lost cryptocurrency successfully. I am truly grateful for their support and assistance during such a difficult experience. I will advise you to contact CAPITAL CRYPTO RECOVER helped me recover my funds. For anyone facing similar issues, Website: https://recovercapital.wixsite.com/capital-crypto-rec-1 Email: [email protected] Telegram: @Capitalcryptorecover Contact: [email protected] Call/Text Number: +1 (336) 390-6684

  • 24.06.26 01:25 Fraddy Pual

    I never thought it would happen to me—but I lost $256,100 in Bitcoin through a shady investment deal. I was shattered, panicked, and convinced my savings were gone forever. Just when I was about to give up, I stumbled upon reviews for FUNDSRETRIEVER, a cyber recovery team with a solid reputation. I decided to give it a shot, and to my absolute shock, they recovered every single cent in record time. Working with them was a lifesaver. If you've been tricked by fake investment platforms, don't lose hope—FUNDSRETRIEVER can help. Contact them here: Email: [email protected] | WhatsApp: +1603512144 8| Telegram: @Fundsretriever

  • 24.06.26 01:27 Fraddy Pual

    I never thought it would happen to me—but I lost $256,100 in Bitcoin through a shady investment deal. I was shattered, panicked, and convinced my savings were gone forever. Just when I was about to give up, I stumbled upon reviews for FUNDSRETRIEVER, a cyber recovery team with a solid reputation. I decided to give it a shot, and to my absolute shock, they recovered every single cent in record time. Working with them was a lifesaver. If you've been tricked by fake investment platforms, don't lose hope—FUNDSRETRIEVER can help. Contact them here: Email: [email protected] | WhatsApp: +16035121448 | Telegram: @Fundsretriever

  • 24.06.26 01:28 Fraddy Pual

    I never thought it would happen to me—but I lost $256,100 in Bitcoin through a shady investment deal. I was shattered, panicked, and convinced my savings were gone forever. Just when I was about to give up, I stumbled upon reviews for FUNDSRETRIEVER, a cyber recovery team with a solid reputation. I decided to give it a shot, and to my absolute shock, they recovered every single cent in record time. Working with them was a lifesaver. If you've been tricked by fake investment platforms, don't lose hope—FUNDSRETRIEVER can help. Contact them here: Email: [email protected] | WhatsApp: +16035121448 | Telegram: @Fundsretriever.

  • 24.06.26 01:58 robertalfred175

    CRYPTO SCAM RECOVERY SUCCESSFUL – A TESTIMONIAL OF LOST PASSWORD TO YOUR DIGITAL WALLET BACK. My name is Robert Alfred, Am from Australia. I’m sharing my experience in the hope that it helps others who have been victims of crypto scams. A few months ago, I fell victim to a fraudulent crypto investment scheme linked to a broker company. I had invested heavily during a time when Bitcoin prices were rising, thinking it was a good opportunity. Unfortunately, I was scammed out of $120,000 AUD and the broker denied me access to my digital wallet and assets. It was a devastating experience that caused many sleepless nights. Crypto scams are increasingly common and often involve fake trading platforms, phishing attacks, and misleading investment opportunities. In my desperation, a friend from the crypto community recommended Capital Crypto Recovery Service, known for helping victims recover lost or stolen funds. After doing some research and reading multiple positive reviews, I reached out to Capital Crypto Recovery. I provided all the necessary information—wallet addresses, transaction history, and communication logs. Their expert team responded immediately and began investigating. Using advanced blockchain tracking techniques, they were able to trace the stolen Dogecoin, identify the scammer’s wallet, and coordinate with relevant authorities to freeze the funds before they could be moved. Incredibly, within 24 hours, Capital Crypto Recovery successfully recovered the majority of my stolen crypto assets. I was beyond relieved and truly grateful. Their professionalism, transparency, and constant communication throughout the process gave me hope during a very difficult time. If you’ve been a victim of a crypto scam, I highly recommend them with full confidence contacting: Email: [email protected] Telegram: @Capitalcryptorecover Contact: [email protected] Call/Text: +1 (336) 390-6684 Website: https://recovercapital.wixsite.com/capital-crypto-rec-1

  • 24.06.26 01:58 robertalfred175

    CRYPTO SCAM RECOVERY SUCCESSFUL – A TESTIMONIAL OF LOST PASSWORD TO YOUR DIGITAL WALLET BACK. My name is Robert Alfred, Am from Australia. I’m sharing my experience in the hope that it helps others who have been victims of crypto scams. A few months ago, I fell victim to a fraudulent crypto investment scheme linked to a broker company. I had invested heavily during a time when Bitcoin prices were rising, thinking it was a good opportunity. Unfortunately, I was scammed out of $120,000 AUD and the broker denied me access to my digital wallet and assets. It was a devastating experience that caused many sleepless nights. Crypto scams are increasingly common and often involve fake trading platforms, phishing attacks, and misleading investment opportunities. In my desperation, a friend from the crypto community recommended Capital Crypto Recovery Service, known for helping victims recover lost or stolen funds. After doing some research and reading multiple positive reviews, I reached out to Capital Crypto Recovery. I provided all the necessary information—wallet addresses, transaction history, and communication logs. Their expert team responded immediately and began investigating. Using advanced blockchain tracking techniques, they were able to trace the stolen Dogecoin, identify the scammer’s wallet, and coordinate with relevant authorities to freeze the funds before they could be moved. Incredibly, within 24 hours, Capital Crypto Recovery successfully recovered the majority of my stolen crypto assets. I was beyond relieved and truly grateful. Their professionalism, transparency, and constant communication throughout the process gave me hope during a very difficult time. If you’ve been a victim of a crypto scam, I highly recommend them with full confidence contacting: Email: [email protected] Telegram: @Capitalcryptorecover Contact: [email protected] Call/Text: +1 (336) 390-6684 Website: https://recovercapital.wixsite.com/capital-crypto-rec-1

  • 24.06.26 14:16 Universina da Mota

    Becoming a victim of an investment scam is never anyone's intention it often happens because fraudsters exploit trust and a lack of awareness. I would like to express my sincere gratitude to the dedicated team at ResQpro for their professionalism and commitment to helping victims of online investment fraud. Their efforts in assisting individuals with the recovery of stolen assets and holding scammers accountable are truly commendable. If you need assistance or would like to learn more, you can contact them through: Email: [email protected] Alternative Email: [email protected] Telegram: @ResQprofirm WhatsApp: +1 (985) 296-9146

  • 24.06.26 14:21 Elizabeth Thompson

    If you believe you have been the victim of an investment scam, it is important to act promptly and gather all relevant information. Keep records of transaction receipts, wallet addresses, communication logs, account details, and any other evidence related to the incident. Providing accurate documentation can help investigators, financial institutions, legal professionals, or recovery specialists review your case and determine what options may be available. Be cautious of anyone who guarantees the recovery of lost funds or requests large upfront payments. For additional information, you may contact: Email: [email protected] Telegram: @ResQprofirm WhatsApp: +1 (985) 296-9146

  • 24.06.26 15:33 Júlia Castro

    If you have fallen victim to an investment scam, it is important to act quickly and gather all available evidence related to the incident. This may include transaction records, wallet addresses, screenshots of conversations, emails, account details, and any information connected to the individuals or entities involved. Having complete documentation can help professionals assess your situation and explore possible recovery options. Always exercise caution when seeking assistance and carefully verify the credentials of any service provider before proceeding. For further information, you may contact: Email: [email protected] Telegram: @ResQprofirm WhatsApp: +1 (985) 296-9146

  • 24.06.26 22:01 robertalfred175

    CRYPTO SCAM RECOVERY SUCCESSFUL – A TESTIMONIAL OF LOST PASSWORD TO YOUR DIGITAL WALLET BACK. My name is Robert Alfred, Am from Australia. I’m sharing my experience in the hope that it helps others who have been victims of crypto scams. A few months ago, I fell victim to a fraudulent crypto investment scheme linked to a broker company. I had invested heavily during a time when Bitcoin prices were rising, thinking it was a good opportunity. Unfortunately, I was scammed out of $120,000 AUD and the broker denied me access to my digital wallet and assets. It was a devastating experience that caused many sleepless nights. Crypto scams are increasingly common and often involve fake trading platforms, phishing attacks, and misleading investment opportunities. In my desperation, a friend from the crypto community recommended Capital Crypto Recovery Service, known for helping victims recover lost or stolen funds. After doing some research and reading multiple positive reviews, I reached out to Capital Crypto Recovery. I provided all the necessary information—wallet addresses, transaction history, and communication logs. Their expert team responded immediately and began investigating. Using advanced blockchain tracking techniques, they were able to trace the stolen Dogecoin, identify the scammer’s wallet, and coordinate with relevant authorities to freeze the funds before they could be moved. Incredibly, within 24 hours, Capital Crypto Recovery successfully recovered the majority of my stolen crypto assets. I was beyond relieved and truly grateful. Their professionalism, transparency, and constant communication throughout the process gave me hope during a very difficult time. If you’ve been a victim of a crypto scam, I highly recommend them with full confidence contacting: Email: [email protected] Telegram: @Capitalcryptorecover Contact: [email protected] Call/Text: +1 (336) 390-6684 Website: https://recovercapital.wixsite.com/capital-crypto-rec-1

  • 24.06.26 22:01 robertalfred175

    CRYPTO SCAM RECOVERY SUCCESSFUL – A TESTIMONIAL OF LOST PASSWORD TO YOUR DIGITAL WALLET BACK. My name is Robert Alfred, Am from Australia. I’m sharing my experience in the hope that it helps others who have been victims of crypto scams. A few months ago, I fell victim to a fraudulent crypto investment scheme linked to a broker company. I had invested heavily during a time when Bitcoin prices were rising, thinking it was a good opportunity. Unfortunately, I was scammed out of $120,000 AUD and the broker denied me access to my digital wallet and assets. It was a devastating experience that caused many sleepless nights. Crypto scams are increasingly common and often involve fake trading platforms, phishing attacks, and misleading investment opportunities. In my desperation, a friend from the crypto community recommended Capital Crypto Recovery Service, known for helping victims recover lost or stolen funds. After doing some research and reading multiple positive reviews, I reached out to Capital Crypto Recovery. I provided all the necessary information—wallet addresses, transaction history, and communication logs. Their expert team responded immediately and began investigating. Using advanced blockchain tracking techniques, they were able to trace the stolen Dogecoin, identify the scammer’s wallet, and coordinate with relevant authorities to freeze the funds before they could be moved. Incredibly, within 24 hours, Capital Crypto Recovery successfully recovered the majority of my stolen crypto assets. I was beyond relieved and truly grateful. Their professionalism, transparency, and constant communication throughout the process gave me hope during a very difficult time. If you’ve been a victim of a crypto scam, I highly recommend them with full confidence contacting: Email: [email protected] Telegram: @Capitalcryptorecover Contact: [email protected] Call/Text: +1 (336) 390-6684 Website: https://recovercapital.wixsite.com/capital-crypto-rec-1

  • 25.06.26 21:13 Emilie Safi

    A fraudulent investment scheme operated by BTCMining.limited functions as a fake return scam. In this setup, scammers lure victims with false promises of high returns. Through manipulative tactics, they gain individuals' trust and convince them to invest, ultimately leading to financial loss. If you have ever faced a cyber threat or fallen victim to an online crypto scam and need to reach the authorities, I recommend contacting [email protected], [email protected], WhatsApp +19852969146, telegram @resqprofirm. They are a legitimate team that helps victims of online crypto scams using advanced tools.

  • 25.06.26 21:25 Emilie Safi

    So I ended up losing $38,000 to this platform. At first, they kept asking me to put in more money so I could get into my portfolio. I did that, but then they wouldn’t let me withdraw anything—just kept asking for more deposits. It got way too suspicious, so I stopped. I found this company called ResQProfirm on Google and told them what happened. They got in touch, asked me to walk them through everything, and I gave them all the proof I had. They did an amazing job tracking down my money and getting it back. Big thanks to them at [email protected] and on WhatsApp at +19852969146. Please be careful out there and always research before investing.

  • 26.06.26 01:04 robertalfred175

    CRYPTO SCAM RECOVERY SUCCESSFUL – A TESTIMONIAL OF LOST PASSWORD TO YOUR DIGITAL WALLET BACK. My name is Robert Alfred, Am from Australia. I’m sharing my experience in the hope that it helps others who have been victims of crypto scams. A few months ago, I fell victim to a fraudulent crypto investment scheme linked to a broker company. I had invested heavily during a time when Bitcoin prices were rising, thinking it was a good opportunity. Unfortunately, I was scammed out of $120,000 AUD and the broker denied me access to my digital wallet and assets. It was a devastating experience that caused many sleepless nights. Crypto scams are increasingly common and often involve fake trading platforms, phishing attacks, and misleading investment opportunities. In my desperation, a friend from the crypto community recommended Capital Crypto Recovery Service, known for helping victims recover lost or stolen funds. After doing some research and reading multiple positive reviews, I reached out to Capital Crypto Recovery. I provided all the necessary information—wallet addresses, transaction history, and communication logs. Their expert team responded immediately and began investigating. Using advanced blockchain tracking techniques, they were able to trace the stolen Dogecoin, identify the scammer’s wallet, and coordinate with relevant authorities to freeze the funds before they could be moved. Incredibly, within 24 hours, Capital Crypto Recovery successfully recovered the majority of my stolen crypto assets. I was beyond relieved and truly grateful. Their professionalism, transparency, and constant communication throughout the process gave me hope during a very difficult time. If you’ve been a victim of a crypto scam, I highly recommend them with full confidence contacting: Email: [email protected] Telegram: @Capitalcryptorecover Contact: [email protected] Call/Text: +1 (336) 390-6684 Website: https://recovercapital.wixsite.com/capital-crypto-rec-1

  • 26.06.26 01:04 robertalfred175

    CRYPTO SCAM RECOVERY SUCCESSFUL – A TESTIMONIAL OF LOST PASSWORD TO YOUR DIGITAL WALLET BACK. My name is Robert Alfred, Am from Australia. I’m sharing my experience in the hope that it helps others who have been victims of crypto scams. A few months ago, I fell victim to a fraudulent crypto investment scheme linked to a broker company. I had invested heavily during a time when Bitcoin prices were rising, thinking it was a good opportunity. Unfortunately, I was scammed out of $120,000 AUD and the broker denied me access to my digital wallet and assets. It was a devastating experience that caused many sleepless nights. Crypto scams are increasingly common and often involve fake trading platforms, phishing attacks, and misleading investment opportunities. In my desperation, a friend from the crypto community recommended Capital Crypto Recovery Service, known for helping victims recover lost or stolen funds. After doing some research and reading multiple positive reviews, I reached out to Capital Crypto Recovery. I provided all the necessary information—wallet addresses, transaction history, and communication logs. Their expert team responded immediately and began investigating. Using advanced blockchain tracking techniques, they were able to trace the stolen Dogecoin, identify the scammer’s wallet, and coordinate with relevant authorities to freeze the funds before they could be moved. Incredibly, within 24 hours, Capital Crypto Recovery successfully recovered the majority of my stolen crypto assets. I was beyond relieved and truly grateful. Their professionalism, transparency, and constant communication throughout the process gave me hope during a very difficult time. If you’ve been a victim of a crypto scam, I highly recommend them with full confidence contacting: Email: [email protected] Telegram: @Capitalcryptorecover Contact: [email protected] Call/Text: +1 (336) 390-6684 Website: https://recovercapital.wixsite.com/capital-crypto-rec-1

  • 26.06.26 02:48 Miriam Rocha

    I trusted this platform with $120,000 of my hard-earned money. Then they started asking for more deposits just so I could access my own portfolio. I paid, but every withdrawal request was denied. They kept pushing for more money. I finally stopped it just felt wrong. Desperate, I found ResQProfirm on Google. They didn't just hear me out; they truly listened. I shared all my proof, and they launched an investigation. Thanks to their hard work, they tracked and returned my funds. From the bottom of my heart, thank you to [email protected] and their WhatsApp +19852969146. Please stay safe and always verify a platform before investing

  • 26.06.26 02:52 Miško Bakić

    I got my $232,000 refund thanks to [email protected] and WhatsApp +19852969146. Highly recommended for anyone in a similar situation.

  • 26.06.26 02:56 Asunción Herrera

    A recovery of $48,330 was facilitated by [email protected]. Individuals who have experienced financial fraud may consider contacting this service.

  • 26.06.26 15:05 Riley Stephens

    If withdrawals keep getting denied, stay calm. I went through the same, and this firm helped me recover everything. Their assistance was outstanding. Contact: [ResQProFirm @Gmail|•|com], Telegram: ResQprofirm, WhatsApp: <+198> <5296> <9146>.

  • 26.06.26 15:09 Antonio Riley

    Withdrawal troubles shouldn’t stress you out. I faced a similar problem, and this firm stepped in and recovered my funds. Their support truly mattered. Contact them: [[email protected], ResQprofirm @aol.com], Telegram: ResQprofirm, WhatsApp: +19852969146.

  • 28.06.26 00:37 kimberlyhebertt673

    I invested in bitcoin trading After losing $78.4 USDT) linked to a romance fraud scam worth of cryptocurrency through an online investment platform and later discovered it was a scam. After extensive research for recovery options, I contacted CAPITAL CRYPTO RECOVER based on positive client reviews and recommendations. Their professional security team guided me through the recovery process using advanced technology, and I was able to recover my lost cryptocurrency successfully. I am truly grateful for their support and assistance during such a difficult experience. I will advise you to contact CAPITAL CRYPTO RECOVER helped me recover my funds. For anyone facing similar issues, Website: https://recovercapital.wixsite.com/capital-crypto-rec-1 Email: [email protected] Telegram: @Capitalcryptorecover Contact: [email protected] Call/Text Number: +1 (336) 390-6684

  • 28.06.26 00:37 kimberlyhebertt673

    I invested in bitcoin trading After losing $78.4 USDT) linked to a romance fraud scam worth of cryptocurrency through an online investment platform and later discovered it was a scam. After extensive research for recovery options, I contacted CAPITAL CRYPTO RECOVER based on positive client reviews and recommendations. Their professional security team guided me through the recovery process using advanced technology, and I was able to recover my lost cryptocurrency successfully. I am truly grateful for their support and assistance during such a difficult experience. I will advise you to contact CAPITAL CRYPTO RECOVER helped me recover my funds. For anyone facing similar issues, Website: https://recovercapital.wixsite.com/capital-crypto-rec-1 Email: [email protected] Telegram: @Capitalcryptorecover Contact: [email protected] Call/Text Number: +1 (336) 390-6684

  • 29.06.26 11:57 Lisadonato0726

    For 43 years, I struggled with bad credit due to my own poor decisions, and my credit score was around 490. When my girlfriend and I decided to buy a house, a mortgage broker informed us that it would be impossible to secure a mortgage with my credit score. As a result, she referred me to a company called HACK MAVENS CREDIT SPECIALIST, assuring me of their professionalism and ability to assist with credit improvement. Upon contacting them, I was impressed by their professionalism and they assured me that they could help. In less than 6 days, my credit score skyrocketed to 785, and they also successfully resolved issues in my credit report, including the bankruptcy. I am incredibly satisfied with their service and would highly recommend HACK MAVENS CREDIT SPECIALIST for reliable credit repairs. You can reach them at H A C K M A V E N S 5 [AT] G M A I L [DOT] COM or at [+] [1] [2 0 9] [4 1 7] – [1 9 5 7]. Thanks to their help, my girlfriend and I are now proud homeowners.

  • 29.06.26 22:37 riley777

    Back in 2025, I watched my life savings vanish. A thief took every cent. I felt desperate and went looking for a way to get it back. I found a guy here who said he was an expert haha. He talked about special software that could find my missing cash. I trusted him. That was a big mistake. He was just another scammer. I paid him a software fee and then he just stopped answering my texts and ran off with my money too. I felt so ashamed that I kept quiet about it for months. It is hard to admit you got fooled twice. Later on, I found a real pro. she did not use a fancy sales pitch. she just looked at the trans screenshots and followed the path the money took. she worked fast and got my funds back into my account. Having that money back changed everything. I can sleep again. her info; [email protected]. Call/chatroom on Whtasapp/ +44 7476618364.

  • 30.06.26 15:08 wendytaylor015

    My name is Wendy Taylor, I'm from Los Angeles, i want to announce to you Viewer how Capital Crypto Recover help me to restore my Lost Bitcoin, I invested with a Crypto broker without proper research to know what I was hoarding my hard-earned money into scammers, i lost access to my crypto wallet or had your funds stolen? Don’t worry Capital Crypto Recover is here to help you recover your cryptocurrency with cutting-edge technical expertise, With years of experience in the crypto world, Capital Crypto Recover employs the best latest tools and ethical hacking techniques to help you recover lost assets, unlock hacked accounts, Whether it’s a forgotten password, Capital Crypto Recover has the expertise to help you get your crypto back. a security company service that has a 100% success rate in the recovery of crypto assets, i lost wallet and hacked accounts. I provided them the information they requested and they began their investigation. To my surprise, Capital Crypto Recover was able to trace and recover my crypto assets successfully within 24hours. Thank you for your service in helping me recover my $647,734 worth of crypto funds and I highly recommend their recovery services, they are reliable and a trusted company to any individuals looking to recover lost money. Contact email [email protected] OR Telegram @Capitalcryptorecover Call/Text Number +1 (336)390-6684 his contact: [email protected] His website: https://recovercapital.wixsite.com/capital-crypto-rec-1

  • 30.06.26 15:08 wendytaylor015

    My name is Wendy Taylor, I'm from Los Angeles, i want to announce to you Viewer how Capital Crypto Recover help me to restore my Lost Bitcoin, I invested with a Crypto broker without proper research to know what I was hoarding my hard-earned money into scammers, i lost access to my crypto wallet or had your funds stolen? Don’t worry Capital Crypto Recover is here to help you recover your cryptocurrency with cutting-edge technical expertise, With years of experience in the crypto world, Capital Crypto Recover employs the best latest tools and ethical hacking techniques to help you recover lost assets, unlock hacked accounts, Whether it’s a forgotten password, Capital Crypto Recover has the expertise to help you get your crypto back. a security company service that has a 100% success rate in the recovery of crypto assets, i lost wallet and hacked accounts. I provided them the information they requested and they began their investigation. To my surprise, Capital Crypto Recover was able to trace and recover my crypto assets successfully within 24hours. Thank you for your service in helping me recover my $647,734 worth of crypto funds and I highly recommend their recovery services, they are reliable and a trusted company to any individuals looking to recover lost money. Contact email [email protected] OR Telegram @Capitalcryptorecover Call/Text Number +1 (336)390-6684 his contact: [email protected] His website: https://recovercapital.wixsite.com/capital-crypto-rec-1

  • 02.07.26 01:22 Lieneke Bonnema

    I highly recommend ResQprofirm for their professional asset recovery services of my $120,000 scammed funds. Their expertise, professionalism, and commitment to achieving results make them a reliable choice for anyone seeking dependable recovery assistance. [email protected], WhatsApp +19852969146, telegram @resqprofirm

  • 02.07.26 01:26 Clara Morin

    I want to extend my deepest appreciation for showing that circumstances do not define one’s potential for greatness. Your support has been a major source of inspiration during my trading journey, and I am sincerely grateful for your insight and mentorship. Thank you so much. [email protected], WhatsApp +19852969146, telegram ResQprofirm

  • 02.07.26 01:31 Robin Hale

    I sincerely want to thank you for demonstrating that anyone can rise above their circumstances and achieve success. Your constant support has been incredibly inspiring during my trading journey, and your wisdom and advice mean so much to me. I appreciate you deeply. [email protected], WhatsApp +19852969146, telegram Resqprofirm

  • 04.07.26 15:32 Fraddy Pual

    There are few companies I trust as much as FUNDSRETRIEVER. When I lost $653,000 in Ethereum to a ruthless scam, I thought my life would never be the same. The betrayal cut deep, but I refused to give up. I searched tirelessly for a legitimate way to recover what was stolen, and finally found FUNDSRETRIEVER—the most competent and compassionate recovery team I could have imagined. They handled my case with precision and care, and in the end, my entire ETH wallet was restored. More than the money, they gave me back my hope and happiness. I'm sharing my story because I want others to know that recovery is possible. If a scam has taken from you, don't hesitate—contact FUNDSRETRIEVER today. Email: FUNDSRETRIEVER1@ Gmail.com | WhatsApp: +1 603-512-1448 | Telegram: @FUNDSRETRIEVER

  • 05.07.26 14:44 lydiassmith567

    HIRE A HACKER YOUR STOLEN CRYPTO RECOVERY / BTC / USDT / ETH WITH THE HELP OF CAPITAL CRYPTO RECOVER. I want to share my experience publicly regarding cryptocurrency wallet recovery, I highly recommend you to contact CAPITAL CRYPTO RECOVER, a professional private investigator in the Bitcoin world. They have a certified expert security team specializing in Bitcoin Recovery Services and have helped many people worldwide recover their lost funds. My wife and I were defrauded by an online manipulator posing as an experienced crypto investment professional. We lost $9.2 Million Stolen BTC in cryptocurrency and were left feeling homeless. After spending hours searching for a reliable crypto recovery service, I discovered CAPITAL CRYPTO RECOVER online. By patiently explaining my situation to their team, I was able to recover all my funds. Remarkably, my money was returned to my wallet in less than 24 hours. I am extremely grateful to CAPITAL CRYPTO RECOVER for their excellent assistance—they truly were a godsend in my difficult situation. If you have fallen victim to a cryptocurrency scam, you can reach CAPITAL CRYPTO RECOVER through the following channels Email: [email protected] OR Call/Text: +1 (336) 390-6684 Contact: [email protected] Website: https://recovercapital.wixsite.com/capital-crypto-rec-1

  • 05.07.26 14:44 lydiassmith567

    HIRE A HACKER YOUR STOLEN CRYPTO RECOVERY / BTC / USDT / ETH WITH THE HELP OF CAPITAL CRYPTO RECOVER. I want to share my experience publicly regarding cryptocurrency wallet recovery, I highly recommend you to contact CAPITAL CRYPTO RECOVER, a professional private investigator in the Bitcoin world. They have a certified expert security team specializing in Bitcoin Recovery Services and have helped many people worldwide recover their lost funds. My wife and I were defrauded by an online manipulator posing as an experienced crypto investment professional. We lost $9.2 Million Stolen BTC in cryptocurrency and were left feeling homeless. After spending hours searching for a reliable crypto recovery service, I discovered CAPITAL CRYPTO RECOVER online. By patiently explaining my situation to their team, I was able to recover all my funds. Remarkably, my money was returned to my wallet in less than 24 hours. I am extremely grateful to CAPITAL CRYPTO RECOVER for their excellent assistance—they truly were a godsend in my difficult situation. If you have fallen victim to a cryptocurrency scam, you can reach CAPITAL CRYPTO RECOVER through the following channels Email: [email protected] OR Call/Text: +1 (336) 390-6684 Contact: [email protected] Website: https://recovercapital.wixsite.com/capital-crypto-rec-1

  • 06.07.26 16:20 Olga Ognjanović

    Having trouble withdrawing funds from an investment platform? ResQprofirm provides fund recovery assistance for individuals seeking help with investment-related disputes. I reached out to them after experiencing problems with an investment platform, and I appreciated their professionalism and support throughout the process. If you're facing a similar situation, act promptly, keep records of your transactions and communications, and seek assistance from a qualified recovery service or the appropriate authorities. Contact: Email: [email protected] Telegram: @ResQprofirm WhatsApp: +1 985 296 9146

  • 06.07.26 16:31 Joseph Weigl

    Invest wisely and stay cautious. Don't be influenced by promises of unusually high returns or convincing sales pitches from brokers. I learned this the hard way after falling victim to an investment scam that promised huge profits. Fortunately, I acted quickly and reported the incident to a recovery firm for assistance. Contact: Email: [email protected] Telegram: @Resqprofirm WhatsApp: +1 985 296 9146

  • 06.07.26 16:33 Jaran Løvlien

    A heartfelt thank you to RESQPRO FIRM for their commitment and professionalism throughout the investigation of my case. Their team worked diligently and helped recover assets valued at $88,000, which were returned to my wallet. I truly appreciate their support, clear communication, and dedication, and I'm grateful for the assistance I received. Contact: Email: [email protected] Telegram: @Resqprofirm WhatsApp: +1 985 296 9146

  • 07.07.26 18:00 robertalfred175

    CRYPTO SCAM RECOVERY SUCCESSFUL – A TESTIMONIAL OF LOST PASSWORD TO YOUR DIGITAL WALLET BACK. My name is Robert Alfred, Am from Australia. I’m sharing my experience in the hope that it helps others who have been victims of crypto scams. A few months ago, I fell victim to a fraudulent crypto investment scheme linked to a broker company. I had invested heavily during a time when Bitcoin prices were rising, thinking it was a good opportunity. Unfortunately, I was scammed out of $120,000 AUD and the broker denied me access to my digital wallet and assets. It was a devastating experience that caused many sleepless nights. Crypto scams are increasingly common and often involve fake trading platforms, phishing attacks, and misleading investment opportunities. In my desperation, a friend from the crypto community recommended Capital Crypto Recovery Service, known for helping victims recover lost or stolen funds. After doing some research and reading multiple positive reviews, I reached out to Capital Crypto Recovery. I provided all the necessary information—wallet addresses, transaction history, and communication logs. Their expert team responded immediately and began investigating. Using advanced blockchain tracking techniques, they were able to trace the stolen Dogecoin, identify the scammer’s wallet, and coordinate with relevant authorities to freeze the funds before they could be moved. Incredibly, within 24 hours, Capital Crypto Recovery successfully recovered the majority of my stolen crypto assets. I was beyond relieved and truly grateful. Their professionalism, transparency, and constant communication throughout the process gave me hope during a very difficult time. If you’ve been a victim of a crypto scam, I highly recommend them with full confidence contacting: Email: [email protected] Telegram: @Capitalcryptorecover Contact: [email protected] Call/Text: +1 (336) 390-6684 Website: https://recovercapital.wixsite.com/capital-crypto-rec-1

  • 07.07.26 18:01 robertalfred175

    CRYPTO SCAM RECOVERY SUCCESSFUL – A TESTIMONIAL OF LOST PASSWORD TO YOUR DIGITAL WALLET BACK. My name is Robert Alfred, Am from Australia. I’m sharing my experience in the hope that it helps others who have been victims of crypto scams. A few months ago, I fell victim to a fraudulent crypto investment scheme linked to a broker company. I had invested heavily during a time when Bitcoin prices were rising, thinking it was a good opportunity. Unfortunately, I was scammed out of $120,000 AUD and the broker denied me access to my digital wallet and assets. It was a devastating experience that caused many sleepless nights. Crypto scams are increasingly common and often involve fake trading platforms, phishing attacks, and misleading investment opportunities. In my desperation, a friend from the crypto community recommended Capital Crypto Recovery Service, known for helping victims recover lost or stolen funds. After doing some research and reading multiple positive reviews, I reached out to Capital Crypto Recovery. I provided all the necessary information—wallet addresses, transaction history, and communication logs. Their expert team responded immediately and began investigating. Using advanced blockchain tracking techniques, they were able to trace the stolen Dogecoin, identify the scammer’s wallet, and coordinate with relevant authorities to freeze the funds before they could be moved. Incredibly, within 24 hours, Capital Crypto Recovery successfully recovered the majority of my stolen crypto assets. I was beyond relieved and truly grateful. Their professionalism, transparency, and constant communication throughout the process gave me hope during a very difficult time. If you’ve been a victim of a crypto scam, I highly recommend them with full confidence contacting: Email: [email protected] Telegram: @Capitalcryptorecover Contact: [email protected] Call/Text: +1 (336) 390-6684 Website: https://recovercapital.wixsite.com/capital-crypto-rec-1

  • 09.07.26 19:06 Toivo Walli

    I lost 8.56btc to a fake Bitcoin mining site, I tried withdrawing but couldn't approved my process, I reported to !R£SQPROFIRM! via °R£SQproFirm°àt°gmail•com° °tEL£°gram=R£SQprofirm °whaT°Zap+198°52°96°91°46

  • 09.07.26 19:10 Misty Alexander

    Ongoing messages demanding more money before approving withdrawals are a major red flag. Stop engaging and report the incident to a trusted re­covery team. For professional support, you can contact R£sQprofirm using °ResQproFirm°àt°g,*ma'il(•)¢m°, TEL£gram ResQprofirm, or |whaTZap| +1-985-296-9146.

  • 09.07.26 19:13 Clara Soto

    Anyone receiving continued requests for additional deposits from a scam platform should immediately cut off communication and submit the case to a reputable re­covery service for investigation. R£sQprofirm is a dependable firm you can reach at °ResQproFirm°àt°g,*ma'il(•)¢om°, TEL£gram ResQprofirm, or |whaTZap| +1-985-296-9146.

  • 12.07.26 03:30 Kora Baltacha

    Time is critical. Act now by reaching out to a reputable, seasoned recovery specialist who will guide you every step of the way. You'll need to submit transaction proof, scammer details, and any other useful information. Armed with this, the experts can trace and attempt to pull your money back from the scammers' hidden accounts or wallets. Best of all, R£sQprofirm provides recovery help without charging any upfront fees. Contact them immediately via Telegram @ResQprofirm, WhatsApp +19852969146, or email [email protected].

  • 12.07.26 03:33 Pahal Mathew

    It's important to move proactively by engaging an experienced recovery specialist. They will assist you throughout the process. To help them, provide: · Transaction evidence · Scammer information · Any additional relevant details The experts will then track and try to retrieve your funds from the scammers' hidden accounts or wallets. R£sQprofirm offers recovery assistance with no upfront fees. Contact: Telegram: @ResQprofirm WhatsApp: +19852969146 Email: [email protected]

  • 13.07.26 23:49 [email protected]

    One of the biggest concerns I have about cryptocurrency is the lack of regulation. It creates opportunities for scammers to invent convincing stories and fraudulent investment schemes. Unfortunately, some social media platforms continue to display these ads because they profit from them, even after users report them.I personally clicked on a Facebook advertisement for a company called Chickenfastmining and ended up losing more than $120,000 in a scam. I reported the ad, but nothing was done. Later, through a Reddit community, I found a recovery service called CYBERBERSPY that, in my personal experience, they helped me recover $110,000 of my lost funds. If you've been a victim of a cryptocurrency scam, don't lose hope. Explore your options carefully, and always verify the legitimacy of any recovery service before trusting them or paying any fees. Based on my own experience, CYBERBERSPY was helpful to me and i was able to recover my funds back, but I encourage everyone to do their own research before using any recovery service.i highly recommend: ([email protected])

  • 15.07.26 11:53 Sarah Green

    Thank you for showing that success is possible regardless of where someone starts. Your encouragement, valuable advice, and continuous support have inspired me throughout my $160,457k crypto investment recovery journey. I truly appreciate your kindness and dedication. Resqprofirm @gmail.com Telegram: Resqprofirm

  • 15.07.26 11:58 Lily Gagné

    I sincerely appreciate you for proving that anyone can overcome challenges and achieve success. Your unwavering support throughout my trading investment scam of $88,890 recovery journey has been truly inspiring, and your guidance and wisdom have meant a great deal to me. Thank you for everything ResQprofirm@ gmail.com, ResQprofirm on the telegram.

  • 16.07.26 21:38 patricialovick86

    How To Recover Your Bitcoin Without Falling Victim To Scams: A  Testimony Experience With Capital Crypto Recover Services, Contact Telegram: @Capitalcryptorecover Dear Everyone, I would like to take a moment to share my positive experience with Capital Crypto Recover Services. Initially, I was unsure if it would be possible to recover my stolen bitcoins. However, with their expertise and professionalism, I was able to fully recover my funds. Unfortunately, many individuals fall victim to scams in the cryptocurrency space, especially those involving fraudulent investment platforms. However, I advise caution, as not all recovery services are legitimate. I personally lost $273,000 worth of Bitcoin from my Binance account due to a deceptive platform. If you have suffered a similar loss, you may be considering crypto recovery, The Capital Crypto Recover is the most knowledgeable and effective Capital Crypto Recovery Services assisted me in recovering my stolen funds within 24 hours, after getting access to my wallet. Their service was not only prompt but also highly professional and effective, and many recovery services may not be trustworthy. Therefore, I highly recommend Capital Crypto Recover to you. i do always research and see reviews about their service, For assistance finding your misplaced cryptocurrency, get in touch with them, They do their jobs quickly and excellently, Stay safe and vigilant in the crypto world. Contact: [email protected]  You can reach them via email at [email protected] OR Call/Text Number +1 (336)390-6684 his contact website: https://recovercapital.wixsite.com/capital-crypto-rec-1

  • 16.07.26 21:38 patricialovick86

    How To Recover Your Bitcoin Without Falling Victim To Scams: A  Testimony Experience With Capital Crypto Recover Services, Contact Telegram: @Capitalcryptorecover Dear Everyone, I would like to take a moment to share my positive experience with Capital Crypto Recover Services. Initially, I was unsure if it would be possible to recover my stolen bitcoins. However, with their expertise and professionalism, I was able to fully recover my funds. Unfortunately, many individuals fall victim to scams in the cryptocurrency space, especially those involving fraudulent investment platforms. However, I advise caution, as not all recovery services are legitimate. I personally lost $273,000 worth of Bitcoin from my Binance account due to a deceptive platform. If you have suffered a similar loss, you may be considering crypto recovery, The Capital Crypto Recover is the most knowledgeable and effective Capital Crypto Recovery Services assisted me in recovering my stolen funds within 24 hours, after getting access to my wallet. Their service was not only prompt but also highly professional and effective, and many recovery services may not be trustworthy. Therefore, I highly recommend Capital Crypto Recover to you. i do always research and see reviews about their service, For assistance finding your misplaced cryptocurrency, get in touch with them, They do their jobs quickly and excellently, Stay safe and vigilant in the crypto world. Contact: [email protected]  You can reach them via email at [email protected] OR Call/Text Number +1 (336)390-6684 his contact website: https://recovercapital.wixsite.com/capital-crypto-rec-1

  • 17.07.26 19:24 laimqq90

    I recommend Marie when it comes to recovering lost/stolen ust/bitcoin or any kind of cryptocurrencies' from fake investment platforms because they're well specialized in that area and you'll get your money back in full. I can boldly say this right now based on my prior deal i had with them; she was the only one who was able to recover my lost money $52,760 dollars back to my account, Only * ([email protected] and WhatsApp +1 7127594675 successful in recovering my money. They are the only one who can fully restore your lost funds to your account without any deductions, I really value their work and am recommending her to you today. THANK ME LATER

  • 17.07.26 20:12 martinsjude080

    Needs Online Fraud Help Contact Mighty Hacker Recovery https://mightyhackarrecovery.com I lost $292,900 in Bitcoin after investing with an online mining company. After realizing I had been scammed, I spent a long time searching for ways to recover my funds and contacted several services without success. During my research, I came across Mighty Hacker Recovery through Google and YouTube. What caught my attention was that they said they would not require any upfront payment before providing their recovery service. I decided to contact them to discuss my case and understand their process. Throughout the process, they kept me informed about the progress. After several days, I was asked to provide my Bitcoin wallet address, and my case was concluded. Their fee was handled after the service rather than being requested in advance. If you've been the victim of a cryptocurrency scam, it's important to do your own research, ask questions, and carefully evaluate any recovery service before proceeding. Every case is different, so take the time to verify information and understand the process before making any decisions. For Bitcoin scam recovery, cryptocurrency scam, crypto recovery service, recover stolen Bitcoin, Bitcoin fraud help, blockchain investigation, crypto wallet recovery, online investment scam, digital asset recovery, and crypto scam support. Contact Them on WhatsApp +1 (343) 947-3496 or [email protected] or [email protected] or https://mightyhackarrecovery.com Scam recovery Online fraud help Scam alert Report fraud Fraud investigation Fake website checker Scam checker Identity theft protection Consumer protection Chargeback for scam Wire transfer scam Tech support scam Employment scam Rental scam Shopping scam Email scam WhatsApp scam Telegram scam Facebook scam Instagram scam

  • 18.07.26 17:12 Malthe Larsen

    My experience with OKX has been deeply frustrating. For months, my account withdrawals were restricted with no explanation or resolution. Multiple emails to their support team were ignored, leaving me without answers or reassurance. This complete lack of communication shattered my trust. I ultimately regained access to my funds only through the help of a third-party recovery service, ResQProfirm. What should have been a reliable platform instead made me feel helpless and cut off from my own assets. [email protected], WhatsApp +19852969146, telegram @Resqprofirm

  • 18.07.26 17:42 پریا رضایی

    OKX has been a major disappointment. My withdrawals were restricted for months, and repeated attempts to contact support went unanswered. This silence destroyed my confidence in the platform. I was only able to recover my funds through a third-party service, ResQProfirm. I trusted OKX for its reliability, but the experience left me feeling trapped and helpless. Timely communication and access to one’s own money should be a basic standard. [email protected], WhatsApp +19852969146, telegram: ResQprofirm

  • 18.07.26 17:46 Adem Akışık

    I truly didn’t expect such an outstanding outcome. Recovering my $49,360 felt impossible at first, but ResQprofirm’s dedication and persistence made it happen. I hold their team in the highest regard. [email protected], WhatsApp +19852969146

  • 18.07.26 23:51 bernalzenaida

    WhatsApp https://wa.link/fhle97 Telegram https://msng.link/o?@techcyberforc=tg As cryptocurrency continues to reshape global finance, cybercriminals are finding new ways to exploit investors through scams, hacks, phishing attacks, fake investment platforms, and other forms of digital asset fraud. For many victims, knowing where to turn after a loss can be one of the biggest challenges. Techy Force Cyber Retrieval was founded with one clear mission: to give victims of crypto fraud a fighting chance through professional blockchain investigations and cybersecurity expertise. Our team brings together experienced blockchain analysts, digital forensic specialists, cybersecurity professionals, and legal partners who work collaboratively to investigate cryptocurrency-related crimes. Using advanced blockchain forensic tools and global investigative techniques, we analyze transaction histories, trace digital asset movements where possible, identify valuable investigative leads, and prepare evidence that may assist clients and the appropriate authorities. We believe blockchain should represent transparency, accountability, and trust—not fear. That’s why we’re committed to helping victims understand their options, navigate the investigative process, and take informed action after cryptocurrency fraud. Every case is different, and while no legitimate recovery service can promise a successful recovery, acting quickly and working with experienced professionals can improve the quality of an investigation. At Techy Force Cyber Retrieval, we do more than investigate digital crimes—we advocate for victims, pursue the facts, and help people regain confidence after cryptocurrency fraud. WhatsApp https://wa.link/fhle97 Telegram https://msng.link/o?@techcyberforc=tg Crypto fraud doesn’t have to be the end of the road. It’s where our investigation begins.

  • 19.07.26 04:10 Fraddy Pual

    I can't thank Fundsretriever enough for everything they did for me. My name is Vanessa Conway, and I'm here to tell you my story of how I recovered money I never thought I'd see again. A few months ago, I put a significant amount of money into what looked like a genuine online investment company. At first, it felt real—they showed me fake profits and convinced me to invest even more. But when I tried to cash out, they went quiet and started asking for extra fees. That's when it hit me—I had been scammed. I was heartbroken, frustrated, and didn't know where to turn. That money was my savings—months of hard work gone. Then I found Fundsretriever online. I reached out, hoping for a miracle. Right away, their team made me feel heard. They were responsive, knowledgeable, and walked me through everything. They didn't just take my case—they took it seriously and kept me in the loop every step of the way. I finally felt like I had real experts fighting for me. And guess what? They actually got my money back. It wasn't instant, and it took teamwork, but it happened. When I saw those funds returned, I cried with joy. I'm sharing this so that anyone else out there who's been scammed knows—don't lose hope. Do your research before investing, and stay far away from platforms that promise too much too fast. And if you've already been stung, don't wait—get professional help immediately. Thank you, Fundsretriever, from the bottom of my heart. You didn't just recover my money—you restored my faith. — Vanessa Conway 📧 [email protected] 📱 WhatsApp: +16035121448 💬 Telegram: @Fundsretriever

  • 19.07.26 19:53 kimberlyhebertt6877

    I invested in bitcoin trading After losing $78.4 USDT) linked to a romance fraud scam worth of cryptocurrency through an online investment platform and later discovered it was a scam. After extensive research for recovery options, I contacted CAPITAL CRYPTO RECOVER based on positive client reviews and recommendations. Their professional security team guided me through the recovery process using advanced technology, and I was able to recover my lost cryptocurrency successfully. I am truly grateful for their support and assistance during such a difficult experience. I will advise you to contact CAPITAL CRYPTO RECOVER helped me recover my funds. For anyone facing similar issues, Website: https://recovercapital.wixsite.com/capital-crypto-rec-1 Email: [email protected] Telegram: @Capitalcryptorecover Contact: [email protected] Call/Text Number: +1 (336) 390-6684

  • 19.07.26 19:53 kimberlyhebertt6877

    I invested in bitcoin trading After losing $78.4 USDT) linked to a romance fraud scam worth of cryptocurrency through an online investment platform and later discovered it was a scam. After extensive research for recovery options, I contacted CAPITAL CRYPTO RECOVER based on positive client reviews and recommendations. Their professional security team guided me through the recovery process using advanced technology, and I was able to recover my lost cryptocurrency successfully. I am truly grateful for their support and assistance during such a difficult experience. I will advise you to contact CAPITAL CRYPTO RECOVER helped me recover my funds. For anyone facing similar issues, Website: https://recovercapital.wixsite.com/capital-crypto-rec-1 Email: [email protected] Telegram: @Capitalcryptorecover Contact: [email protected] Call/Text Number: +1 (336) 390-6684

  • 19.07.26 19:54 kimberlyhebertt6877

    I invested in bitcoin trading After losing $78.4 USDT) linked to a romance fraud scam worth of cryptocurrency through an online investment platform and later discovered it was a scam. After extensive research for recovery options, I contacted CAPITAL CRYPTO RECOVER based on positive client reviews and recommendations. Their professional security team guided me through the recovery process using advanced technology, and I was able to recover my lost cryptocurrency successfully. I am truly grateful for their support and assistance during such a difficult experience. I will advise you to contact CAPITAL CRYPTO RECOVER helped me recover my funds. For anyone facing similar issues, Website: https://recovercapital.wixsite.com/capital-crypto-rec-1 Email: [email protected] Telegram: @Capitalcryptorecover Contact: [email protected] Call/Text Number: +1 (336) 390-6684

  • 30.07.26 00:04 Ahmed

    A really cool analysis, thank you. I was especially struck by how strictly the order is defined: data processing and formatting come first, with color only at the very end. This really saves you from the typical mistake of "first a pretty palette, then we figure out what the chart is for." And the palette validator with OKLCH + colorblindness check is absolutely fantastic; you almost never see that in regular tools. By the way, while reading about rank-trajectory and the logarithmic scale, I immediately remembered how convenient it is to analyze dynamics on charts in ExpertOption—I've been trading there for quite some time now. When the data is well visualized, decisions are noticeably easier and more relaxed. I also liked the point about "no more than eight colors" and the dual-axis ban. Strict restrictions sometimes actually produce better results than complete freedom. I'll try this approach myself.

  • 30.07.26 17:27 wendytaylor015

    My name is Wendy Taylor, I'm from Los Angeles, i want to announce to you Viewer how Capital Crypto Recover help me to restore my Lost Bitcoin, I invested with a Crypto broker without proper research to know what I was hoarding my hard-earned money into scammers, i lost access to my crypto wallet or had your funds stolen? Don’t worry Capital Crypto Recover is here to help you recover your cryptocurrency with cutting-edge technical expertise, With years of experience in the crypto world, Capital Crypto Recover employs the best latest tools and ethical hacking techniques to help you recover lost assets, unlock hacked accounts, Whether it’s a forgotten password, Capital Crypto Recover has the expertise to help you get your crypto back. a security company service that has a 100% success rate in the recovery of crypto assets, i lost wallet and hacked accounts. I provided them the information they requested and they began their investigation. To my surprise, Capital Crypto Recover was able to trace and recover my crypto assets successfully within 24hours. Thank you for your service in helping me recover my $647,734 worth of crypto funds and I highly recommend their recovery services, they are reliable and a trusted company to any individuals looking to recover lost money. Contact email [email protected] OR Telegram @Capitalcryptorecover Call/Text Number +1 (336)390-6684 his contact: [email protected] His website: https://recovercapital.wixsite.com/capital-crypto-rec-1

  • 30.07.26 17:27 wendytaylor015

    My name is Wendy Taylor, I'm from Los Angeles, i want to announce to you Viewer how Capital Crypto Recover help me to restore my Lost Bitcoin, I invested with a Crypto broker without proper research to know what I was hoarding my hard-earned money into scammers, i lost access to my crypto wallet or had your funds stolen? Don’t worry Capital Crypto Recover is here to help you recover your cryptocurrency with cutting-edge technical expertise, With years of experience in the crypto world, Capital Crypto Recover employs the best latest tools and ethical hacking techniques to help you recover lost assets, unlock hacked accounts, Whether it’s a forgotten password, Capital Crypto Recover has the expertise to help you get your crypto back. a security company service that has a 100% success rate in the recovery of crypto assets, i lost wallet and hacked accounts. I provided them the information they requested and they began their investigation. To my surprise, Capital Crypto Recover was able to trace and recover my crypto assets successfully within 24hours. Thank you for your service in helping me recover my $647,734 worth of crypto funds and I highly recommend their recovery services, they are reliable and a trusted company to any individuals looking to recover lost money. Contact email [email protected] OR Telegram @Capitalcryptorecover Call/Text Number +1 (336)390-6684 his contact: [email protected] His website: https://recovercapital.wixsite.com/capital-crypto-rec-1

  • 31.07.26 16:21 rssllhrnsb

    I learned an important lesson after investing in what appeared to be a genuine opportunity. Unfortunately, I was unable to access my funds, which reinforced the importance of carrying out thorough due diligence, checking whether an investment is appropriately regulated, and seeking qualified professional advice rather than relying solely on online reviews or testimonials. During the process of addressing my case, I worked with Mrs. Doris Ashley, who communicated clearly, provided regular updates, and handled the matter in a professional manner. According to my experience, I have recovered $50,000 so far, while efforts to resolve the remaining balance are still in progress. If you wish to contact her, the details I used are: Mrs. Tatiana Sorina
TEXT : (tatianasorina06 at G.Ma IL ..c 0 m ) Before committing money to any investment, take time to verify the legitimacy of the platform, confirm any relevant regulatory authorisations, and avoid investing more than you can comfortably afford to lose.

  • 01.08.26 15:05 keithwilson9899

    ETHEREUM RECOVERY ASSISTANCE: CAPITAL CRYPTO RECOVER HELPED ME RECOVER $98,000 WORTH OF LOST ETH In cases of cryptocurrency scams, having accurate information and trusted support is essential. I would like to recommend Capital Crypto Recover Service, a professional team that specializes in assisting individuals with the recovery of lost or stolen Bitcoin and Ethereum (ETH). Their experienced experts are dedicated to helping victims of digital asset fraud by carefully analyzing each case, developing strategic recovery plans, Capital Crypto Recover Service knowledgeable team's primary goals are to satisfy clients and offer significant support and working diligently toward fund retrieval. The team is committed to providing reliable assistance and maintaining a high level of client satisfaction. Based on my assessment, their reputation professionalism and a strong commitment to their clients. If you have experienced a cryptocurrency loss, you can contacting them for further assistance Phone (Call/Text): +1 (336) 390-6684 Email: [email protected] Alternate Email: [email protected] Website: https://recovercapital.wixsite.com/capital-crypto-rec-1

  • 01.08.26 15:05 keithwilson9899

    ETHEREUM RECOVERY ASSISTANCE: CAPITAL CRYPTO RECOVER HELPED ME RECOVER $98,000 WORTH OF LOST ETH In cases of cryptocurrency scams, having accurate information and trusted support is essential. I would like to recommend Capital Crypto Recover Service, a professional team that specializes in assisting individuals with the recovery of lost or stolen Bitcoin and Ethereum (ETH). Their experienced experts are dedicated to helping victims of digital asset fraud by carefully analyzing each case, developing strategic recovery plans, Capital Crypto Recover Service knowledgeable team's primary goals are to satisfy clients and offer significant support and working diligently toward fund retrieval. The team is committed to providing reliable assistance and maintaining a high level of client satisfaction. Based on my assessment, their reputation professionalism and a strong commitment to their clients. If you have experienced a cryptocurrency loss, you can contacting them for further assistance Phone (Call/Text): +1 (336) 390-6684 Email: [email protected] Alternate Email: [email protected] Website: https://recovercapital.wixsite.com/capital-crypto-rec-1

  • 03.08.26 20:05 Philip

    I was a victim of a crypto theft involving a Pink Drainer, which resulted in the theft of my Wrapped Bitcoin (WBTC) from my Polygon network. The experience was incredibly frustrating and distressing, as I had no idea how to recover my funds. Unfortunately, by the time I noticed the theft, the funds had already been drained to an address that I had no control over, making it seem like an irreversible situation.The attack happened when I clicked on what appeared to be a legitimate link. I didn’t realize at the time that it was a phishing attempt designed to siphon off my private keys and access my wallet. The Pink Drainer, a type of malicious script used by attackers, is specifically designed to exploit such vulnerabilities in crypto wallets. The moment I realized that my WBTC had been drained from my Polygon network. I felt completely helpless, as I didn’t have direct access to the thief's address, and there was no way to reverse the transaction on my own at that point, I started searching for ways to recover my funds, but most resources only offered generic advice that wasn’t practical in this particular case. I quickly realized that if I wanted to have any hope of getting my assets back, I would need professional assistance. After some research, I came across a reliable and trusted recovery team called Aspen Recovery Experts. Their expertise in cryptocurrency recovery, especially in cases like mine, seemed promising.I decided to reach out to Aspen Recovery Experts, and I’m incredibly grateful that I did. Their team of crypto recovery experts was able to help me trace the stolen funds and identify the path the funds took after they left my wallet. Using advanced tools and techniques, they were able to track the transactions on the blockchain, helping me understand where my WBTC had been sent. More importantly, they worked tirelessly to assist me in contacting the necessary parties and even interfaced with blockchain analysts to help facilitate the recovery process.Thanks to their efforts, I was able to successfully recover my stolen funds. The entire process took some time, but the Aspen Recovery Experts dedicated team provided regular updates and kept me informed throughout the process, which gave me a sense of hope and relief during an otherwise stressful time. If you’re ever in a similar situation, I highly recommend reaching out to a trusted recovery team like Aspen Recovery Expertshhh . Their professionalism, knowledge, and expertise were critical in helping me recover my funds and regain control of my crypto assets. Whatsapp : +1 747 231 9036 Telegram : @ prohackerspy Email : [email protected]

  • 03.08.26 20:06 Philip

    I was a victim of a crypto theft involving a Pink Drainer, which resulted in the theft of my Wrapped Bitcoin (WBTC) from my Polygon network. The experience was incredibly frustrating and distressing, as I had no idea how to recover my funds. Unfortunately, by the time I noticed the theft, the funds had already been drained to an address that I had no control over, making it seem like an irreversible situation.The attack happened when I clicked on what appeared to be a legitimate link. I didn’t realize at the time that it was a phishing attempt designed to siphon off my private keys and access my wallet. The Pink Drainer, a type of malicious script used by attackers, is specifically designed to exploit such vulnerabilities in crypto wallets. The moment I realized that my WBTC had been drained from my Polygon network. I felt completely helpless, as I didn’t have direct access to the thief's address, and there was no way to reverse the transaction on my own at that point, I started searching for ways to recover my funds, but most resources only offered generic advice that wasn’t practical in this particular case. I quickly realized that if I wanted to have any hope of getting my assets back, I would need professional assistance. After some research, I came across a reliable and trusted recovery team called Aspen Recovery Experts. Their expertise in cryptocurrency recovery, especially in cases like mine, seemed promising.I decided to reach out to Aspen Recovery Experts, and I’m incredibly grateful that I did. Their team of crypto recovery experts was able to help me trace the stolen funds and identify the path the funds took after they left my wallet. Using advanced tools and techniques, they were able to track the transactions on the blockchain, helping me understand where my WBTC had been sent. More importantly, they worked tirelessly to assist me in contacting the necessary parties and even interfaced with blockchain analysts to help facilitate the recovery process.Thanks to their efforts, I was able to successfully recover my stolen funds. The entire process took some time, but the Aspen Recovery Experts dedicated team provided regular updates and kept me informed throughout the process, which gave me a sense of hope and relief during an otherwise stressful time. If you’re ever in a similar situation, I highly recommend reaching out to a trusted recovery team like Aspen Recovery Expertshhh . Their professionalism, knowledge, and expertise were critical in helping me recover my funds and regain control of my crypto assets. Whatsapp : +1 747 231 9036 Telegram : @ prohackerspy Email : [email protected]

  • 04.08.26 11:05 Kisnoles

    Excellent analysis, thank you. I was particularly struck by how rigidly the skill sets the order: data processing and form come first, with color coming last. This really cures the habit of "first a pretty palette, then we'll figure it out." A palette validator using OKLCH + color blindness + WCAG is something most chart generators lack. And regarding the boundaries of competence, it's very clear. Where there's a self-checking loop (color), you delegate freely. Where there's a heuristic (form, data interpretation), you remain the final filter. This is a universal principle, not just for /dataviz. By the way, when you look at trading dashboards (including those of decent platforms like ExpertOption), it's immediately clear who thought about readability and who just threw in rainbow lines. Tools like this skill could greatly improve the quality of analytics. Thanks again for the detailed analysis – saved.

  • 04.08.26 12:37 kimberlyhebertt6877

    I invested in bitcoin trading After losing $78.4 USDT) linked to a romance fraud scam worth of cryptocurrency through an online investment platform and later discovered it was a scam. After extensive research for recovery options, I contacted CAPITAL CRYPTO RECOVER based on positive client reviews and recommendations. Their professional security team guided me through the recovery process using advanced technology, and I was able to recover my lost cryptocurrency successfully. I am truly grateful for their support and assistance during such a difficult experience. I will advise you to contact CAPITAL CRYPTO RECOVER helped me recover my funds. For anyone facing similar issues, Website: https://recovercapital.wixsite.com/capital-crypto-rec-1 Email: [email protected] Telegram: @Capitalcryptorecover Contact: [email protected] Call/Text Number: +1 (336) 390-6684

  • 04.08.26 12:37 kimberlyhebertt6877

    I invested in bitcoin trading After losing $78.4 USDT) linked to a romance fraud scam worth of cryptocurrency through an online investment platform and later discovered it was a scam. After extensive research for recovery options, I contacted CAPITAL CRYPTO RECOVER based on positive client reviews and recommendations. Their professional security team guided me through the recovery process using advanced technology, and I was able to recover my lost cryptocurrency successfully. I am truly grateful for their support and assistance during such a difficult experience. I will advise you to contact CAPITAL CRYPTO RECOVER helped me recover my funds. For anyone facing similar issues, Website: https://recovercapital.wixsite.com/capital-crypto-rec-1 Email: [email protected] Telegram: @Capitalcryptorecover Contact: [email protected] Call/Text Number: +1 (336) 390-6684

  • 06.08.26 08:11 ROMMYHENDERSON344

    All you need is to hire an expert to help you accomplish that. If there's any need to spy on your partner's phone. From my experience I lacked evidence to confront my husband on my suspicion on his infidelity, until I came across REALCYBERHACKERS which many commend him of assisting them in their spying mission. So I contacted him and he provided me with access into his phone to view all text messages, call logs, WhatsApp messages and even her location. This evidence helped me move him off my life . I recommend you consult REALCYBERHACKERS AT gmail com or whatsapp +14106350697 if you need access to your partner's phone or any kind of hacking, they carry out all kinds of hacking job

  • 06.08.26 13:56 lydiassmith567

    HIRE A HACKER YOUR STOLEN CRYPTO RECOVERY / BTC / USDT / ETH WITH THE HELP OF CAPITAL CRYPTO RECOVER. I want to share my experience publicly regarding cryptocurrency wallet recovery, I highly recommend you to contact CAPITAL CRYPTO RECOVER, a professional private investigator in the Bitcoin world. They have a certified expert security team specializing in Bitcoin Recovery Services and have helped many people worldwide recover their lost funds. My wife and I were defrauded by an online manipulator posing as an experienced crypto investment professional. We lost $9.2 Million Stolen BTC in cryptocurrency and were left feeling homeless. After spending hours searching for a reliable crypto recovery service, I discovered CAPITAL CRYPTO RECOVER online. By patiently explaining my situation to their team, I was able to recover all my funds. Remarkably, my money was returned to my wallet in less than 24 hours. I am extremely grateful to CAPITAL CRYPTO RECOVER for their excellent assistance—they truly were a godsend in my difficult situation. If you have fallen victim to a cryptocurrency scam, you can reach CAPITAL CRYPTO RECOVER through the following channels Email: [email protected] OR Call/Text: +1 (336) 390-6684 Contact: [email protected] Website: https://recovercapital.wixsite.com/capital-crypto-rec-1

  • 06.08.26 13:56 lydiassmith567

    HIRE A HACKER YOUR STOLEN CRYPTO RECOVERY / BTC / USDT / ETH WITH THE HELP OF CAPITAL CRYPTO RECOVER. I want to share my experience publicly regarding cryptocurrency wallet recovery, I highly recommend you to contact CAPITAL CRYPTO RECOVER, a professional private investigator in the Bitcoin world. They have a certified expert security team specializing in Bitcoin Recovery Services and have helped many people worldwide recover their lost funds. My wife and I were defrauded by an online manipulator posing as an experienced crypto investment professional. We lost $9.2 Million Stolen BTC in cryptocurrency and were left feeling homeless. After spending hours searching for a reliable crypto recovery service, I discovered CAPITAL CRYPTO RECOVER online. By patiently explaining my situation to their team, I was able to recover all my funds. Remarkably, my money was returned to my wallet in less than 24 hours. I am extremely grateful to CAPITAL CRYPTO RECOVER for their excellent assistance—they truly were a godsend in my difficult situation. If you have fallen victim to a cryptocurrency scam, you can reach CAPITAL CRYPTO RECOVER through the following channels Email: [email protected] OR Call/Text: +1 (336) 390-6684 Contact: [email protected] Website: https://recovercapital.wixsite.com/capital-crypto-rec-1

  • 11.08.26 03:43 raymont0714

    I recommend a trusted cybersecurity PRO with experience in authorized device access, security testing, and data recovery. SHE work only with the owner's consent and follow all legal and privacy rules on meta data. With permission, this specialist can recover lost files, check device security offline & online, and review texts, call records, or hidden data (spy or lurk around a cheating partner or colleuge). Strict confidentiality agreements protect the information, and client details remain private. The work is careful, efficient, and suited to complex cases. For help securing or recovering information from a phone or another electronic device, use the details below 2 consult [email protected] +44 7476618364 I trust her secrecy a living witness. Her discretion is unmatched, ensuring your privacy is always maintained

  • 12.08.26 16:37 rssllhrnsb

    I learned an important lesson after investing in what appeared to be a genuine opportunity. Unfortunately, I was unable to access my funds, which reinforced the importance of carrying out thorough due diligence, checking whether an investment is appropriately regulated, and seeking qualified professional advice rather than relying solely on online reviews or testimonials. During the process of addressing my case, I worked with Mrs. Tatiana Sorina , who communicated clearly, provided regular updates, and handled the matter in a professional manner. According to my experience, I have recovered $50,000 so far, while efforts to resolve the remaining balance are still in progress. If you wish to contact her, the details I used are: Mrs. Tatiana Sorina
TEXT : (tatianasorina06 at G_Ma IL dot ..c 0 m)…. Before committing money to any investment, take time to verify the legitimacy of the platform, confirm any relevant regulatory authorisations, and avoid investing more than you can comfortably afford to lose.

  • 16.08.26 01:44 Matt Kegan

    CapitalNode Analytics. They help to investigate and recover stolen digital assets from fake trading platforms. Great firm i must say.

  • 18.08.26 04:59 marcushenderson624

    Bitcoin Recovery Testimonial After falling victim to a cryptocurrency scam group, I lost $354,000 worth of USDT. I thought all hope was lost from the experience of losing my hard-earned money to scammers. I was devastated and believed there was no way to recover my funds. Fortunately, I started searching for help to recover my stolen funds and I came across a lot of testimonials online about Capital Crypto Recovery, an agent who helps in recovery of lost bitcoin funds, I contacted Capital Crypto Recover Service, and with their expertise, they successfully traced and recovered my stolen assets. Their team was professional, kept me updated throughout the process, and demonstrated a deep understanding of blockchain transactions and recovery protocols. They are trusted and very reliable with a 100% successful rate record Recovery bitcoin, I’m grateful for their help and highly recommend their services to anyone seeking assistance with lost crypto. Contact: [email protected] Phone WhatsApp/Text Number: +1 (336) 390-6684 Email: [email protected] Website: https://recovercapital.wixsite.com/capital-crypto-rec-1

  • 18.08.26 04:59 marcushenderson624

    Bitcoin Recovery Testimonial After falling victim to a cryptocurrency scam group, I lost $354,000 worth of USDT. I thought all hope was lost from the experience of losing my hard-earned money to scammers. I was devastated and believed there was no way to recover my funds. Fortunately, I started searching for help to recover my stolen funds and I came across a lot of testimonials online about Capital Crypto Recovery, an agent who helps in recovery of lost bitcoin funds, I contacted Capital Crypto Recover Service, and with their expertise, they successfully traced and recovered my stolen assets. Their team was professional, kept me updated throughout the process, and demonstrated a deep understanding of blockchain transactions and recovery protocols. They are trusted and very reliable with a 100% successful rate record Recovery bitcoin, I’m grateful for their help and highly recommend their services to anyone seeking assistance with lost crypto. Contact: [email protected] Phone WhatsApp/Text Number: +1 (336) 390-6684 Email: [email protected] Website: https://recovercapital.wixsite.com/capital-crypto-rec-1

  • 19.08.26 14:50 BAYER7043

    My account was locked, and I couldn’t access my own information until [email protected] +447476618364 whats?up? helped me recover it. This lady hacker was kind and professional, but this experience showed me how risky account lockouts can be. If you’re facing the same problem, do not panic consult her A. S. A. P. Be careful with recovery agents outchea, and research their name, business, and reviews before sharing any details. Never send passwords, security codes, banking information, or copies of your ID unless you’ve confirmed who you’re dealing with. Be wary of promises that sound too good to be true, especially claims that require little information or guarantee instant access with outrageous fees.

  • 20.08.26 11:32 michaeldavenport218

    I was recently scammed out of $53,000 by a fraudulent Bitcoin investment scheme, which added significant stress to my already difficult health issues, as I was also facing cancer surgery expenses. Desperate to recover my funds, I spent hours researching and consulting other victims, which led me to discover the excellent reputation of Capital Crypto Recover, I came across a Google post It was only after spending many hours researching and asking other victims for advice that I discovered Capital Crypto Recovery’s stellar reputation. I decided to contact them because of their successful recovery record and encouraging client testimonials. I had no idea that this would be the pivotal moment in my fight against cryptocurrency theft. Thanks to their expert team, I was able to recover my lost cryptocurrency back. The process was intricate, but Capital Crypto Recovery's commitment to utilizing the latest technology ensured a successful outcome. I highly recommend their services to anyone who has fallen victim to cryptocurrency fraud. For assistance contact [email protected] and on Telegram OR WhatsApp Number +1 (336)390-6684 via email: [email protected] you can visit his website: https://recovercapital.wixsite.com/capital-crypto-rec-1

  • 20.08.26 11:32 michaeldavenport218

    I was recently scammed out of $53,000 by a fraudulent Bitcoin investment scheme, which added significant stress to my already difficult health issues, as I was also facing cancer surgery expenses. Desperate to recover my funds, I spent hours researching and consulting other victims, which led me to discover the excellent reputation of Capital Crypto Recover, I came across a Google post It was only after spending many hours researching and asking other victims for advice that I discovered Capital Crypto Recovery’s stellar reputation. I decided to contact them because of their successful recovery record and encouraging client testimonials. I had no idea that this would be the pivotal moment in my fight against cryptocurrency theft. Thanks to their expert team, I was able to recover my lost cryptocurrency back. The process was intricate, but Capital Crypto Recovery's commitment to utilizing the latest technology ensured a successful outcome. I highly recommend their services to anyone who has fallen victim to cryptocurrency fraud. For assistance contact [email protected] and on Telegram OR WhatsApp Number +1 (336)390-6684 via email: [email protected] you can visit his website: https://recovercapital.wixsite.com/capital-crypto-rec-1

  • 23.08.26 20:02 leslieyee

    Excellent analysis by /dataviz! I was particularly struck by how strictly the order is defined: "data meaning first, color last" and how the validator actually adjusts the palette according to OKLCH, color blindness, and WCAG standards. These rules greatly improve the quality of charts. By the way, a similar approach to clean and legible charts is highly valued in trading—for example, on the ExpertOption platform, the interface and price visualization are designed to ensure information is read instantly and without unnecessary noise.

  • 25.08.26 13:44 lydiassmith567

    HIRE A HACKER YOUR STOLEN CRYPTO RECOVERY / BTC / USDT / ETH WITH THE HELP OF CAPITAL CRYPTO RECOVER. I want to share my experience publicly regarding cryptocurrency wallet recovery, I highly recommend you to contact CAPITAL CRYPTO RECOVER, a professional private investigator in the Bitcoin world. They have a certified expert security team specializing in Bitcoin Recovery Services and have helped many people worldwide recover their lost funds. My wife and I were defrauded by an online manipulator posing as an experienced crypto investment professional. We lost $9.2 Million Stolen BTC in cryptocurrency and were left feeling homeless. After spending hours searching for a reliable crypto recovery service, I discovered CAPITAL CRYPTO RECOVER online. By patiently explaining my situation to their team, I was able to recover all my funds. Remarkably, my money was returned to my wallet in less than 24 hours. I am extremely grateful to CAPITAL CRYPTO RECOVER for their excellent assistance—they truly were a godsend in my difficult situation. If you have fallen victim to a cryptocurrency scam, you can reach CAPITAL CRYPTO RECOVER through the following channels Email: [email protected] OR Call/WhatsApp: +1 (336) 390-6684 Contact: [email protected] Website: https://recovercapital.wixsite.com/capital-crypto-rec-1

  • 25.08.26 13:44 lydiassmith567

    HIRE A HACKER YOUR STOLEN CRYPTO RECOVERY / BTC / USDT / ETH WITH THE HELP OF CAPITAL CRYPTO RECOVER. I want to share my experience publicly regarding cryptocurrency wallet recovery, I highly recommend you to contact CAPITAL CRYPTO RECOVER, a professional private investigator in the Bitcoin world. They have a certified expert security team specializing in Bitcoin Recovery Services and have helped many people worldwide recover their lost funds. My wife and I were defrauded by an online manipulator posing as an experienced crypto investment professional. We lost $9.2 Million Stolen BTC in cryptocurrency and were left feeling homeless. After spending hours searching for a reliable crypto recovery service, I discovered CAPITAL CRYPTO RECOVER online. By patiently explaining my situation to their team, I was able to recover all my funds. Remarkably, my money was returned to my wallet in less than 24 hours. I am extremely grateful to CAPITAL CRYPTO RECOVER for their excellent assistance—they truly were a godsend in my difficult situation. If you have fallen victim to a cryptocurrency scam, you can reach CAPITAL CRYPTO RECOVER through the following channels Email: [email protected] OR Call/WhatsApp: +1 (336) 390-6684 Contact: [email protected] Website: https://recovercapital.wixsite.com/capital-crypto-rec-1

  • 30.08.26 15:37 [email protected]

    Discovering I had been defrauded, I searched online for services claiming to recover stolen ETH. I contacted several companies, but none succeeded. Although some claimed they could trace assets or recover funds, I could not verify their success or recover my money. I later found SYLVESTER BRYANT Recovery through Google. After contacting him, he recovered 450,000,00. He can be reached at [email protected] or WhatsApp at +1 512 577 7957.

  • 30.08.26 15:37 [email protected]

    Discovering I had been defrauded, I searched online for services claiming to recover stolen ETH. I contacted several companies, but none succeeded. Although some claimed they could trace assets or recover funds, I could not verify their success or recover my money. I later found SYLVESTER BRYANT Recovery through Google. After contacting him, he recovered 450,000,00. He can be reached at [email protected] or WhatsApp at +1 512 577 7957.

  • 01.09.26 11:16 lisawerth897

    My Experience With Cryptocurrency — CAPITAL CRYPTO RECOVER I lost over $82,000 in Bitcoin after falling victim to a fraudulent online investment scheme. After realizing I had been scammed, I spent considerable time researching possible ways to recover my funds. During my research, I came across CAPITAL CRYPTO RECOVER and decided to contact them after reading their reported success record and encouraging client positive reviews and testimonials. Their team guided me through the recovery process, and I was grateful to successfully recover my lost cryptocurrency. The experience was challenging, but I appreciated the assistance and support I received throughout the process. I’m sharing my experience in the hope that it may encourage other victims to carefully research their options and verify any recovery service before proceeding. I will forever be thankful to you CAPITAL CRYPTO RECOVER 📧 [email protected] 🌐 Website: recovercapital.wixsite.com/capital-crypto-rec-1 📧 [email protected] 📞 Call/WhatsApp: +1 (336) 390-6684

  • 01.09.26 11:16 lisawerth897

    My Experience With Cryptocurrency — CAPITAL CRYPTO RECOVER I lost over $82,000 in Bitcoin after falling victim to a fraudulent online investment scheme. After realizing I had been scammed, I spent considerable time researching possible ways to recover my funds. During my research, I came across CAPITAL CRYPTO RECOVER and decided to contact them after reading their reported success record and encouraging client positive reviews and testimonials. Their team guided me through the recovery process, and I was grateful to successfully recover my lost cryptocurrency. The experience was challenging, but I appreciated the assistance and support I received throughout the process. I’m sharing my experience in the hope that it may encourage other victims to carefully research their options and verify any recovery service before proceeding. I will forever be thankful to you CAPITAL CRYPTO RECOVER 📧 [email protected] 🌐 Website: recovercapital.wixsite.com/capital-crypto-rec-1 📧 [email protected] 📞 Call/WhatsApp: +1 (336) 390-6684

  • 01.09.26 17:34 Garry42

    Really crazy world. These fraudsters go at any length to steal your hard earned funds. I have been a victim of a bitcoin scam about 7 months back. A Con artist gained access to my cashapp account through a phishing scam. They stole $409,000. I was really devastated. I did everything to get back my funds by contacting the FBI but they claimed there was nothing they could do. A friend told me about a recovery expert. He helps fight against various phishing and investment scams and they were able to help trace and recover my funds even though it took over 2 days. you can reach out to him through recoverydarek@gmail. com . I can guarantee his services are still active.

  • 01.09.26 17:34 Garry42

    Really crazy world. These fraudsters go at any length to steal your hard earned funds. I have been a victim of a bitcoin scam about 7 months back. A Con artist gained access to my cashapp account through a phishing scam. They stole $409,000. I was really devastated. I did everything to get back my funds by contacting the FBI but they claimed there was nothing they could do. A friend told me about a recovery expert. He helps fight against various phishing and investment scams and they were able to help trace and recover my funds even though it took over 2 days. you can reach out to him through recoverydarek@gmail. com . I can guarantee his services are still active.

  • 02.09.26 03:43 kimberlyhebertt6877

    I invested in bitcoin trading After losing $78.4 USDT) linked to a romance fraud scam worth of cryptocurrency through an online investment platform and later discovered it was a scam. After extensive research for recovery options, I contacted CAPITAL CRYPTO RECOVER based on positive client reviews and recommendations. Their professional security team guided me through the recovery process using advanced technology, and I was able to recover my lost cryptocurrency successfully. I am truly grateful for their support and assistance during such a difficult experience. I will advise you to contact CAPITAL CRYPTO RECOVER helped me recover my funds. For anyone facing similar issues, Website: https://recovercapital.wixsite.com/capital-crypto-rec-1 Email: [email protected] Telegram: @Capitalcryptorecover Contact: [email protected] WhatsApp/Text Number: +1 (336) 390-6684

  • 02.09.26 03:43 kimberlyhebertt6877

    I invested in bitcoin trading After losing $78.4 USDT) linked to a romance fraud scam worth of cryptocurrency through an online investment platform and later discovered it was a scam. After extensive research for recovery options, I contacted CAPITAL CRYPTO RECOVER based on positive client reviews and recommendations. Their professional security team guided me through the recovery process using advanced technology, and I was able to recover my lost cryptocurrency successfully. I am truly grateful for their support and assistance during such a difficult experience. I will advise you to contact CAPITAL CRYPTO RECOVER helped me recover my funds. For anyone facing similar issues, Website: https://recovercapital.wixsite.com/capital-crypto-rec-1 Email: [email protected] Telegram: @Capitalcryptorecover Contact: [email protected] WhatsApp/Text Number: +1 (336) 390-6684

  • 04.09.26 21:51 Kovengray

    Recovering your lost investment funds as the case might be, is not what you can do alone, you’d require the service of a trained recovery specialist. A recovery specialist is a person or a group of people who are well equipped to work around the brokerage network. They have vast knowledge about the whole network and have the right software and private keys to follow any transaction. I was ripped off trading online to an investment broker, good thing I got every penny back through the help of Gavin ray he’s a genius Contact : Gavinray78 at gmail com or WhatsApp +1 352 322 2096 It is also important to be patient and really calm during the process.

  • 05.09.26 21:38 [email protected]

    I invested 45,000  Euro, and later aggreviated to 198,000 Euro.  I requested  to place ‎Withdrawal of my funds to be paid to my Bank account. But nothing happened I was subjected to pay more fee until I can get my funds on my account, i got in touch with Theodore ryan here on this platform who had helped a lot of people, I followed all instructions and he legally got back my withheld funds, I got threatened by the company that if I don’t pay they will get my account frozen, all thanks to Theodore ryan and I highly recommend him to anyone dealing with an unregulated broker company… contact him on his Gmail - theodoreryan318@  gmail .  com

  • 09.09.26 21:31 lisawerth897

    My Experience With Cryptocurrency — CAPITAL CRYPTO RECOVER I lost over $82,000 in Bitcoin after falling victim to a fraudulent online investment scheme. After realizing I had been scammed, I spent considerable time researching possible ways to recover my funds. During my research, I came across CAPITAL CRYPTO RECOVER and decided to contact them after reading their reported success record and encouraging client positive reviews and testimonials. Their team guided me through the recovery process, and I was grateful to successfully recover my lost cryptocurrency. The experience was challenging, but I appreciated the assistance and support I received throughout the process. I’m sharing my experience in the hope that it may encourage other victims to carefully research their options and verify any recovery service before proceeding. I will forever be thankful to you CAPITAL CRYPTO RECOVER 📧 [email protected] 🌐 Website: recovercapital.wixsite.com/capital-crypto-rec-1 📧 [email protected] 📞 Call/WhatsApp: +1 (336) 390-6684

  • 09.09.26 21:31 lisawerth897

    My Experience With Cryptocurrency — CAPITAL CRYPTO RECOVER I lost over $82,000 in Bitcoin after falling victim to a fraudulent online investment scheme. After realizing I had been scammed, I spent considerable time researching possible ways to recover my funds. During my research, I came across CAPITAL CRYPTO RECOVER and decided to contact them after reading their reported success record and encouraging client positive reviews and testimonials. Their team guided me through the recovery process, and I was grateful to successfully recover my lost cryptocurrency. The experience was challenging, but I appreciated the assistance and support I received throughout the process. I’m sharing my experience in the hope that it may encourage other victims to carefully research their options and verify any recovery service before proceeding. I will forever be thankful to you CAPITAL CRYPTO RECOVER 📧 [email protected] 🌐 Website: recovercapital.wixsite.com/capital-crypto-rec-1 📧 [email protected] 📞 Call/WhatsApp: +1 (336) 390-6684

  • 09.09.26 23:22 Fraddy Pual

    Hearing that these individuals are focusing on other people makes me very sad. I had a similar situation with them and lost a lot of money, but after learning about (Cruxcipherteam @ proton DoT me), whataqq:+168160-15021, telegram: @Cruxcipherteam I was able to get my money back. It's critical that we all be watchful and keep reporting these occurrences.

  • 11.09.26 03:23 kimberlyhebertt6877

    I invested in bitcoin trading After losing $78.4 USDT) linked to a romance fraud scam worth of cryptocurrency through an online investment platform and later discovered it was a scam. After extensive research for recovery options, I contacted CAPITAL CRYPTO RECOVER based on positive client reviews and recommendations. Their professional security team guided me through the recovery process using advanced technology, and I was able to recover my lost cryptocurrency successfully. I am truly grateful for their support and assistance during such a difficult experience. I will advise you to contact CAPITAL CRYPTO RECOVER helped me recover my funds. For anyone facing similar issues, Website: https://recovercapital.wixsite.com/capital-crypto-rec-1 Email: [email protected] Telegram: @Capitalcryptorecover Contact: [email protected] WhatsApp/Text Number: +1 (336) 390-6684

  • 11.09.26 03:23 kimberlyhebertt6877

    I invested in bitcoin trading After losing $78.4 USDT) linked to a romance fraud scam worth of cryptocurrency through an online investment platform and later discovered it was a scam. After extensive research for recovery options, I contacted CAPITAL CRYPTO RECOVER based on positive client reviews and recommendations. Their professional security team guided me through the recovery process using advanced technology, and I was able to recover my lost cryptocurrency successfully. I am truly grateful for their support and assistance during such a difficult experience. I will advise you to contact CAPITAL CRYPTO RECOVER helped me recover my funds. For anyone facing similar issues, Website: https://recovercapital.wixsite.com/capital-crypto-rec-1 Email: [email protected] Telegram: @Capitalcryptorecover Contact: [email protected] WhatsApp/Text Number: +1 (336) 390-6684

  • 15.09.26 03:35 elioduncan

    I fell victim to a freelance web development contract scam that ultimately cost me CAD 4,000. It all started when I came across a job posting on Indeed Canada, a popular online job portal. The position seemed perfect: a freelance web developer role for an established company looking for someone to design and build a fully functional e-commerce website. The job promised a high payment of CAD 20,000 upon successful completion, which sounded like a great opportunity for me to gain experience and earn decent pay.The employer, who introduced himself as a project manager from a "well-known" tech company, was very persuasive and professional in our initial communication. He explained that the project involved developing a user-friendly, responsive online store for their client and that they had a strict timeline to meet. He assured me that the payment would be made promptly after completing the tasks. However, before starting the work, he told me that I would need to pay an upfront fee of CAD 4,000 to cover certain software tools and licensing fees required for the project. This was supposedly a part of their company policy for freelance contractors, ensuring access to their premium resources. The idea of working on a professional project, coupled with the promise of a substantial payout, convinced me to pay the upfront fee.As soon as I made the payment, the project manager became increasingly difficult to reach. He initially responded to my emails and provided some vague instructions on what the project would entail, but as time went on, communication slowed to a complete halt. I never received the required tools or any proper project details. My emails went unanswered, and any attempts to contact the company were met with silence. After waiting for weeks, I realized that I had been scammed.Desperate to recover my money, I turned to TechY Force Cyber Retrieval, a service that specializes in helping victims of online scams. They helped me track the payment and took legal steps to pursue the fraudsters. Through their guidance, I was able to recover the full CAD 4,000. TechY Force Cyber Retrieval worked with my bank to reverse the transaction and liaised with the authorities to trace the scammer's details.This was a hard lesson, and I now know to be highly cautious about online job offers that require upfront payments. It is crucial to research companies thoroughly and avoid any job that seems too good to be true, especially when it involves paying money upfront. WhatsApp https://wa.link/2x6ktp Mail. [email protected]

  • 15.09.26 15:45 lydiassmith567

    HIRE A HACKER YOUR STOLEN CRYPTO RECOVERY / BTC / USDT / ETH WITH THE HELP OF CAPITAL CRYPTO RECOVER. I want to share my experience publicly regarding cryptocurrency wallet recovery, I highly recommend you to contact CAPITAL CRYPTO RECOVER, a professional private investigator in the Bitcoin world. They have a certified expert security team specializing in Bitcoin Recovery Services and have helped many people worldwide recover their lost funds. My wife and I were defrauded by an online manipulator posing as an experienced crypto investment professional. We lost $9.2 Million Stolen BTC in cryptocurrency and were left feeling homeless. After spending hours searching for a reliable crypto recovery service, I discovered CAPITAL CRYPTO RECOVER online. By patiently explaining my situation to their team, I was able to recover all my funds. Remarkably, my money was returned to my wallet in less than 24 hours. I am extremely grateful to CAPITAL CRYPTO RECOVER for their excellent assistance—they truly were a godsend in my difficult situation. If you have fallen victim to a cryptocurrency scam, you can reach CAPITAL CRYPTO RECOVER through the following channels Email: [email protected] OR Call/WhatsApp: +1 (336) 390-6684 Contact: [email protected] Website: https://recovercapital.wixsite.com/capital-crypto-rec-1

  • 15.09.26 15:45 lydiassmith567

    HIRE A HACKER YOUR STOLEN CRYPTO RECOVERY / BTC / USDT / ETH WITH THE HELP OF CAPITAL CRYPTO RECOVER. I want to share my experience publicly regarding cryptocurrency wallet recovery, I highly recommend you to contact CAPITAL CRYPTO RECOVER, a professional private investigator in the Bitcoin world. They have a certified expert security team specializing in Bitcoin Recovery Services and have helped many people worldwide recover their lost funds. My wife and I were defrauded by an online manipulator posing as an experienced crypto investment professional. We lost $9.2 Million Stolen BTC in cryptocurrency and were left feeling homeless. After spending hours searching for a reliable crypto recovery service, I discovered CAPITAL CRYPTO RECOVER online. By patiently explaining my situation to their team, I was able to recover all my funds. Remarkably, my money was returned to my wallet in less than 24 hours. I am extremely grateful to CAPITAL CRYPTO RECOVER for their excellent assistance—they truly were a godsend in my difficult situation. If you have fallen victim to a cryptocurrency scam, you can reach CAPITAL CRYPTO RECOVER through the following channels Email: [email protected] OR Call/WhatsApp: +1 (336) 390-6684 Contact: [email protected] Website: https://recovercapital.wixsite.com/capital-crypto-rec-1

Для участия в Чате вам необходим бесплатный аккаунт pro-blockchain.com Войти Регистрация
Есть вопросы?
С вами на связи 24/7
Help Icon