aboutsummaryrefslogtreecommitdiff
path: root/Driver.icl
diff options
context:
space:
mode:
authorCamil Staps2016-07-01 19:37:38 +0200
committerCamil Staps2016-07-01 19:37:38 +0200
commitb3f1e3ff0404a5182b6eed2d88014b4b4fbd69c2 (patch)
treec2dbd5b0a43fffc6119510bdc2f5324aa3a0e3b5 /Driver.icl
parentAssembler (diff)
Moved to directory, added test program
Diffstat (limited to 'Driver.icl')
-rw-r--r--Driver.icl26
1 files changed, 0 insertions, 26 deletions
diff --git a/Driver.icl b/Driver.icl
deleted file mode 100644
index aa89ae1..0000000
--- a/Driver.icl
+++ /dev/null
@@ -1,26 +0,0 @@
-implementation module ABC.Driver
-
-import StdEnv, StdDebug
-
-import ABC.Machine
-
-boot :: ([Instruction], [Desc]) -> State
-boot (prog,descs)
- = { astack = as_init
- , bstack = bs_init
- , cstack = cs_init
- , graphstore = gs_init
- , descstore = ds_init descs
- , pc = pc_init
- , program = ps_init prog
- , io = io_init
- }
-
-fetch_cycle :: State -> State
-fetch_cycle st=:{pc,program}
-//# pc = trace_n pc pc
-| pc_end pc = st
-| otherwise = fetch_cycle (currinstr {st & pc=pc`})
-where
- pc` = pc_next pc
- currinstr = ps_get pc program