aboutsummaryrefslogtreecommitdiff
path: root/src/Suem.hs
diff options
context:
space:
mode:
authorAleksey Veresov <aleksey@veresov.pro>2021-04-12 09:59:12 +0300
committerAleksey Veresov <aleksey@veresov.pro>2021-04-12 09:59:12 +0300
commitf621a0f1491bd05113aced3a3905318e54681d0b (patch)
tree30b11e5942c13659f33da28fe4d9e845db84beaa /src/Suem.hs
parent21aa1d1f11c369323d8c3bf71648bd0a8321ca61 (diff)
downloadsuem-f621a0f1491bd05113aced3a3905318e54681d0b.tar
suem-f621a0f1491bd05113aced3a3905318e54681d0b.tar.xz
suem-f621a0f1491bd05113aced3a3905318e54681d0b.zip
Interrupts for Devices added!
Non-blocking check is not done yet.
Diffstat (limited to 'src/Suem.hs')
-rw-r--r--src/Suem.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Suem.hs b/src/Suem.hs
index 7f55891..ac15990 100644
--- a/src/Suem.hs
+++ b/src/Suem.hs
@@ -483,6 +483,7 @@ makeMachine ramData romData s0 s1 s2 s3 s4 s5 s6 s7 = do
return $ Machine pc sr drs ars usp ssp ramData romData
ms0 ms1 ms2 ms3 ms4 ms5 ms6 ms7
mc0 mc1 mc2 mc3 mc4 mc5 mc6 mc7
+ interruptLevel doInterrupt
where pcval = (fromIntegral $ romData V.! 4) * 256 * 256 * 256 +
(fromIntegral $ romData V.! 5) * 256 * 256 +
(fromIntegral $ romData V.! 6) * 256 +