Skip to content

Commit

Permalink
Añad ADD (HL)
Browse files Browse the repository at this point in the history
  • Loading branch information
twilight1794 committed Nov 20, 2024
1 parent b595749 commit b4b546c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions public/programa_asm.js
Original file line number Diff line number Diff line change
Expand Up @@ -480,6 +480,11 @@ class ProgramaAsm {
bytes.push(128+this.ValsR[lop[0].valor]);
break;
} catch {}
try {
this.esTipo(TipoParam.HL, lop[0]);
bytes.push(0x86);
break;
} catch {}
try {
this.esTipo(TipoParam.N, lop[0]);
bytes.push(198, ...codificarValor(lop[0].valor, 1, true));
Expand Down Expand Up @@ -1238,6 +1243,10 @@ class ProgramaAsm {
this.esTipo(TipoParam.R, lop[0][0]);
return 1;
} catch {}
try {
this.esTipo(TipoParam.HL, lop[0][0]);
return 1;
} catch {}
try {
this.esTipo(TipoParam.N, lop[0][0]);
return 2;
Expand Down

0 comments on commit b4b546c

Please sign in to comment.