From 6dabda133deb437b65b61be1e2ab65884dfcdd22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Giovanni=20Alfredo=20Garciliano=20D=C3=ADaz?= Date: Thu, 5 Dec 2024 08:39:37 -0600 Subject: [PATCH] Corr. JR E --- public/programa_asm.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/public/programa_asm.js b/public/programa_asm.js index 10059f6..3aecd29 100644 --- a/public/programa_asm.js +++ b/public/programa_asm.js @@ -784,7 +784,7 @@ class ProgramaAsm { let orig_cl; try { orig_cl = lop[0].valor; - lop[0].valor -= this.cl-2; + lop[0].valor -= this.cl+2; this.esTipo(TipoParam.E, lop[0]); bytes.push(0x18, ...codificarValor(lop[0].valor, 1, true)); break; @@ -794,14 +794,14 @@ class ProgramaAsm { let orig_cl; try { orig_cl = lop[1].valor; - lop[1].valor -= this.cl-2; + lop[1].valor -= this.cl+2; this.esTipo(TipoParam.CC, lop[0]); this.esTipo(TipoParam.E, lop[1]); } catch { lop[1].valor = orig_cl; throw new TipoParametrosIncorrectoError(ins); } - let val = codificarValor(lop[1].valor-this.cl-2, 1, true); + let val = codificarValor(lop[1].valor, 1, true); switch (lop[0].valor){ case "c": bytes.push(0x38, ...val);