summaryrefslogtreecommitdiff
path: root/instruction.h
diff options
context:
space:
mode:
authorDavid Phillips <david@sighup.nz>2019-08-04 00:13:59 +1200
committerDavid Phillips <david@sighup.nz>2019-08-04 00:13:59 +1200
commit9aa02bebf295ce9436451e0ce85db7717a6c9f81 (patch)
treecf95f8e06600c3359a7db6c6b08e6e055acf0d4c /instruction.h
parent89917ead30321ff430fa2eab8e8d96ef4178d994 (diff)
downloadtoy-cpu-assembler-9aa02bebf295ce9436451e0ce85db7717a6c9f81.tar.xz
Add initial emulator implementation
This emulator provides a rough way for binaries designed for this CPU to be executed in a virtual/emulated CPU for testing purposes. This patch also adds a small test setup for automated assembly, execution and checking of register postconditions for programs.
Diffstat (limited to 'instruction.h')
-rw-r--r--instruction.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/instruction.h b/instruction.h
index 4ee68ed..add7c49 100644
--- a/instruction.h
+++ b/instruction.h
@@ -94,7 +94,8 @@ enum REG {
REG_4 = 4,
REG_5 = 5,
REG_6 = 6,
- REG_H = 7
+ REG_H = 7,
+ REG_COUNT
};
/**