diff options
author | Kartik Agaram <vc@akkartik.com> | 2018-09-21 16:02:50 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2018-09-21 16:03:31 -0700 |
commit | 45967d2106335dbd595cb43ae5732ba88b5d0553 (patch) | |
tree | 49b750a77571037df44967f8c14a1a8553e8205c /subx/031check_operands.cc | |
parent | bd9f6d0cd069f3504c1825c6b25c7149c13ff57a (diff) | |
download | mu-45967d2106335dbd595cb43ae5732ba88b5d0553.tar.gz |
4578 - subx: implement inc/dec operations
Diffstat (limited to 'subx/031check_operands.cc')
-rw-r--r-- | subx/031check_operands.cc | 18 |
1 files changed, 18 insertions, 0 deletions
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); |