Browse Source

Remove get_regs_short in non-debug mode

Fabian 1 year ago
parent
commit
c8540d1113
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/debug.js

+ 2 - 0
src/debug.js

@@ -133,6 +133,8 @@ CPU.prototype.debug_init = function()
 
     function get_regs_short()
     {
+        if(!DEBUG) return;
+
         var
             r32 = { "eax": REG_EAX, "ecx": REG_ECX, "edx": REG_EDX, "ebx": REG_EBX,
                     "esp": REG_ESP, "ebp": REG_EBP, "esi": REG_ESI, "edi": REG_EDI },