public static string r2param(eArch _arch) { if (_arch == eArch.mips32) { return("e asm.arch=mips;e asm.bits=32"); } if (_arch == eArch.mips64) { return("e asm.arch=mips;e asm.bits=64"); } if (_arch == eArch.arm16) { return("e asm.arch=arm;e asm.bits=16"); } if (_arch == eArch.arm32) { return("e asm.arch=arm;e asm.bits=32"); } if (_arch == eArch.arm64) { return("e asm.arch=arm;e asm.bits=64"); } if (_arch == eArch.gb) { return("e asm.arch=gb;e asm.bits=16"); } if (_arch == eArch.i8051) { return("e asm.arch=8051;e asm.cpu=8051-shared-code-xdata"); } if (_arch == eArch.riscv32) { return("e asm.arch=riscv;e asm.bits=32"); } if (_arch == eArch.riscv64) { return("e asm.arch=riscv;e asm.bits=64"); } if (_arch == eArch.x86) { return("e asm.arch=x86;e asm.bits=32"); } if (_arch == eArch.x64) { return("e asm.arch=x86;e asm.bits=64"); } return(""); }
public static string archName(eArch _arch) { if (_arch == eArch.arm16) { return("arm 16 bits"); } if (_arch == eArch.arm32) { return("arm 32 bits"); } if (_arch == eArch.arm64) { return("arm 64 bits"); } if (_arch == eArch.mips32) { return("mips 32 bits"); } if (_arch == eArch.mips64) { return("mips 64bits"); } if (_arch == eArch.gb) { return("gb 16 bits"); } if (_arch == eArch.i8051) { return("8051 8 bits"); } if (_arch == eArch.riscv32) { return("RISCV 32 bits"); } if (_arch == eArch.riscv64) { return("RISCV 64 bits"); } if (_arch == eArch.x86) { return("x86 32 bits"); } if (_arch == eArch.x64) { return("x86 64 bits"); } return("unknow arch"); }
public static string rasm2param(eArch _arch) { if (_arch == eArch.mips32) { return("-a mips -b 32"); } if (_arch == eArch.mips64) { return("-a mips -b 64"); } if (_arch == eArch.arm16) { return("-a arm -b 16"); } if (_arch == eArch.arm32) { return("-a arm -b 32"); } if (_arch == eArch.arm64) { return("-a arm -b 64"); } if (_arch == eArch.gb) { return("-a gb -b 16"); } if (_arch == eArch.i8051) { return("-a 8051"); } if (_arch == eArch.riscv32) { return("-a riscv -b 32"); } if (_arch == eArch.riscv64) { return("-a riscv -b 64"); } if (_arch == eArch.x86) { return("-a x86 -b 32"); } if (_arch == eArch.x64) { return("-a x86 -b 64"); } return(""); }
public static string r2param(eArch _arch) { if (_arch == eArch.mips32) { return("e asm.arch=mips;e asm.bits=32"); } if (_arch == eArch.mips64) { return("e asm.arch=mips;e asm.bits=64"); } if (_arch == eArch.arm16) { return("e asm.arch=arm;e asm.bits=16"); } if (_arch == eArch.arm32) { return("e asm.arch=arm;e asm.bits=32"); } if (_arch == eArch.arm64) { return("e asm.arch=arm;e asm.bits=64"); } if (_arch == eArch.gb) { return("e asm.arch=gb;e asm.bits=16"); } if (_arch == eArch.x86) { return("e asm.arch=x86;e asm.bits=32"); } if (_arch == eArch.x64) { return("e asm.arch=x86;e asm.bits=64"); } return(""); }