Skip to content

Commit

Permalink
Corr. JR E
Browse files Browse the repository at this point in the history
  • Loading branch information
twilight1794 committed Dec 5, 2024
1 parent 38acbcd commit 6dabda1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions public/programa_asm.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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);
Expand Down

0 comments on commit 6dabda1

Please sign in to comment.