From c2ce212ed5edd0e52a3e03812c264ef3d244fa3d Mon Sep 17 00:00:00 2001 From: Kacper Date: Mon, 8 Jun 2020 21:37:12 +0100 Subject: [PATCH] Fixed ASR in C++ generator --- InstructionGenerator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/InstructionGenerator.cpp b/InstructionGenerator.cpp index e3d2aa9..05a70b5 100644 --- a/InstructionGenerator.cpp +++ b/InstructionGenerator.cpp @@ -240,7 +240,7 @@ string getInstructionHex(string instruction){ }else if(opcode=="LSR"){ binary+="100001"; }else if(opcode=="ASR"){ - binary+="100011"; + binary+="100010"; }else if(opcode=="ROR"){ binary+="100100"; }else if(opcode=="RRC"){