From 7a6541df9d1ccb198dae5bcd8863e8ad1fd0ee77 Mon Sep 17 00:00:00 2001 From: yeti0904 Date: Fri, 17 Nov 2023 20:29:21 +0000 Subject: [PATCH] add PUSH and POP to assembler --- source/assembler/assembler.d | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/assembler/assembler.d b/source/assembler/assembler.d index bcecd05..e908841 100644 --- a/source/assembler/assembler.d +++ b/source/assembler/assembler.d @@ -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]);