Skip to content

Commit

Permalink
add PUSH and POP to assembler
Browse files Browse the repository at this point in the history
  • Loading branch information
MESYETI committed Nov 17, 2023
1 parent 7b600b8 commit 7a6541d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/assembler/assembler.d
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ class Assembler {
AddInstruction("addp", Opcode.ADDP, [Param.RegisterPair, Param.Register]);
AddInstruction("subp", Opcode.SUBP, [Param.RegisterPair, Param.Register]);
AddInstruction("diff", Opcode.DIFF, [Param.RegisterPair, Param.RegisterPair]);
AddInstruction("push", Opcode.PUSH, [Param.Register]);
AddInstruction("pop", Opcode.POP, [Param.Register]);
AddInstruction("jz", Opcode.JZ, [Param.Addr]);
AddInstruction("jzb", Opcode.JZB, [Param.Addr]);
AddInstruction("rdbb", Opcode.RDBB, [Param.RegisterPair]);
Expand Down

0 comments on commit 7a6541d

Please sign in to comment.