mirror of
https://github.com/wownero/RandomWOW.git
synced 2026-12-02 04:43:57 +01:00
Code generator fixups
- fixed a crash in Instruction::print - new example program - added a design note about the number of x86 instruction per VM instruction
This commit is contained in:
@@ -337,6 +337,7 @@ namespace randomx {
|
||||
INST_NAME(IXOR_R)
|
||||
INST_NAME(IXOR_M)
|
||||
INST_NAME(IROR_R)
|
||||
INST_NAME(IROL_R)
|
||||
INST_NAME(ISWAP_R)
|
||||
INST_NAME(FSWAP_R)
|
||||
INST_NAME(FADD_R)
|
||||
|
||||
@@ -54,7 +54,7 @@ void generateAsm(uint32_t nonce) {
|
||||
fillAes1Rx4<softAes>((void*)hash, randomx::ScratchpadSize, scratchpad);
|
||||
randomx::AssemblyGeneratorX86 asmX86;
|
||||
randomx::Program p;
|
||||
fillAes1Rx4<softAes>(hash, sizeof(p), &p);
|
||||
fillAes4Rx4<softAes>(hash, sizeof(p), &p);
|
||||
asmX86.generateProgram(p);
|
||||
asmX86.printCode(std::cout);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user