aboutsummaryrefslogtreecommitdiff
path: root/ABC/Machine/Program.dcl
diff options
context:
space:
mode:
authorCamil Staps2016-07-05 17:25:10 +0200
committerCamil Staps2016-07-05 17:25:10 +0200
commitceb0b74bd0b368124679378ebfb2cf316deb2e39 (patch)
tree7f5c562952bcf0427d838274177123765fe93cf5 /ABC/Machine/Program.dcl
parentProgramStore as array for efficiency (diff)
Added Machine as module level
Diffstat (limited to 'ABC/Machine/Program.dcl')
-rw-r--r--ABC/Machine/Program.dcl13
1 files changed, 13 insertions, 0 deletions
diff --git a/ABC/Machine/Program.dcl b/ABC/Machine/Program.dcl
new file mode 100644
index 0000000..0526e56
--- /dev/null
+++ b/ABC/Machine/Program.dcl
@@ -0,0 +1,13 @@
+definition module ABC.Machine.Program
+
+from ABC.Machine.Def import ::InstrId, ::Instruction, ::State
+
+pc_init :: InstrId
+pc_next :: InstrId -> InstrId
+pc_halt :: InstrId -> InstrId
+pc_end :: InstrId -> Bool
+
+:: ProgramStore
+
+ps_get :: InstrId ProgramStore -> Instruction
+ps_init :: [Instruction] -> ProgramStore