// Copyright 2009 Dolphin Emulator Project // Licensed under GPLv2+ // Refer to the license.txt file included. #pragma once #include #include #include #include "Common/CommonTypes.h" namespace DSP { bool Assemble(const std::string& text, std::vector& code, bool force = false); bool Disassemble(const std::vector& code, bool line_numbers, std::string& text); bool Compare(const std::vector& code1, const std::vector& code2); // Big-endian, for writing straight to file using File::WriteStringToFile. std::string CodeToBinaryStringBE(const std::vector& code); std::vector BinaryStringBEToCode(const std::string& str); // Load code (big endian binary). std::optional> LoadBinary(const std::string& filename); bool SaveBinary(const std::vector& code, const std::string& filename); bool DumpDSPCode(const u8* code_be, int size_in_bytes, u32 crc); } // namespace DSP