From 45967d2106335dbd595cb43ae5732ba88b5d0553 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Fri, 21 Sep 2018 16:02:50 -0700 Subject: 4578 - subx: implement inc/dec operations --- subx/031check_operands.cc | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'subx/031check_operands.cc') diff --git a/subx/031check_operands.cc b/subx/031check_operands.cc index c56761ed..5f99f7b0 100644 --- a/subx/031check_operands.cc +++ b/subx/031check_operands.cc @@ -98,6 +98,24 @@ void init_permitted_operands() { //// Class A: just op, no operands // halt put(Permitted_operands, "f4", 0x00); + // inc + put(Permitted_operands, "40", 0x00); + put(Permitted_operands, "41", 0x00); + put(Permitted_operands, "42", 0x00); + put(Permitted_operands, "43", 0x00); + put(Permitted_operands, "44", 0x00); + put(Permitted_operands, "45", 0x00); + put(Permitted_operands, "46", 0x00); + put(Permitted_operands, "47", 0x00); + // dec + put(Permitted_operands, "48", 0x00); + put(Permitted_operands, "49", 0x00); + put(Permitted_operands, "4a", 0x00); + put(Permitted_operands, "4b", 0x00); + put(Permitted_operands, "4c", 0x00); + put(Permitted_operands, "4d", 0x00); + put(Permitted_operands, "4e", 0x00); + put(Permitted_operands, "4f", 0x00); // push put(Permitted_operands, "50", 0x00); put(Permitted_operands, "51", 0x00); -- cgit 1.4.1-2-gfad0